ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: using the -D option with the java task
Date Mon, 14 May 2001 23:30:18 GMT
Did you get this message in your output?

JVM args ignored when same JVM is used.

Try adding fork="yes" which will create a new VM to which the args can
apply.

Conor


> -----Original Message-----
> From: Atul Tiwary [mailto:atul@cedera.com]
> Sent: Tuesday, 15 May 2001 9:10 AM
> To: ant-user@jakarta.apache.org
> Subject: using the -D option with the java task
>
>
> While using the java task. I would like to be able to pass some properties
> values using the -D option. Here is an excerpt from my build.xml file.
>
> <target name="datarow">
>     <java classname="com.cedera.util.datatransfer.DataLoadReportRow">
>     <jvmarg
> value="-Ddatadirectory=${src.data},-Ddatasource=${connection},-Dlo
> gdirectory
> =${src.log}"/>
>     </java>
>   </target>
>
> The problem is that when I execute this I get null values for all these
> properties.
> Any ideas on how I can correctly use the -D option.
>
> Thanks,
> Atul
>
>


Mime
View raw message