ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: ant doesn't use <arg>
Date Fri, 28 Dec 2001 14:11:20 GMT
<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" <stefan@s-thull.de>
To: "Ant Mailingliste" <ant-user@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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message