conor 00/10/16 06:22:19
Modified: src/main/org/apache/tools/ant/taskdefs/optional/ejb
GenericDeploymentTool.java WLRun.java
Log:
Make the flatdestdir attribute work when using deployment descriptors
in the root directory
Minor javadoc fix in wlrun
Revision Changes Path
1.5 +4 -0
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
Index: GenericDeploymentTool.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- GenericDeploymentTool.java 2000/09/24 11:50:18 1.4
+++ GenericDeploymentTool.java 2000/10/16 13:22:17 1.5
@@ -280,6 +280,10 @@
// a flat destination dir, then we need to redefine baseName!
if (flatDestDir && baseName.length() != 0) {
int startName = baseName.lastIndexOf(File.separator);
+ if (startName == -1) {
+ startName = 0;
+ }
+
int endName = baseName.length();
baseName = baseName.substring(startName, endName);
}
1.6 +1 -1
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WLRun.java
Index: WLRun.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WLRun.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- WLRun.java 2000/10/16 09:40:48 1.5
+++ WLRun.java 2000/10/16 13:22:18 1.6
@@ -72,7 +72,7 @@
static private final String defaultPolicyFile = "weblogic.policy";
/**
- * The classpath to be used in the weblogic ejbc calls. It must contain
the weblogic
+ * The classpath to be used when running the Java VM. It must contain
the weblogic
* classes <b>and</b> the implementation classes of the home and remote
interfaces.
*/
private Path classpath;