ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ar <armaill...@free.fr>
Subject Re: AW: List of file names as arguments to a java task
Date Fri, 24 Feb 2006 13:08:26 GMT

Thanks for your answer. It's true I'm missing a little the Goggle reflex.

Here's the complete solution to my problem.

       <fileset id="xml.fileset" dir="${work.dir}">
          <include name="**/*.xml"/>
       </fileset>
       <pathconvert property="xmlfiles" pathsep=" " refid="xml.fileset" />
       <java classname="my.company.my.class.MyClass">
            <classpath>
               <fileset dir="${lib.dir}">
                  <include name="**/*.jar"/>
               </fileset>
            </classpath>
            <arg line="--myoption=value" />
            <arg line="${xmlfiles}" />
       </java>


Le Thu, 23 Feb 2006 15:22:09 +0100, <Jan.Materne@rzf.fin-nrw.de> a écrit:

> I dont want to give the hint with the search engine ...
> but you could find
> http://marc.theaimsgroup.com/?l=ant-user&m=114018171328198&w=2
>
> Jan
>
>> -----Ursprüngliche Nachricht-----
>> Von: ar [mailto:armaillist@free.fr]
>> Gesendet: Donnerstag, 23. Februar 2006 14:54
>> An: user@ant.apache.org
>> Betreff: List of file names as arguments to a java task
>>
>> Hi all,
>>
>> I'd like to give to provide to my java task a list of file
>> names. I don't know how to do.
>> I tried:
>>
>>        <java classname="my.company.my.class.MyClass">
>>           <classpath>
>>              <fileset dir="${lib.dir}">
>>                 <include name="**/*.jar"/>
>>              </fileset>
>>           </classpath>
>>           <arg line="--myoption=value" />
>>           <fileset dir="${work.dir}/xml">
>>              <include name="**/*.xml"/>
>>           </fileset>
>>        </java>
>> ... but it doesn't work.
>>
>> The java command I want to get is :
>>
>> java -cp my_classpath my.company.my.class.MyClass
>> --myoption=value file1.xml file2.xml file3.xml file4.xml
>>
>> Any idea ?
>>
>> Regards
>> --
>> A. ROY
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
>> additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
A. ROY

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


Mime
View raw message