DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42814>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42814 Summary: <zipfileset> changed under 1.7.0 Product: Ant Version: 1.7.0 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] The build.xml file below demonstrates a bug in ANT 1.7.0 that does not exist in ANT 1.6.5. I am using <zipfileset> to determine the name of an included file in a JAR file. This does not work under ANT 1.7.0. IMPORTANT! The file "impl-bar.jar" must also exist in the same directory and have a file called "config/bar/spring-inc-bar.xml" within it. E.g. prompt% jar -tf impl-bar.jar config/bar/ config/bar/spring-inc-bar.xml To test it, just run "ant". Under ANT 1.6.5 I get: Buildfile: build.xml go: [echo] Running test... [echo] ...passed (must be ANT-1.6+) BUILD SUCCESSFUL Total time: 0 seconds Under ANT 1.7.0 I get: Buildfile: build.xml go: [echo] Running test... BUILD FAILED C:\oliver\work\ant-bug\build.xml:9: ...failed, got 'impl-bar.jar' instead of 'config/bar/spring-inc-bar.xml' Total time: 0 seconds The build.xml follows: ============================================================================ <project name="fileset-bug" default="go"> <target name="go"> <echo>Running test...</echo> <zipfileset id="the.fileset" src="impl-bar.jar" includes="config/*/spring-inc-*.xml" /> <property name="theincs" refid="the.fileset" /> <fail message="...failed, got '${theincs}' instead of 'config/bar/spring-inc-bar.xml'"> <condition> <not> <equals arg1="${theincs}" arg2="config/bar/spring-inc-bar.xml"/> </not> </condition> </fail> <echo>...passed (must be ANT-1.6+)</echo> </target> </project> ============================================================================ -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]