Update: A second beta release of DojoBuilder is now available, click here.
Following on from my earlier post about the Eclipse RCP based tool I was building for Dojo, the first beta release is now available. You should read my first post on the subject for an overview on what it is, why it exists and what capabilities it has.
Steps to use the tool (Windows only for the moment, other builds coming soonish):
- Make sure you have Java 5 or greater installed on your machine. You can get it from http://java.sun.com/javase/downloads/index_jdk5.jsp , click on the download button next to “Java Runtime Environment (JRE) 5.0 Update 10“. Once it’s installed, make sure that you your PATH variable is set correctly by opening a command prompt (Start/Run/cmd) and typing “java -version”. It should print out a version of 1.5 or higher.
- Download my tool from http://www.skynet.ie/~sos/dojobuilder/downloads/DojoBuilder.zip .
- Extract the zip file and click on the DojoBuilder.exe file. This opens the application with four view panes.
- Ant Builder Control – This is used to specify the Ant build file to use
- Ant Settings – This contains the Dojo-specific tooling, e.g. Subversion tooling to download builds, selecting specific build targets, doing extra compression on the Javascript files etc.
- Ant Properties – Lists the user editable properties on the Ant build project. Usually you shouldn’t have to touch these if you don’t want to, the Dojo tooling should take care of it.
- Ant Targets – Lists the available Ant targets. You shouldn’t have to touch these if you don’t want to, just use the “Target Set” combo box in the “Ant Settings” pane.
- Choose a Dojo build you want to use in the “SVN Repository” combo box (only nightly and 0.4.1 have been tested so far).
- Click the “Use customized Build Source” checkbox.
- Choose a Target Set you want to build. “Release” is the most common.
- Choose a “Build Profile” you want to build, or just leave it at the default.
- Click the “Build” button.
This should result in a Dojo build being created in the “release” folder of your checked out source files. By default, these are placed in your home directory, as shown in the “Svn Dir” text box. You can change this if you like. You can also change where you want the built files to be placed by changing the “Build Dest” text box.
There is an additional option to “Super Compress” the files. This uses the Packer compressor to compress either the dojo.js file (your main Dojo file) or even all files in the Dojo tree (note that compressing all files may not be very reliable at the moment). To use this, check one or both of the “Super Compress” and “Compress All Files” checkboxes. Note that while these are extremely effective and result in very (very!) small javascript files, this step is very slow and should usually only be used before deploying the code to your application.
As this is the very first beta release, it is of course not yet perfect. If you have any issues, please reply to this post with details.
Update: A second beta release of DojoBuilder is now available, click here.
Like this:
Like Loading...