Personal tools
  • Help

jist:AntBuild

From NITRC Wiki

Jump to: navigation, search

All open source plugins may now be retrieved and built using ant.

  • Step 0. Test your system.
    Ant version 1.7.1 or newer required: ant -version
    Java JDK 1.6.0 or newer required: java -version AND javac -version
  • Step 1. Download the build files.
    cvs -d :pserver:anonymous@www.nitrc.org:/cvsroot/jist checkout build
  • Step 2: Edit the build/build.properties file.
    Set mipav= to the absolute path as to where mipav is install. 
    Note: ~/mipav will not work. Ant requires the full path, such as  /home/bnennett/mipav-4-3-0
  • Step 2: Alternate: Configure ant for named user-checkout.
    • If you would like to check out the build files as a specific user, so that you may (depending on permissions) check in modified source code, then edit the userpass tag in build.properties.
# Define workspace directories for projects to include in the jar file
mipav=/home/bennett/mipav-4.2.3
# Set your NITRC username and password. Used only if you modify the build.xml 
# checkout section to gain write-access
userpass=<user>:<pass>
    • Additionally, you will need to comment out the
      <!-- Read Access -->
      section of build.xml and uncomment the
      <!-- Write Access -->
      section. If there is substantial demand for this capability, we can retool the ant file to provide additional support for write-access.
  • Step 3: Ant Tasks: checkout, clean, compile, deploy
    Use the shortcut: ant all from the build/ folder to run all tasks. Alternatively, each may be run independently. 
    • This results in two jars in the jars folder. The "JIST-BASE" jar contains NO plugins. The "JIST" jar contains both the base and the plugins. We distribute the JIST jar on NITRC: http://www.nitrc.org/frs/?group_id=228
  • Step 4 (optional): You may rebuild the Javadoc API documentaiton
    ant javadoc
Powered by MediaWiki
  • This page was last modified 13:51, 10 August 2009.
  • This page has been accessed 2,415 times.
  •