History of Cargo/CargoTestSetup

HomePage | RecentChanges | Preferences


Revision 12 . . June 15, 2006 10:13 pm by WendySmoak
Revision 11 . . June 13, 2006 10:32 pm by WendySmoak
Revision 10 . . June 11, 2006 11:08 pm by WendySmoak
Revision 9 . . June 9, 2006 8:15 pm by WendySmoak
Revision 8 . . June 9, 2006 6:19 pm by WendySmoak
Revision 7 . . June 9, 2006 11:17 am by WendySmoak
Revision 6 . . June 9, 2006 10:27 am by WendySmoak
Revision 5 . . June 9, 2006 9:36 am by WendySmoak
Revision 4 . . June 9, 2006 9:34 am by WendySmoak
Revision 3 . . June 9, 2006 9:34 am by WendySmoak
Revision 2 . . June 9, 2006 9:34 am by WendySmoak
Revision 1 . . June 9, 2006 9:33 am by WendySmoak
  

Difference (from prior major revision) (author diff)

Added: 36a37
import org.codehaus.cargo.util.log.FileLogger?;

Changed: 39,40c40,41
* <p>Convenience TestSetup class which uses Cargo to stop
* and start an installed local container.</p>
* <p>Convenience TestSetup class which uses Cargo to start
* and stop a Servlet container.</p>

Changed: 60c61
* <li>cargo.container.id - The key for the container to use. [tomcat5x]</li>
* <li>cargo.container.id - ID of the container to use. [tomcat5x]</li>

Changed: 62,63c63,66
* If not set, uses the value of the $TOMCAT_HOME environment variable.</li>
* <li>cargo.war - the full path to the .war file to deploy.</li>
* If not set, uses the value of the TOMCAT_HOME environment variable.
* REQUIRED</li>
* <li>cargo.deployable - Full path to the war file to deploy.
* REQUIRED</li>

Added: 64a68
* <li>cargo.container.log - Full path to a file to use for logging. [none]</li>

Changed: 75c79
// If there is no containerId, default to Tomcat 5x
// If there is no container id, default to Tomcat 5x

Changed: 80c84
System.err.println("container id: " + containerId);
System.out.println("[INFO] container id: " + containerId);

Changed: 83,84c87,88
String warPath = System.getProperty("cargo.war");
System.err.println("war file: " + warPath);
String deployablePath = System.getProperty("cargo.deployable");
System.out.println("[INFO] deployable: " + deployablePath);

Changed: 87c91
warPath,
deployablePath,

Added: 89a94
// Container configuration

Changed: 102c107
System.err.println("servlet port: " + servletPort);
System.out.println("[INFO] servlet port: " + servletPort);

Changed: 118c123
System.err.println("container home: " + containerHome);
System.out.println("[INFO] container home: " + containerHome);

Added: 120a126,132
// Find and (if provided) set the path to a log file
String containerLog = System.getProperty("cargo.container.log");
if (containerLog != null) {
System.out.println("[INFO] container log: " + containerLog);
container.setLogger(new FileLogger?(containerLog, false));
}


Changed: 124c136
System.err.println("container output" + containerOutput);
System.out.println("[INFO] container output: " + containerOutput);

Removed: 155d166


HomePage | RecentChanges | Preferences
Search: