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 protected]
Skype: amagavimarco



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to