ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Harnack <harna...@mail05.harlau.de>
Subject Re: Exclude a directory
Date Wed, 18 Jan 2006 18:56:25 GMT
Hello,

with

<project name="yourproject" default="yourdefaulttarget" basedir=".">

....

 <copy  todir="dist/war" >

                <fileset dir="src ">

                <exclude name="resource/**/*"/>

                </fileset>

       </copy>
....

</project>

it should work.

Regards

Frank


Quoting Alan Andrade <aandrade@contractor.epolicysolutions.com>:

> Hi
>
> I am using the copy task.
>
> I wasn't sure about the syntax to exclude a directory.
>
> Eg:
>
> Src
>
>  |_____com
>
>  |_____resource
>
>
>
> I want to exclude resource directory
>
>
>
> I wrote the task as
>
>
>
> <copy  todir=".\dist\war" >
>
>                <fileset dir=".\src ">
>
>                <exclude name="META-INF/*"/>
>
>                </fileset>
>
>       </copy>
>
>
>
> This doesnot seem to work.
>
>
>
> Thanks
>
> Alan
>
>
>
>





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


Mime
View raw message