-
Notifications
You must be signed in to change notification settings - Fork 48
Configure RCP products
Provided that we already created our first RCP application, we can now configure RCP products.
- Let's add product definitions to "build.gradle":
products {
product platform: 'linux', arch: 'x86_32'
product platform: 'linux', arch: 'x86_64'
product platform: 'windows', arch: 'x86_32'
product platform: 'windows', arch: 'x86_64'
archiveProducts = true
}Here we define 4 products: 32-bit and 64-bit versions for Linux and 32-bit and 64-bit versions for Windows. Optional archiveProducts flag instructs wuff to archive the generated products. Linux versions will be archived as .tar.gz, Windows versions - as .zip. The default value of archiveProducts is false.
- Invoke on command line:
gradle buildCHECK: There are 4 products in "tutorials/MyRcpApp/build/output" folder. Each product contains "MyRcpApp" bundle in "plugins" subfolder and in "configuration/config.ini".
CHECK: The product matching your OS/architecture is runnable. Upon run, it shows window with title "Hello, RCP" and multiline text field with text "Hello, world!".
Attention: do not try to run the generated product on a "wrong" OS or "wrong" architecture. If you are on Windows, Linux product won't start. If your JRE is 32-bit, 64-bit product won't start.