t

Build Instructions

1: Get the Latest Source

  • If you don’t have subversion installed, we recommend you install tortoiseSVN
  • Checkout the watij project using either of the following:
    • Just right click in the windows folder you desire to store the project and do a SVN Checkout – and in the field “URL of Repository” use:
      • https://svn.sourceforge.net/svnroot/watij/trunk
    • or use this subversion command from the command prompt:
      • svn co https://svn.sourceforge.net/svnroot/watij trunk
  • Note - If you go through a proxy to get out to the internet you will need to configure subversion as follows:*
  • Right click in any windows folder, choose TortoiseSVN → Settings
  • Select “Network” on the left menu
  • Check the checkbox “Enable Proxy Server”
  • Just enter your proxy server address, username, and password
  • Click OK and you are good to go

2: Download and install Java 1.5

  • Java can be downloaded from http://java.sun.com
  • Set an environment variable called JAVA_HOME to your java install.
    • The standard install probably will install to C:/Program Files/Java/jdk1.5.0_06
    • So your environment variable would be JAVA_HOME=C:/Program Files/Java/jdk1.5.0_06
  • To check if you have java installed, open a command prompt and type “java -version”.
    • Your output should resemble: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

3: Download and install Ant 1.6.5

  • ANT can be downloaded from http://ant.apache.org/bindownload.cgi
  • Set an environment variable called ANT_HOME to your ant install.
  • To check if you have ant installed, open a command prompt and type “ant -version”.
    • Your output should resemble: Apache Ant version 1.6.5 compiled on June 2 2005

4: Build It

To run a full build you should open a command prompt and navigate to the directory which contains launchAnt.bat. Type launchAnt.bat with no parameters and a usage statement will appear stating all the available commands. A full.build will clean, compile, unittest, create code coverage stats, javadocs, and create jdepend reports. All of the generated artifacts can be found in the build/artifacts directory. To create a new watij distribution type launchAnt.bat dist. This will clean, compile, generate java docs, and then zip up the source and all needed jars for a distribution. This is the target that we use to create new watij release that goes on sourceforge. We typically do a full.build, take a look at our junit report, code coverage report, jdepend reports to make sure all is well and then we run a dist to prepare for the release.


Personal Tools