Why can't Eclipse RCP build find classes in org.eclipse.ui during headless build?

I have a product definition that includes one function that I wrote, and org.eclipse.feature. When I create this product from eclipse, it succeeds. However, when I try to use the Headless assembly, the compilation process fails because it complains that it cannot find the classes included in org.eclipse.ui. One such class is, for example, PlatformUI. Therefore, the assembly process is not performed.

I checked and org.eclipse.ui is included in the org.eclipse.ui plugin. I also tried to include this plugin explicitly in my custom function, but to no avail.

I also tried removing one of these plugins with problems, but the next one that used org.eclipse.ui failed. So this is definitely a classpath issue for some sowrt.

I tried this headless assembly using Eclipse version 3.3.2.

+3
source share
3 answers

The class org.eclipse.ui.PlatformUIis in the plugin org.eclipse.ui.workbench.

org.eclipse.ui.workbench is required and re-exported to org.eclipse.ui. Package " org.eclipse.ui" is a split package .

Import-Package , . ui.workbench, Import-Package:

Import-Package:org.eclipse.ui;ui.workbench=split

Require-Bundle

+1

build.properties?

archivesFormat

archivesFormat (zip, tar ) .
<configuration> - <format>, , , configs.

linux,gtk,x86-folder, win32, .

0

, Eclipse . .

One of the problems that I found in the past is that I need a delta pack that was installed for a headless build, even if I was building on the same architecture that I was aiming for (win32). Exporting a product from the GUI will work without a delta package - doh!

0
source

Source: https://habr.com/ru/post/1715306/


All Articles