Building the console web application.
After checking out the i-jetty source, you will have the console application in $IJETTY_HOME/console, assuming $IJETTY_HOME represents where you checked out the code.
The console application consists of 2 maven subprojects:
The former is the web application itself, specially built for Android. The latter is an Android installer application. This is for use by the i-jetty developers to allow us to release the webapp separately from core i-jetty so it can be conveniently downloaded from the Android Marketplace. You won't need to build that, although you can of course look at the app if you want.
Are similar for core i-jetty:
However, in addition you must set an environment variable which indicates where the Android SDK is installed on your machine. For example, if I have installed the SDK at /opt/android/android-sdk-linux_86 then I would set:
Note: you need to set this environment variable appropriately for your operating system.
cd $IJETTY_HOME/console mvn clean install
This will produce a war file in $IJETTY_HOME/console/webapp/target, and also the apk in $IJETTY_HOME/console/apk/target (although as we mentioned, you're probably not interested in that).
To build with Eclipse, you will first need to install the M2Eclipse plugin:
Then, use the Import->Existing Maven Projects menu option to import the console parent project with both its child projects. You will then have these Eclipse projects:
You can use the normal Eclipse mechanisms to build the console webapp.
NOTE: Ensure that you have your $ANDROID_HOME environment variable set when you launch Eclipse. If you are using a launcher to start the Eclipse executable on Ubuntu, depending on how you set up your environment variables you may need to do some extra configuration to ensure your environment vars are set. For example, you could write a small shell script to ensure that ANDROID_HOME is set before invoking Eclipse.