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 <[EMAIL PROTECTED]>: > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]