I like my Mac applications to be double-clickable and living my Applications directory, not a bunch of weird files that use *.command oddities to launch. Since MapTool appears to use Ant for its build process, and Ant is shipped with all Macs, here is how you can build a "real" Mac application out of a MapTool download.
This process works on Snow Leopard. Not sure about other OS versions.
1) Download an Ant task specifically built to make Mac apps out of Java code, called JarBundler
2) Install the bundle somewhere that Ant can use it. On Snow Leopard, this means copying the jarbundler-2.2.0.jar into /usr/share/ant/lib. You probably will need to use sudo to do this:
sudo cp ~/Downloads/jarbundler-2.2.0/jarbundler-2.2.0.jar /usr/share/ant/lib/
3) Download this collection
of supporting files and expand it. It contains:
build.xml - A small Ant script to invoke the jarbundler task with MapTool specific information. (This could be easily moved into the main build file, btw.)
maptool.icns - An ICNS version of the MapTool icon.
4) Download a version of MapTool and expand it. I tested this with version 1.3b75, as that is the version required to use the iPad/iPhone client application MaPnakotic
. Could be that other versions need some tweaking.
5) Open a Terminal. Move to the directory of the supporting files. Probably something like:
7) Figure out the path to the version of MapTool you want to bundle. This is probably something like "~/Downloads/maptool-1.3.b75". We'll call this path $SOURCE for short. (This needds to be the complete path, starting with a slash. No shortcuts, like ~.) Also, we will call the version number $VERSION for short.
6) Run the following command:
ant -Dmaptool.macbundle.source=$SOURCE -Dmaptool.macbundle.version=$VERSION
...or, for example...
ant -Dmaptool.macbundle.source=/Users/yourname/Downloads/maptool-1.3.b75 -Dmaptool.macbundle.version=1.3.b75
The end result is a real Mac application: