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:[EMAIL PROTECTED]]
> Sent: Tuesday, 15 May 2001 9:10 AM
> To: [EMAIL PROTECTED]
> 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
>
>

Reply via email to