FWIW, one should try to use <jvmarg> for VM arguments *other* than properties, for which there is the <sysproperty> element. --DD
-----Original Message----- From: ZHOU,SHENG (HP-China,ex2) [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 08, 2002 5:13 AM To: Ant Users List Subject: RE: a question about pass parameter to java Thanks a lot ! I changed as you said , and result is OK ! C:\Temp\Hello>ant run Buildfile: build.xml run: [java] Hello, World! BUILD SUCCESSFUL Total time: 7 seconds -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 5:53 PM To: [EMAIL PROTECTED] Subject: AW: a question about pass parameter to java For passing arguments to the java virtual machine you have to use <jvmarg> not <arg>. <arg> passes arguments to your applications main()-Method. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>