Skip to content
Phil Burk edited this page Jan 11, 2016 · 3 revisions

Setting up a Build Script

Installing Ant on Mac Mavericks

I used HomeBrew to install and manage the Ant package.

xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
brew install ant
ant -version

Building an Ant Script

I then copied the build.xml file example from the Apache Ant Manual, tweaked it slightly to build a JSyn jar file, and it just worked! Just enter:

ant

to compile and build the JAR file.

I then added a Manifest attribute to specify a Main-class. Now the AboutJSyn app will run when the JAR file is double clicked.

https://github.com/philburk/jsyn/blob/master/build.xml

Clone this wiki locally