Path classpath = java.createClasspath();
classpath.createPathElement().setLocation(
new File(getDir(), "lib/tomcat.jar"));
java.setClassname("org.apache.tomcat.startup.Main");
java.createArg().setValue(theArg);
java.execute();
}
/**
* Prepares a temporary installation of the container and deploys the
* web-application.