Summary: | Order of attributes is significant in fileset | ||
---|---|---|---|
Product: | Ant | Reporter: | Dave Glasser <dglasser> |
Component: | Core | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 1.9.7 | ||
Target Milestone: | 1.9.8 | ||
Hardware: | PC | ||
OS: | Windows NT |
Description
Dave Glasser
2016-05-01 13:49:31 UTC
With commit de5b405 you are no longer able to set file and dir at the same time, taking this undefined behavior away. In your case it depended on the order of attributes, but it may as well depend on the XML parser being used (as there is no defined order of XML attributes once the document has been read). If you want to look for file1.txt in dir1 you need to use the includes attribute like in <zipfileset includes="file1.txt" dir="dir1"/> Fixed for 1.9.8 and 1.10.0 |