Skip to content

Latest commit

 

History

History
53 lines (26 loc) · 2.32 KB

build_source_bundles_features_and_src_zips.adoc

File metadata and controls

53 lines (26 loc) · 2.32 KB

How to build source bundles, features, and source zips

There are two ways to produce sources.

If you want sources you can use in your IDE (eg., Eclipse or JBDS), you want source features.

If you want sources you can build offline, you will want a src zip.

Source Bundles & Features

Enable Maven/Tycho to build source bundles and features (org.foo.feature.source_*.jar, org.foo.plugin.source_*.jar):

Aggregate features (and plugins) into an update site

Next, aggregate these source features and plugins into an update site, so that they can be installed into your IDE and accessed directly when writing Java code:

Src Zip

If you also want to produce a zip of actual source files (*.java) as pulled from github, there are three approaches, each producing different results.

Produce a zip of the contents of your product build

This is to enable people can build it offline. Does NOT include upstream project sources.

Produce a zip of upstream sources (using upstream project zips)

Note that pulling a collection of previously-built zips doesn’t guarantee you’ll getting the correct version AND it requires that the upstream projects all produce their own src zips.

Not recommended if you can simply fetch sources from github (as above).