The problem is solved by making java.xml as another build file and calling this
java.xml to my build.xml file like this
<target name="parcel" depends="init,compile"
description="Creates parcel and distrib file">
<echo message="Running java.xml..."/>
<ant antfile="java.xml" dir="." target="all"/>
</target>
for time beign my purpose is solved, but i want to create a properties.xml file in
which my two command will be called in all my projects
<java classname="com.org.ITS.SDK.Tools.ConsoleParcelBuilder">
<arg line="-f PTTService.parceldef -o PTTService.parcel" />
</java>
<java classname="com.org.ITS.SDK.Tools.ConsoleDistribBuilder">
<arg line="-f PTTService.distribdef -o PTTService.distrib" />
</java>
here this line:
java classname="com.org.ITS.SDK.Tools.ConsoleParcelBuilder">
and this line :
<java classname="com.org.ITS.SDK.Tools.ConsoleDistribBuilder">
is going to be called in my each and every project so i want this to in one place but
failing to understand how to write these code in properties.xml file and how to call
them in build.xml
iknow DOCTYPE will solve my puropse but as i mentioned it is giving me pesudo error.
what can i do
pritesh
--- message from [EMAIL PROTECTED] attached:
_____________________________________________________________
Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm
_____________________________________________________________
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB,
POP & more! http://www.everyone.net/selectmail?campaign=tag
--- Begin Message ---
If you want to &include; java.xml you have to delete the first line
( <?xml version... ) (I think).
If you want to <ant> java.xml that file must be a valid buildfile.
So you have to have a <project>-Root element.
Jan Mat�rne
-----Urspr�ngliche Nachricht-----
Von: Pritesh saharey [mailto:[EMAIL PROTECTED]
Gesendet am: Donnerstag, 6. M�rz 2003 09:08
An: Ant Users List
Betreff: RE: how to import another xml file
it is giving me error like this
"Config file is not of expected XML type"
pritesh
--- Suresh Babu Koya <[EMAIL PROTECTED]> wrote:
>Create a traget as given below to run this ant file
>
> <target name="runjava" depends="sometask">
> <echo message="Running java.xml..."/>
> <ant antfile="java.xml"/>
> </target>
>
>
>/Suresh
>
>
>-----Original Message-----
>From: Pritesh saharey [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 06, 2003 11:44 AM
>To: Apache mailing list
>Subject: how to import another xml file
>
>
>I got a query regarding two xml files
>in build.xml file my code is like this
><?xml version="1.0"?>
><project name="PICASSO" default="deploy" basedir=".">
><target name="deploy"
>depends="parcel,create-zipfile,create-apidoc,create-jar">
> <fileset dir ="." includes="java.xml"/>
> <echo message="Completed Successfully!"/>
></target>
>
>and in java.xml file my code is like this
><?xml version="1.0" ?>
><target name="parcel" depends="init,compile"
> description="Creats parcel file">
> <java append="true" fork="true" failonerror="true"
>classpathref="classpath"
>
>classname="com.ora.ITS.SDK.Tools.ConsoleParcelBuilder">
> <arg line="-f
>SRC/org/net/carmel/services/ptts/PTTService.parceldef -o
>SRC/org/net/carmel/services/ptts/PTTService.parcel"/>
> </java>
>
>
> <java append="true" fork="true" failonerror="true"
>classpathref="classpath"
>
>classname="com.ora.ITS.SDK.Tools.ConsoleDistribBuilder">
> <arg line="-f
>SRC/org/net/carmel/services/ptts/PTTService.distribdef -o
>SRC/org/net/carmel/services/ptts/PTTService.distrib"/>
> </java>
>
> <move
>file="SRC/org/net/carmel/services/ptts/PTTService.distrib"
>todir="${build.distrib.dir}"/>
>
></target>
>
>now how can i call this java.xml file in my build.xml file so that while i
>run build.xml file the commands in java.xml file should be executed.
>reg
>pritesh
>
>_____________________________________________________________
>Join SQAtester.com Community --->
>http://www.sqatester.com/testersarea/joinus.htm
>
>_____________________________________________________________
>Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No
>Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
_____________________________________________________________
Join SQAtester.com Community --->
http://www.sqatester.com/testersarea/joinus.htm
_____________________________________________________________
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No
Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]