Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-build-dev] PDE build problems with enum


Florian,
I did see your newsgroup posting, unfortunately I don't see anything wrong with your setup and I have not had time to run it for myself.

Do you have errors for other java.lang classes? (ie String)  It may be useful to run the build under the ant debugger and in the @dot target of your bundle, see if the bundleBootClasspath being passed to the javac call is correct.

-Andrew

* to run the ant debugger:
1) load org.eclipse.pde.build into an eclipse workspace
2) Right click org.eclipse.pde.build/scripts/build.xml > Debug As > Ant Build....
3) Main Tab: Set -Dbuilder
4) JRE Tab: Set run in same JRE as workspace
5) Debug.   After the call to "generate" in the main build.xml, go set a break point in the generated build.xml in the plugin.



DI Florian Hackenberger <f.hackenberger@xxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

03/17/2008 06:33 AM

Please respond to
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>

To
pde-build-dev@xxxxxxxxxxx
cc
Subject
[pde-build-dev] PDE build problems with enum





Hi there!

I'm aware that usage discussion of pde build is supposed to take place within
the eclipse newsgroups, but nobody was able to help me there. Therefore I'm
posting to this lists.

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 the source does not compile using a headless build as
opposed to building from within eclipse?

Cheers,
       Florian

--
DI Florian Hackenberger
eMail: florian.hackenberger@xxxxxxxxxx
www:   http://www.acoveo.com
[attachment "java_compiler_enum_test.tar.gz" deleted by Andrew Niefer/Ottawa/IBM] _______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev


Back to the top