ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Stockall <stock...@magma.ca>
Subject Re: property as file filter
Date Fri, 02 May 2003 15:49:44 GMT
On Fri, 2003-05-02 at 11:30, Sonnek, Ryan wrote:
> Is it possible to build a path from a property that acts like a filter?
> 
> <property name="common.fileset.filter" value="**/common/*.class,
> **/common/*.xml" />
> 
>   <path id="common.fileset.path">
>       <fileset dir="lib">
>         <include name="${common.fileset.filter}" />
>       </fileset>
>   </path>
> 
>   <jar destfile="common.jar" >
>     <fileset pathref="common.fileset.path" />
>   </jar>
> 
> 

Yes, but not exactly like you have done.

<include> elements take 1 pattern

The 'includes' attribute takes a comma separated list.

<fileset dir="lib" includes="${common.fileset.filter}"/>

-- 
Jesse Stockall <stockall@magma.ca>


Mime
View raw message