conor 01/02/13 03:47:31
Modified: src/main/org/apache/tools/ant/taskdefs/optional/ejb Tag:
ANT_13_BRANCH WLStop.java
Log:
Convert to use classpaths
Revision Changes Path
No revision
No revision
1.6.2.2 +4 -6
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WLStop.java
Index: WLStop.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WLStop.java,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -r1.6.2.1 -r1.6.2.2
--- WLStop.java 2001/02/13 10:19:45 1.6.2.1
+++ WLStop.java 2001/02/13 11:47:24 1.6.2.2
@@ -72,7 +72,7 @@
/**
* The classpath to be used. It must contains the weblogic.Admin class.
*/
- private String classpath;
+ private Path classpath;
/**
* The weblogic username to use to request the shutdown.
@@ -116,8 +116,6 @@
if (serverURL == null) {
throw new BuildException("The url of the weblogic server must be
provided.");
}
-
- String execClassPath = project.translatePath(classpath);
Java weblogicAdmin = (Java)project.createTask("java");
weblogicAdmin.setFork(true);
@@ -135,7 +133,7 @@
}
weblogicAdmin.setArgs(args);
- weblogicAdmin.setClasspath(new Path(project, execClassPath));
+ weblogicAdmin.setClasspath(classpath);
weblogicAdmin.execute();
}
@@ -144,8 +142,8 @@
*
* @param s the classpath to use when executing the weblogic admin task.
*/
- public void setClasspath(String s) {
- this.classpath = project.translatePath(s);
+ public void setClasspath(Path path) {
+ this.classpath = path;
}
/**