ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: clarification for Fileset documentation?
Date Thu, 29 Sep 2005 12:54:24 GMT
The dir attribute is the root for a fileset. Why should the in/excludes be relative to something
else?

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Jakob Fix [mailto:jakob.fix@gmail.com] 
>Gesendet: Donnerstag, 29. September 2005 14:35
>An: Ant Users List
>Betreff: clarification for Fileset documentation?
>
>Hello,
>
>I just spend an hour or so trying to understand why the 
>following wouldn't work:
>
><fileset dir="${dir.in}">
>  <exclude name="${dir.in}/fig/*.png"/>
></fileset>
>
>The reason is, and this is IMHO not mentioned in the 
>documentation, that the nested <exclude> and <include> 
>elements are relative to the directory defined in the 
><fileset>'s dir attribute, and not relative to the current 
>directory (which it is not unreasonable to expect).
>
>The -debug output showed me the error, but it would be nice to 
>add this information to the documentation.
>
>The correct way to achieve this exclusion is:
>
><fileset dir="${dir.in}">
>  <exclude name="fig/*.png"/>
></fileset>
>
>
>--
>cheers,
>Jakob.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message