Skip to content

CSEMike/OneSwarm

Repository files navigation

OneSwarm

Building

Mac OS X

  1. Install the developer tools
  2. Install git, ant, and ant-contrib from macports
  • sudo port install git-core
  • sudo port install apache-ant
  • sudo port install ant-contrib
  1. git clone git@github.com:CSEMike/OneSwarm.git
  2. export ANT_OPTS="-Xmx256m"
  3. ant
  4. ant run

Windows

  1. Download and install the latest JDK
  2. Download the ant build tool
  1. Update your JAVA_HOME and ANT_HOME environment variables appropriately:
  • set ANT_HOME=c:\apache-ant (wherever you put it)
  • set JAVA_HOME=c:\jdk1.6.0_25 (wherever you put it)
  • set PATH=%PATH%;%ANT_HOME%\bin
  1. Install misc. ant dependencies
  • cd %ANT_HOME%
  • ant -f fetch.xml -Ddest=system
  1. Install ant-contrib (put the ant-contrib-1.0b3.jar in %ANT_HOME%\lib)

  2. git clone git://github.com/CSEMike/OneSwarm.git

  3. ant

  4. ant run

Linux

  1. sudo apt-get install ant ant-contrib
  2. git clone git://github.com/CSEMike/OneSwarm.git
  3. From OneSwarm directory:
  • ant -lib /usr/share/java
  • ant -lib /usr/share/java run

I have been able to successfully compile with OpenJDK which I recommend to use. But if there are errors/problems, please use the SunJDK as mentioned in the link below.

Testing

ant test or ant junit