ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Leaton <nic...@gmail.com>
Subject Re: fileset problem
Date Mon, 12 Jul 2010 15:13:59 GMT
Thanks. Obvious in the end.

Nick

On Mon, Jul 12, 2010 at 4:09 PM, Stefan Bodewig <bodewig@apache.org> wrote:
> On 2010-07-12, Nick Leaton wrote:
>
>> However, I want to exclude the .hg directory (mercurial) apart from
>> the .hg/hgrc file which contains the configuration for the repository.
>
>> I can't get the fileset working properly. This is my attempt.
>
> You don't say what your attempt results in 8-)
>
>>       <target name="archive">
>>               <tstamp/>
>>               <antcall target="clean"/>
>>               <zip destfile="c:/archive/${ant.project.name}-${DSTAMP}.zip">
>>                       <fileset dir=".">
>>                               <exclude name=".hg"/>
>
> This is a non-recursive match on the directory name.  It will still
> allow all files inside that directory as well as all subdirectories to
> get included.  To make this recursive you'd use .hg/** or just .hg/
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
Nick

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


Mime
View raw message