ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pritesh saharey <>
Subject why to use fork Attribute in java task
Date Wed, 05 Mar 2003 06:50:22 GMT

i would like to know the following 3 things 

1)when i run my build.xml file by using ant -v command i see this error in my konsole ??

	 [java] 'com.ora.ITS.SDK.Tools.ConsoleDistribBuilder'
     [java] '-f'
     [java] 'SRC/org/net/carmel/services/ptts/PTTService.distribdef'
     [java] '-o'
     [java] 'SRC/org/net/carmel/services/ptts/PTTService.distrib'
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
due to the following code iam using in my build file
<target name="parcel" depends="init,compile"
		description="Creats parcel file">
		<java append="true" fork="true" failonerror="true" classpathref="classpath"
			<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.parceldef -o SRC/org/net/carmel/services/ptts/PTTService.parcel"/>
<target name="distribute" depends="parcel">
		<java append="true" fork="true" failonerror="true" classpathref="classpath"
			<arg line="-f SRC/org/net/carmel/services/ptts/PTTService.distribdef -o SRC/org/net/carmel/services/ptts/PTTService.distrib"/>
		<move file="SRC/org/net/carmel/services/ptts/PTTService.distrib" todir="${build.distrib.dir}"/>

but when i run build file simply using ant command the build is successful altough using ant
-v command also make my build successful but giving the error above i mentioned .

<target name="init">
    <property environment="env"/>
  if iam using environment property in my build file what changes will it make in my build
file and can anybody tell why we should use this environment property
3)why fork Attribute is to be used with java task in ant  because after using fork only my
build has stared running fine.

can anybody explain me.

Join Community  --->

Select your own custom email address for FREE! Get w/No Ads, 6MB, POP &

View raw message