woolfel 2005/09/23 10:51:17
Modified: src/core/org/apache/jmeter/testelement Tag: rel-2-1
TestPlan.java
Log:
moved the code from setTestPlanClassPath to testStarted, so that it works in
nongui mode.
Revision Changes Path
No revision
No revision
1.17.2.4 +8 -5
jakarta-jmeter/src/core/org/apache/jmeter/testelement/TestPlan.java
Index: TestPlan.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/testelement/TestPlan.java,v
retrieving revision 1.17.2.3
retrieving revision 1.17.2.4
diff -u -r1.17.2.3 -r1.17.2.4
--- TestPlan.java 22 Sep 2005 23:10:21 -0000 1.17.2.3
+++ TestPlan.java 23 Sep 2005 17:51:17 -0000 1.17.2.4
@@ -160,9 +160,6 @@
}
public void setTestPlanClasspath(String[] text) {
- for (int idx=0; idx < text.length; idx++) {
- NewDriver.addURL(text[idx]);
- }
String cat = "";
if (text.length > 1) {
for (int idx=0; idx < text.length; idx++) {
@@ -301,6 +298,12 @@
log.error("Failed to set file server base dir
with " + getBasedir(), e);
}
}
+ // we set the classpath
+ String[] paths = this.getTestPlanClasspathArray();
+ for (int idx=0; idx < paths.length; idx++) {
+ NewDriver.addURL(paths[idx]);
+ log.info("add " + paths[idx] + " to classpath");
+ }
}
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]