Create your own Eclipse distro made easy

To foster adoption of your tool it might make sense to provide all-in-one downloads. This makes sense if your product has dependencies on many different 3rd party plugins (and you e.g. need very specific versions) or you want to make it super easy for your users to start using your tool.

Since e(fx)clipse provides such downloads to its users many people who are not yet familiar with eclipse and want to give it a shot use the distros we are providing.

Until today those distros have been created through a shell script provided by Denis Hübner from itemis but because I’m not an bash guru, customizing it to my needs was a bit painful and so I decided to write my own very very simple distro builder using Java.

Our CI-Server now generates distros using this ant-file

	<property name="efx.version" />
	<taskdef name="builder" 
		classname="at.bestsolution.releng.distrobuilder.ant.DistroBuilderTaskDef" />
	<target name="build-distros" description="Build distros">
		<echo>Hello World</echo>
			<updatesite url="" os="win32"/>
			<p2repository url="${efx.version}.zip"/>

			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name=""/>
			<installunit name="" />
			<installunit name="" os="win32" arch="x86" />
			<installunit name="" os="win32" />
			<installunit name="" os="win32" />			

Building the distro / platform takes around 30 Seconds. Currently we are building 3.7.2, 3.8.0 and 4.2.0 for linux (x86,x86_64), mac-cocoa (x86_64), win32 (x86,x86_64).

I’ve shared the small utility on I hope you find this small utility useful.

This entry was posted in Eclipse. Bookmark the permalink.

10 Responses to Create your own Eclipse distro made easy

  1. Thai Ha says:

    I also have smaill program to build my eclipse distro whenever I need a new one
    It is not for end user, I just often run it directly from my eclipse IDE.

  2. Stefan says:

    I have a quite similar solution in bash:
    But instead of customizing the script for different distros, there are simple configuration files that look very similar to the parameters in your ANT target.

  3. Pingback: e(fx)clipse 0.1.0 released | Tomsondev Blog

  4. Sebastien Gandon says:

    Is it possbile to build an all platform distribution with Windows, Mac OSx, linux… naitve aunchers in the same distribution ?

    • Tom Schindl says:

      An interesting question, I’ve never thought about that. The problem is most likely that the native launcher searches for the config.ini in a special location which is not different between the different installs (at least Linux and Win have the same structure).

  5. Alex Tugarev says:

    Hi Tom,

    thank you for sharing the distro builder ant task! I’ve got a suggestion for small improvement for you. It would be nice to have a script parameter “appDefinition” passed to

    at.bestsolution.releng.distrobuilder.DistroBuilder#buildDistro(File, String, String, String)

    so not everyones distro get labeled “efx” 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.