If what you want to do is pass a whole lot of filenames to a java class you
could do it this way:
<path dir="${myfolder}" id="files">
<include name="*.*"/>
</path>
<pathconvert pathsep=" " property="arguments" refid="files"/>
or directly :
<pathconvert pathsep=" " property="arguments">
<path dir="${myfolder}" id="files">
<include name="*.*"/>
</path>
</pathconvert>
and then :
<java classname="${myclass}" fork="true">
<arg line="${arguments}"/>
....
There might be a simpler way... anyone ?
Roland.
-----Message d'origine-----
De : Mastrorillo Laurence [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 19 septembre 2002 11:00
A : Ant Users List
Objet : list of arguments for java task
hi all,
I've been using ant for a few days to compile ant execute java classes
that takes quite a lot or file as arguments. The way I do this is :
<property name="arguments" value="foo1 foo2 foo3........">
....
<java classname="${myclass}" fork="true">
<arg line="${arguments}"/>
....
Works well but I was wondering if there was a way to replace my list of
filenames by something like *.* ?
Thanks
LM
--
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]>