ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mastrorillo Laurence <mastr...@medias.cnes.fr>
Subject Re: list of arguments for java task
Date Fri, 20 Sep 2002 07:36:03 GMT
Thanks for your help Roland

What I want to do is exactly pass a list of filenames to a java class.

I tried your solution but I got an "Unexpected element "pathconvert"" error
:-(

I'm jusing Ant 1.5 and jdk1.2

any idea?

Laurence

EXT / FOCAL MALAPRADE Roland a écrit :

> 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:mastrori@medias.cnes.fr]
> 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: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>


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