You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Thull <st...@s-thull.de> on 2001/12/28 14:51:12 UTC

ant doesn't use

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:stefan@s-thull.de


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ant doesn't use

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
<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" <st...@s-thull.de>
To: "Ant Mailingliste" <an...@jakarta.apache.org>
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:stefan@s-thull.de
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>