Skip to content

Instantly share code, notes, and snippets.

@x3ro
Created June 11, 2012 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x3ro/2909918 to your computer and use it in GitHub Desktop.
Save x3ro/2909918 to your computer and use it in GitHub Desktop.
Running Timadorus Bookkeeper in Eclipse

The following steps worked for me in order to run the AttackProcessTest from inside Eclipse:

  1. Check out the entire project from the SVN url svn co svn+ssh://<haw username>@svn.informatik.haw-hamburg.de/srv/svn/timadorus
  2. cd to Bookkeeper/trunk and execute find . -type d -name ".svn" -exec rm -rf {} \; to delete all SVN directories (these interfered in the execution process from inside eclipse, at least for me on OS X)
  3. Import the project in eclipse
  4. Install Ivy from the eclipse update url http://www.apache.org/dist/ant/ivyde/updatesite
  5. Right-click on the build.xml file and choose "Ant Build"
  6. Locate the AttackProcessTest.java file and right-click, and choose Run As > JUnit Test (this will fail).
  7. Now right-click the file again, and choose Run As > Run Configurations.. and selected the "Environment" tab
  8. Now you must add the following environment variables:
    • KEEPER_RESOURCE_DIR to ${project_loc:<insert project name>}/bin/resources
    • KEEPER_SOURCE_DIR to ${project_loc:<insert project name>}/src
  9. Make sure that the bin/resources/ folder exists, if not, run the test-setup ant task, which will copy the necessary files.

Now you should be able to successfully run the AttackProcessTest unit test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment