Try (Notice the placement order of include and exclude):
<copy todir="${dest.dir}" overwrite="true" >     <fileset basedir="${src.dir}"> 
         <include name="**.jpg" />          <exclude name="**/Documentation/" />
     </fileset>
</copy>



> Date: Mon, 26 Feb 2007 16:34:17 +0200> From: [EMAIL PROTECTED]> To: 
> nant-users@lists.sourceforge.net> Subject: [NAnt-users] fileset exclude / 
> include priorities> > Hello everybody,> > I have a target that must copy some 
> files and skip some directories.> > <copy todir="${dest.dir}" 
> overwrite="true" >> <fileset basedir="${src.dir}">> > <exclude 
> name="**/Documentation/" />> > <include name="**.jpg" />> </fileset>> 
> </copy>> > the purpose of the task is to> skip /Documentation directory 
> including any files in it and> copy all *jpg files.> > In /Documentation i 
> have some jpg's which should be skipped.> Right now, those files aren't 
> skipped.> > Is there a way to tell which one should go first?> > Thank you,> 
> Daniel> > 
> -------------------------------------------------------------------------> 
> Take Surveys. Earn Cash. Influence the Future of IT> Join SourceForge.net's 
> Techsay panel and you'll get the chance to share your> opinions on IT & 
> business topics through brief surveys-and earn cash> 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> 
> _______________________________________________> NAnt-users mailing list> 
> NAnt-users@lists.sourceforge.net> 
> https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to