protected void setUp() throws Exception {
super.setUp();
getProject().addTaskDefinition("resin3x", Resin3xTask.class);
// If cactus.home.resin3x system property has been defined, pass
// it to the Ant project as a property
String resin3xHome = System.getProperty("cactus.home.resin3x");
if (resin3xHome != null)
{
getProject().setProperty("cactus.home.resin3x", resin3xHome);
this.isResinInstalled = true;
}
// Allow build script to use a port different than the default (8080)
// for testing. Useful if a server is already started on that port.
getProject().setProperty("cactus.port",
System.getProperty("cactus.port", "8080"));
// Pass clover setting
String cloverEnabled = System.getProperty("clover.enable");
if (cloverEnabled != null)
{
getProject().setProperty("clover.enable", cloverEnabled);
getProject().setProperty("clover.jar",
System.getProperty("clover.jar"));
}
}
|