Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 528274 - [Gtk] Add script to build local swt.jar and force it to use fresh swt sources.
Summary: [Gtk] Add script to build local swt.jar and force it to use fresh swt sources.
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.8   Edit
Assignee: Leo Ufimtsev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-07 10:10 EST by Leo Ufimtsev CLA
Modified: 2017-12-19 02:53 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Ufimtsev CLA 2017-12-07 10:10:03 EST
During development, building a *swt*.jar file (containing fresh SWT*.java sources and .so's) that can be used with an eclipse in it's eclipse/plugin/ is not straight forward.  (As me, Roland and Eric have found out).

Example use case is testing/developing swt behavior as a OSGI bundle.

The general technique is:
cd ~/git/eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.x86_64
mvn clean verify -Pbuild-individual-bundles

But the hurdle here is that if the *swt.binaries/bundles/binaries-parent/pom.xml:forceContextQualifier is as new as the one upstream, then changes to swt sources are not packaged into the resulting ./target/*swt*.jar file.
To get around that, I can either checkout an older swt.binaries that has an older forceContextQualifier or change the forceContextQualifier manually to something like year 2000.

Rather than documentation that is hard to find/read, I wrote a script that automatically sets a lower forceContextQualifier and builds the *swt*.jar files.
Comment 1 Eclipse Genie CLA 2017-12-07 10:12:38 EST
New Gerrit change created: https://git.eclipse.org/r/113014
Comment 3 Leo Ufimtsev CLA 2017-12-18 13:19:56 EST
No functional changes, nothing to verify.