SOS

Shane O'Sullivan's technical blog… really ties the room together

Eclipse RCP Build tool for Dojo/Ant

Posted by Shane O'Sullivan on December 19, 2006

There has been a lot of talk currently about making the build system for Dojo simpler. The web based method (customise a build on the Dojo website and download it from there) definitely shows promise, and will be attractive to many users. However, I think that many developers would like to have more control over the build process, while still having the possibility of all of it being automated for them. For this reason I’ve decided to look in to the possibility of using an Eclipse based build system that can operate as a standalone Rich Client application or be a new perspective in Eclipse.

My current thinking is that it will be a generic Ant-based build system that can be customised for multiple “categories”, of which Dojo will be one. The use case is:

1. User chooses an Ant build file to import (either from an existing Subversion checkout or from a copy of Dojo downloaded by this application via Subversion)
2. View pane 1 lists all the available Ant build targets as a list of checkboxes that the user can select
3. View pane 2 lists all the properties that can be set on the Ant build. This pulls the original values for these properties from the build.xml file, but these can be overridden by setting some defaults in the application.
4. View pane 3 provides customised Dojo controls, and this is where the meat of the application will lie. These controls will be able to do a number of things:

  • Select combinations of build targets based on predefined settings. E.g . “release” and “intern-strings”
  • Set various properties on the build
  • Check out various builds of Dojo from SVN trunk and give the user the option to use the build files and/or source files from that release, or from the nightly builds.
  • Provide a list of build profiles that the user can choose from, with the possibility of also having a profile-builder that will automatically import a list of all the files that a user can choose and writes the profile for them

The advantages of this approach:

Easy to use

  • Works both online and offline (online for checking out builds, offline for building)
  • Integrates with Eclipse, so can be a standalone application or part of an existing development environment
  • Gives you complete control over the build process, while also simply letting you choose a profile and click “Build”
  • Users don’t have to install Ant, Subversion etc. All these utilities will be included in this application
  • Can leverage the Eclipse update mechanisms so that users can update their application from an Eclipse update site hosted at dojotoolkit.org
  • Fun to write

Disadvantages:

  • Large initial download – probably ~15megs for the standalone app, much smaller for just the Eclipse plugin set
  • A lot of work for me :-)

I’ve started work on this, and it’s showing promise. So, all comments and suggestions are welcome.

Update Jan 8th 2006: First beta of this program released. See here for details.

Update Jan 29th 2006: Second beta of this program released. See here for details.

About these ads

8 Responses to “Eclipse RCP Build tool for Dojo/Ant”

  1. [...] beta release of Dojo build tool Following on from my earlier post about the Eclipse RCP based tool I was building for Dojo, the first beta release is now available. [...]

  2. Proxy Problem said

    Hi

    I’ve downloaded the DojoBuilder plugin for eclipse 3.2
    I’ve set the proxy setting onEclipse platform as usual, but I cannot
    synchronize with the subversion repository.

    I always get the connection timeout error…
    Any Idea??
    Thank you very much
    Giuseppe Cassata

  3. [...] Second beta of DojoBuilder released The second beta of DojoBuilder has just been released. DojoBuilder is an Eclipse RCP based tool for generating customised builds of the Dojo Ajax toolkit. It provides a number of useful utilities for working with Dojo, including checking out the source code from source control (Subversion), configuring the build, and running the build. For information on what it can do, check out my first post on the subject. [...]

  4. [...] Linux release of DojoBuilder beta The first Linux release of DojoBuilder beta has been released, after my epic effort at getting Ubuntu 6.10 installed on my Thinkpad. DojoBuilder is an Eclipse RCP based tool for generating customised builds of the Dojo Ajax toolkit. It provides a number of useful utilities for working with Dojo, including checking out the source code from source control (Subversion), configuring the build, and running the build. For information on what it can do, check out my first post on the subject. [...]

  5. [...] first post on the subject [...]

  6. Giuseppe,

    Subversion has to be configured to work through a proxy. See this link – http://subversion.tigris.org/faq.html#proxy – for details on how to do this.

    Unfortunately it does not seem to be possible to do the configuration using the Eclipse preferences page for SVN (at Team/SVN), and Subversion doesn’t seem to be picking up the default Eclipse proxy settings that you’ve set, so give the instructions above a go.

    Shane

  7. [...] talked about this new tool earlier: There has been a lot of talk currently about making the build system for Dojo simpler. The web [...]

  8. UGG said

    Try this tool, it’s easy than ant

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 535 other followers

%d bloggers like this: