Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] test build with staged tycho 1.3.0

Hello Tycho users,

we followed your suggestion about testing the staged release of Tycho 1.3.0 on our project and we caught a regression on SWT bundles compile time dependencies. Specifically, we get compilation errors when Tycho tries to compile a bundle module having the org.eclipse.swt dependency listed in their manifest. It cannot find any class bundled with SWT (looking at the build logs it seems that the platform specific jar is not included during compilation!).

Here's an excerpt of the log showing the problem (full log is attached):

[DEBUG] Using compiler 'jdt'.
[DEBUG] Source directories: [/Users/enrico/Documents/repos/gef/org.eclipse.draw2d/src]
[DEBUG] Classpath: [/Users/enrico/.m2/repository/p2/osgi/bundle/org.eclipse.swt/3.109.0.v20181126-1801/org.eclipse.swt-3.109.0.v20181126-1801.jar[+org/eclipse/swt/*:+org/eclipse/swt/accessibility/*:+org/eclipse/swt/awt/*:+org/eclipse/swt/browser/*:+org/eclipse/swt/custom/*:+org/eclipse/swt/dnd/*:+org/eclipse/swt/events/*:+org/eclipse/swt/graphics/*:+org/eclipse/swt/layout/*:+org/eclipse/swt/opengl/*:+org/eclipse/swt/printing/*:+org/eclipse/swt/program/*:+org/eclipse/swt/widgets/*:~org/eclipse/swt/internal/*:~org/eclipse/swt/internal/image/*:~org/eclipse/swt/internal/cocoa/*:~org/eclipse/swt/internal/accessibility/gtk/*:~org/eclipse/swt/internal/cairo/*:~org/eclipse/swt/internal/gtk/*:~org/eclipse/swt/internal/opengl/glx/*:+org/eclipse/swt/ole/win32/*:~org/eclipse/swt/internal/gdip/*:~org/eclipse/swt/internal/ole/win32/*:~org/eclipse/swt/internal/win32/*:~org/eclipse/swt/internal/opengl/win32/*:?**/*]
 /Users/enrico/.m2/repository/p2/osgi/bundle/com.ibm.icu/63.1.0.v20181030-1705/com.ibm.icu-63.1.0.v20181030-1705.jar[+com/ibm/icu/text/*:?**/*]
 /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/target/classes]
[DEBUG] Output directory: /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/target/classes
[DEBUG] Classpath:
[DEBUG]  /Users/enrico/.m2/repository/p2/osgi/bundle/org.eclipse.swt/3.109.0.v20181126-1801/org.eclipse.swt-3.109.0.v20181126-1801.jar[+org/eclipse/swt/*:+org/eclipse/swt/accessibility/*:+org/eclipse/swt/awt/*:+org/eclipse/swt/browser/*:+org/eclipse/swt/custom/*:+org/eclipse/swt/dnd/*:+org/eclipse/swt/events/*:+org/eclipse/swt/graphics/*:+org/eclipse/swt/layout/*:+org/eclipse/swt/opengl/*:+org/eclipse/swt/printing/*:+org/eclipse/swt/program/*:+org/eclipse/swt/widgets/*:~org/eclipse/swt/internal/*:~org/eclipse/swt/internal/image/*:~org/eclipse/swt/internal/cocoa/*:~org/eclipse/swt/internal/accessibility/gtk/*:~org/eclipse/swt/internal/cairo/*:~org/eclipse/swt/internal/gtk/*:~org/eclipse/swt/internal/opengl/glx/*:+org/eclipse/swt/ole/win32/*:~org/eclipse/swt/internal/gdip/*:~org/eclipse/swt/internal/ole/win32/*:~org/eclipse/swt/internal/win32/*:~org/eclipse/swt/internal/opengl/win32/*:?**/*]
[DEBUG]  /Users/enrico/.m2/repository/p2/osgi/bundle/com.ibm.icu/63.1.0.v20181030-1705/com.ibm.icu-63.1.0.v20181030-1705.jar[+com/ibm/icu/text/*:?**/*]
[DEBUG]  /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/target/classes
[DEBUG] Source roots:
[DEBUG]  /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/src
[INFO] Compiling 89 source files to /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/target/classes

OMISSIS

[DEBUG] Original compiler output: ----------
1. ERROR in /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/src/org/eclipse/draw2d/Button.java (at line 13)
import org.eclipse.swt.graphics.Image;
      ^^^^^^^^^^^^^^^
The import org.eclipse.swt cannot be resolved
----------
2. ERROR in /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/src/org/eclipse/draw2d/Button.java (at line 38)
public Button(Image image) {
             ^^^^^
Image cannot be resolved to a type
----------
3. ERROR in /Users/enrico/Documents/repos/gef/org.eclipse.draw2d/src/org/eclipse/draw2d/Button.java (at line 62)
public Button(String text, Image image) {
                          ^^^^^
Image cannot be resolved to a type
----------

The project I'm building is hosted on GitHub at the following address (a fork of an Eclipse project itself):

https://github.com/enricopersiani/gef-legacy-e4

And here is the command I run to build the project on master branch:

$ mvn -Dtycho.localArtifacts=ignore -P ECLIPSE.target -f pom.xml package -X

I'm wondering if I made a mistake in porting to Tycho 1.3.0 with Eclipse 4.10 as a target, since we have been able to build using Eclipse 4.7 as target platform and Tycho 1.3.0-SNAPSHOT on the 6th of December. 

I would be happy to file a bug report on BugZilla if you suspect it is a bug.

Thank you for your support,
Enrico

--
Enrico Persiani
Software Engineer

Attachment: log
Description: Binary data


Back to the top