ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Russell <mark_russ...@instantiations.com>
Subject Re: List of file names as arguments to a java task
Date Thu, 23 Feb 2006 14:20:46 GMT
You are telling the compile command to only include the **/*.xml files
it probably should be **/*.java
ar wrote:
> 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
> 
> 


-- 
Mark Russell
Instantiations, Inc.
724-368-3331 (land line)
http://www.instantiations.com


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


Mime
View raw message