ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: passing $* from shell to ant
Date Mon, 11 Mar 2002 15:56:30 GMT
--- Beat Mr Beat je vous prie <beat@cannabismail.com> wrote:
> I need to pass args to ant for it to pass them to my main class.
> Of course <arg></arg> tags are great.
> I've also testes 'ant -Dname=val' syntax.

Try 'ant -Dargs="file1 file2 ... filen" myexec', not a -D for each arg.
 
> so... something like this :
>   <target name="myexec"> 
>     <java classname="packageA.packageB.Main">
>       <arg line=${*}/>        <!-- H E R E --> 
>       <classpath>
>      <pathelement path="${java.class.path}"/>
>       </classpath>
>     </java>
>   </target>

And change "${*}" to "${args}".

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
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