Creating mbat.jar
This section gives instructions on how to create the
mbat.jar application file using Eclipse. The Ant build file used in these instructions is located at:
- Install build_fat_jar plugin for Eclipse:
- To create the
mbat.jar:
- Auto-create
net.nbirn.mbat.about.BuildInfo.java to update the build info using Ant script (Note, the script uses the command line svn client, see svn+ssh command line setup).
- Open
build.xml in Eclipse (select in Package Explorer and double-click)
- Run the
svnrevision2java target (in the Outline view, right click the target and select "Run As"->"Ant Build".
- Refresh (F5) the
mbat project (should automatically rebuild to update the BuildInfo.java class)
- Create the .jar file using "Fat Jar"
- Right-click on the
mbat project, select "Build Fat Jar", and configure the build:
- Select the files to include. Note, although the
mbXXX libraries are duplicated, the jar file sometimes does not run properly if all them are not selected. For the 3rd party .jar files, only included those that are referenced [TODO: cleanup unused jars].
- [Optional] Copy the contents of the
dist folder to the install4J folder.
- Run the
install4J target (Note, you will need to edit the todir location appropriately)
DarenLee? - 15 Oct 2008