Deliver Your Java Application in One-JAR™!

Copyright 2004-2010 by P. Simon Tuffs, All Rights Reserved. http://www.simontuffs.com




Guice Framework Example

There is a One-JAR Guice example in the CVS repository.

With CVS

Attach to the CVS repository using the following credentials:
:pserver:anonymous@one-jar.cvs.sourceforge.net:/cvsroot/one-jar
Checkout the one-jar and one-jar-guice projects, as siblings in a working directory.

Without CVS

Download and expand the following items as siblings in a working directory: Note: these are .tar.gz files, so will need to be unpacked twice to get to the contents.

Building and Running

  1. Change to the one-jar directory and build using $ ant
  2. Change to the one-jar-guice directory and build using $ ant
  3. Run the example using $ ant run.one-jar-guice
  4. Run a JUnit test case using $ ant test.one-jar-guice
  5. Generate an HTML report for the JUnit test using $ ant junit.report. Examine the report in a web-browser from the test-reports directory.

More Information

Look over the one-jar-guice project, with attention to the build.xml file.

If you like One-JAR then you might want to check out some of the other Open-Source projects developed by simontuffs.com:
Get One-JAR(TM) at SourceForge.net. Fast, secure and Free Open Source software downloads soap-stone at sourceforge.net Eclipse JAR Plugin Yet Another Compiler Compiler Language