ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: why to use fork Attribute in java task
Date Wed, 05 Mar 2003 15:03:10 GMT
In short, it's a classloader issue. By using fork=true, you are running in a
standard way (as if running your task from the command line). And you only
need <property environment="env"/> if you need to access environment
variables from within the buildfile (for example, ${env.CLASSPATH}). --DD

-----Original Message-----
From: Pritesh saharey [] 
Sent: Wednesday, March 05, 2003 12:50 AM
Subject: why to use fork Attribute in java task

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"
			<arg line="-f
SRC/org/net/carmel/services/ptts/PTTService.parceldef -o
<target name="distribute" depends="parcel">
		<java append="true" fork="true" failonerror="true"
			<arg line="-f
SRC/org/net/carmel/services/ptts/PTTService.distribdef -o

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 & more!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message