[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] PDE build problems with enum

Hi there!

I'm trying to build several features using a headless PDE build environment.
Unfortunately I have a problem with enums. I get the following error
message when running the org.eclipse.ant.core.antRunner application on my
builder environment:
@dot:
    [mkdir] Created
dir: /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/temp.folder/@dot.bin
    [javac] Compiling 2 source files
to /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/temp.folder/@dot.bin
    [javac]
[parsing    /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/src/org/acoveo/callcenter/masterdata/MasterDataObject.java -
#1/2]
    [javac]
[parsing    /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/src/org/acoveo/callcenter/masterdata/RingStrategy.java -
#2/2]
    [javac] [reading    org/eclipse/emf/ecore/EObject.class]
    [javac] [reading    org/eclipse/emf/common/notify/Notifier.class]
    [javac] [2 units compiled]
    [javac] ----------
    [javac] 1. ERROR
in /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/src/org/acoveo/callcenter/masterdata/RingStrategy.java
(at line 1)
    [javac]     /**
    [javac]     ^
    [javac] The type java.lang.Enum cannot be resolved. It is indirectly
referenced from required .class files
    [javac] ----------
    [javac] 2. ERROR
in /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/src/org/acoveo/callcenter/masterdata/RingStrategy.java
(at line 1)
    [javac]     /**
    [javac]     ^
    [javac] The type Enum is not generic; it cannot be parameterized with
arguments <RingStrategy>
    [javac] ----------
    [javac] 2 problems (2 errors)
    [javac] Compilation failed. Compiler errors are available
in /tmp/java_compiler_enum_test/buildDirectory/plugins/org.acoveo.callcenter.masterData/temp.folder/@dot.bin.log
        
The build is invoked as follows:
java -jar /tmp/eclipse-builder/baseLocation/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -verbose -application
org.eclipse.ant.core.antRunner -buildfile /tmp/eclipse-builder/baseLocation/eclipse/plugins/org.eclipse.pde.build_3.3.2.R331_v20071019/scripts/build.xml -Dbuilder=/tmp/java_compiler_enum_test/buildConfiguration
&> antRunner.log

I have set
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
in my plugin manifest as well as:
JavaSE-1.6=/usr/lib/jvm/java-6-sun/lib/rt.jar:/usr/lib/jvm/java-6-sun/lib/jsse.jar
javacSource=1.6
javacTarget=1.6
in my build.properties file. The plugin compiles just fine within eclipse.
Other java 5 feature (like generics) work fine with my headless PDE build.
In order to reprocude my testcase (the real plugin contains a lot more) you
need the following plugins for eclipse:
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/modeling/emf/emf/downloads/drops/2.3.2/R200802051830/emf-sdo-xsd-SDK-2.3.2.zip&mirror_id=17
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/modeling/emft/teneo/downloads/drops/0.8.0/S200803051429/emft-teneo-SDK-incubation-S200803051429.zip&mirror_id=17
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/modeling/emf/validation/downloads/drops/1.1.1/R200708161055/emf-validation-SDK-1.1.1.zip&mirror_id=17
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/modeling/mdt/ocl/downloads/drops/1.1.2/R200711281212/mdt-ocl-SDK-1.1.2.zip&mirror_id=17
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/modeling/mdt/uml2/downloads/drops/2.1.1/R200708301304/mdt-uml2-SDK-2.1.1.zip&mirror_id=17

Any ideas why it the source does not compile using a headless build as
opposed to building from within eclipse?

Cheers,
        Florian
-- 
Florian Hackenberger

Attachment: java_compiler_enum_test.tar.gz
Description: GNU Zip compressed data