ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Hermann" ...@web.de>
Subject Re: Jar or copy files from multiple unknown directories
Date Fri, 28 Oct 2005 10:07:02 GMT
On Fri, 28 Oct 2005 11:44:50 +0200, arcus(x) - Cornelius Buschka wrote:

>I would like to jar up files from these directories into one jar. Not
>the whole contents but a selection of files from each folder only.

><jar jarfile="..." ...>
>   <fileset dir="${basedir}/**/src" includes="**" excludes="**/*.java"/>
></jar>

<fileset dir="${basedir}" includes="**/src/**" excludes="**/*.java"/>

and add a (regex) mapper that removes everything up to /src/ from the file 
names.

if that does not work, use antcontrib to loop over the src dirs.

Ciao, J├╝rgen



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


Mime
View raw message