Opened 12 years ago

Closed 12 years ago

#16899 closed defect (fixed)

objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5

Reported by: moody@… Owned by: dave@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: java 1.5 1.4 Cc: israel.faria@…
Port: objectweb-anttasks

Description

I am trying to install objectweb-anttasks 1.3 and found this:

--->  Configuring objectweb-anttasks
--->  Building objectweb-anttasks with target clean jar
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3" && ant clean jar " returned error 1
Command output:     [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:85: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac] 			for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                         ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:85: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac] 			for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                                              ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:86: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac] 				File current = new File((File) enum.nextElement(),
    [javac]                                                                ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:103: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac] 		for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                 ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:103: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac] 		for(Enumeration enum = v.elements(); enum.hasMoreElements();) {
    [javac]                                                      ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:104: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
    [javac] 			new File((File) enum.nextElement(),
    [javac]                                         ^
    [javac] 6 errors

BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3/build.xml:14: Compile failed; see the compiler error output for details.

Total time: 0 seconds

Attachments (1)

Portfile.patch (1.1 KB) - added by israel.faria@… 12 years ago.
Patch to upgrade objectweb-anttasks version.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Changed 12 years ago by israel.faria@…

Attachment: Portfile.patch added

Patch to upgrade objectweb-anttasks version.

comment:2 Changed 12 years ago by israel.faria@…

I have added a patch which upgrade this port version. The new version already sets java compilation target to 1.4 and seems to fix what the specific macports patch did. Trying to get it on svn.

comment:3 Changed 12 years ago by israel.faria@…

Cc: israel.faria@… added

Cc Me!

comment:4 Changed 12 years ago by mf2k (Frank Schima)

Keywords: objectweb-anttasks removed
Owner: changed from macports-tickets@… to dave@…

Did you get permission from the maintainer to be added as co-maintainer? This patch works fine for me, I'm just waiting for maintainer approval.

comment:5 in reply to:  4 Changed 12 years ago by israel.faria@…

Replying to macsforever2000@…:

Did you get permission from the maintainer to be added as co-maintainer? This patch works fine for me, I'm just waiting for maintainer approval.

No. The mantainer is free to remove me if he wants.

comment:6 Changed 12 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

Fixed with r52616.

Note: See TracTickets for help on using tickets.