ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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


>-----Urspr√ľngliche Nachricht-----
>Von: Jakob Fix [] 
>Gesendet: Donnerstag, 29. September 2005 14:35
>An: Ant Users List
>Betreff: clarification for Fileset documentation?
>I just spend an hour or so trying to understand why the 
>following wouldn't work:
><fileset dir="${}">
>  <exclude name="${}/fig/*.png"/>
>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="${}">
>  <exclude name="fig/*.png"/>
>To unsubscribe, e-mail: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message