ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: <patch> on <filesets>
Date Mon, 21 Nov 2005 11:42:01 GMT
Hello Kenneth,

look at the for and for-each constructs of ant-contrib.

:http://ant-contrib.sourceforge.net/

Cheers,


Antoine

Kenneth Rose wrote:

>Hi all,
>
>In my build environment, I have a directory containing a bunch of patches.
>I would like ant to apply these patches to pristine sources.  I have tried
>something similar to:
>
>    <patch dir="pristine">
>      <fileset dir="patches">
>	<include name="**"/>
>        <type type="file"/>
>      </fileset>
>    </patch>
>
>but I get the error:
>
>The <patch> type doesn't support the nested "fileset" element.
>
>Nuts.  Thinking that the patch command on Unix is a filter, I figured that
>I could <concat> all of the patches in a <filterchain> and send the output
>to <patch>.  Unfortunately, <patch> does not seem to be a <filterreader>.
>
>I *could* manually specify the patches or I could just <concat> to a
><tempfile>, but both of those solutions are not ideal.  Does anyone know a
>way of making <patch> work with a group of patches?
>
>Thanks.
>
>/<en
>
>P.S. - Patches should be applied in alphabetical order based on their
>filename.  So if I have:
>
>patches/a_nice_patch.diff
>patches/zzz_last_one.diff
>
>then a_nice_patch.diff is applied before zzz_last_one.diff.
>
>
>
>  
>


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


Mime
View raw message