--- Beat Mr Beat je vous prie <[EMAIL PROTECTED]> 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
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>