https://bugzilla.novell.com/show_bug.cgi?id=644661 https://bugzilla.novell.com/show_bug.cgi?id=644661#c0 Summary: ant-contrib does not export the antcontrib:for task Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i586 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: archie@dellroad.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 RPM: ant-contrib-1.0b2-83.2 from Bleeding-edge Java packages Note that the "for" task exists but is commented out because it requires ant 1.6 or higher... but this rpm already requires ant = 1.7.1! So this comment should be removed so people can use antcontrib:for $ unzip -p /usr/share/java/ant-contrib-1.0b2.jar net/sf/antcontrib/antcontrib.properties|grep -w -n3 for 35-remoteant=net.sf.antcontrib.antserver.client.ClientTask 36- 37-# Tasks Requiring Ant 1.6 or higher 38:#for=net.sf.antcontrib.logic.For 39-math=net.sf.antcontrib.math.MathTask Reproducible: Always Steps to Reproduce: 1. Install ant-contrib RPM 2. Try to use the antcontrib:for task 3. Build fails Actual Results: BUILD FAILED /home/archie/svn/eng/oss/asterisk/1.6/build.xml:9: The following error occurred while executing this line: /home/archie/svn/eng/oss/asterisk/1.6/src/build/macros.xml:373: Problem: failed to create task or type urn:net.sf.antcontrib:for Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. The definitions in the namespace urn:net.sf.antcontrib are: timestampselector inifile bool urlencode pathtofileset post throw math outofdate remoteant runtarget propertyregex var stopwatch sortlist limit assert trycatch compilewithwalls foreach antserver verifydesign antfetch osfamily if propertyselector propertycopy switch antcallback antclipse forget shellscript Expected Results: Build succeeds Fix is easy: just remove the leading '#' character before the "for=" line in net/sf/antcontrib/antcontrib.properties: # Tasks Requiring Ant 1.6 or higher #for=net.sf.antcontrib.logic.For -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.