<arg value=""> is for single arguments, but in your example you are actually passing 3 arguments and using 'value' causes it to be sent as a single one.
Use <arg line="..."/> instead, in this case. Or separate it into three <arg value="..."/>'s. Erik ----- Original Message ----- From: "Stefan Thull" <[EMAIL PROTECTED]> To: "Ant Mailingliste" <[EMAIL PROTECTED]> Sent: Friday, December 28, 2001 8:51 AM Subject: ant doesn't use <arg> > Hi , > I want to use ant instead of the following comandline > set classpath=D:\myJava\gnu.regexp-1.1.4\lib\gnu-regexp-1.1.4.jar > java -jar makedocj.jar -d foo.pdb foo.txt > > the commandline works. > The buildfile I use is: > > <project name="MyProject" default="compile" basedir="."> > > <target name="compile"> > > <java jar="makedocj.jar" fork="yes" > > > <arg value="-d foo.pdb foo.txt"/> > > <classpath> > ><pathelement location="D:\myJava\gnu.regexp-1.1.4\lib\gnu-regexp-1.1.4.jar"/> > ></classpath> > > </java> > > </target> > > It seems, that ant didn't use the <arg> line, because the output is > the same as the command without arguments. > > What went wrong? > > I work on Win98 SE with ant 1.4.1 > > > Thank you very much in advance! > > Stefan > mailto:[EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>