• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Java 8-compatible version of Ant task "wocompile"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java 8-compatible version of Ant task "wocompile"?


  • Subject: Java 8-compatible version of Ant task "wocompile"?
  • From: Marco A Gonzalez <email@hidden>
  • Date: Thu, 04 Aug 2016 18:46:58 -0400

We are getting the following output from an ant build script running on linux with Java 8. 
We think the the problem is that Java 8 has renamed the pre-Java 8 class "OptionName" to "Option". (Gleaned from  https://groups.google.com/forum/#!topic/cofoja/3q8Ol5nVnOY)

Just in case it made a difference, we switched from OpenJDK 1.8.0_101  to Oracle's JDK 1.8.0_101. It didn't.

The woproject.jar we're using is from community jenkins WOLips46 most recent successful build.
(org.objectstyle.wolips.woproject.ant_4.6.20160626.9.jar)

So our current assumption is that the wocompile ant task on which we rely is not compatible with Java 8. 
Can anyone confirm this? If so, is there a Java 8-compatible version? 
If not, what is the recommended path?

------------------------
.
... /* for clarity, unimportant lines not shown */
.
[wocompile] An annotation processor threw an uncaught exception.
[wocompile] Consult the following stack trace for details.
[wocompile] java.lang.NoClassDefFoundError: com/sun/tools/javac/main/OptionName
[wocompile] at com.google.java.contract.core.apt.AnnotationProcessor.setupPaths(Unknown Source)
.
... /* for clarity, unimportant lines not shown */
.
BUILD FAILED
/opt/Jenkins/home/jobs/Monolithic_AIR/workspace/projects/AISCore/build.xml:135: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1180)
.
... /* for clarity, unimportant lines not shown */
.
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
------------------------

The build.xml file includes the following target whose line 135 starts with "<wocompile srcdir=".

<target name="compile" depends="init.build">
<taskdef name="wocompile" classname="org.objectstyle.woproject.ant.WOCompile" />

<mkdir dir="bin" />
<wocompile srcdir="Sources" destdir="bin" debug="true" debuglevel="lines,vars,source">
<frameworks root="ProjectLocal" embed="false" eclipse="true" />
<frameworks root="External" embed="false" eclipse="true" />
<frameworks root="Local" embed="false" eclipse="true" />
<frameworks root="User" embed="false" eclipse="true" />
<frameworks root="System" embed="false" eclipse="true" />
<frameworks root="Network" embed="false" eclipse="true" />
<classpath>
<fileset dir="Libraries">
<include name="**/*.jar" />
</fileset>
<fileset dir="${wo.extensions}">
<include name="*.jar" />
</fileset>
</classpath>
</wocompile>
</target>
Reference links:
* https://wiki.wocommunity.org/display/WOL/WOProject-Ant
* "WOProject / WOLips  / Home / WOProject-Ant"  https://wiki.wocommunity.org/display/WOL/WOCompile

------------------------------------------------------
Marco A. Gonzalez
web: http://www.amagavi.com/
email: email@hidden
Skype: amagavimarco



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Java 8-compatible version of Ant task "wocompile"?
      • From: Paul Hoadley <email@hidden>
  • Prev by Date: Re: EODatabaseContext.initializeObject(): No snapshot for gid
  • Next by Date: Re: Java 8-compatible version of Ant task "wocompile"?
  • Previous by thread: Re: WOWODC slides/videos
  • Next by thread: Re: Java 8-compatible version of Ant task "wocompile"?
  • Index(es):
    • Date
    • Thread