diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
index e310b1ad4..93fbf41ac 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
@@ -149,7 +149,7 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
org.apache.tools.ant.taskdefs.Java javaTask = null;
try {
- String args = "-noexit " + sourceJar.getPath().replace('\\', '/') + " " + destJar.getPath().replace('\\', '/');
+ String args = "-noexit " + sourceJar.getPath() + " " + destJar.getPath();
javaTask = (Java) getTask().getProject().createTask("java");
javaTask.setClassname("weblogic.ejbc");
diff --git a/src/main/org/apache/tools/ant/types/Commandline.java b/src/main/org/apache/tools/ant/types/Commandline.java
index 4f0c54b76..6016e61a9 100644
--- a/src/main/org/apache/tools/ant/types/Commandline.java
+++ b/src/main/org/apache/tools/ant/types/Commandline.java
@@ -84,9 +84,8 @@ import java.util.StringTokenizer;
*/
public class Commandline {
- private Vector definition = new Vector();
+ private Vector arguments = new Vector();
private String executable = null;
- private Argument argument = null;
public Commandline(String to_process) {
super();
@@ -166,7 +165,7 @@ public class Commandline {
*/
public Argument createArgument() {
Argument argument = new Argument();
- definition.addElement(argument);
+ arguments.addElement(argument);
return argument;
}
@@ -209,9 +208,9 @@ public class Commandline {
* addValue or the argument object.
*/
public String[] getArguments() {
- Vector result = new Vector(definition.size()*2);
- for (int i=0; i