You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aj...@apache.org on 2005/07/29 13:28:13 UTC

svn commit: r226348 - /webservices/axis/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java

Author: ajith
Date: Fri Jul 29 04:27:56 2005
New Revision: 226348

URL: http://svn.apache.org/viewcvs?rev=226348&view=rev
Log:
Modified the anttask to include a path. Not tested!!

Modified:
    webservices/axis/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java

Modified: webservices/axis/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java?rev=226348&r1=226347&r2=226348&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java (original)
+++ webservices/axis/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java Fri Jul 29 04:27:56 2005
@@ -9,6 +9,7 @@
 import org.apache.axis2.wsdl.util.URLProcessor;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Task;
+import org.apache.tools.ant.types.Path;
 import org.apache.wsdl.WSDLDescription;
 
 import javax.wsdl.WSDLException;
@@ -50,6 +51,28 @@
     private boolean testcase = false;
     private boolean generateServerXml = false;
 
+    private Path classpath = null;
+
+    public Path getClasspath() {
+        return classpath;
+    }
+
+    public void setClasspath(Path classpath) {
+        System.out.println("path = "+classpath);
+//        if (classpath == null) {
+//            classpath = classpath;
+//        } else {
+//            classpath.append(classpath);
+//        }
+
+    }
+     public Path createClasspath() {
+        if (classpath == null) {
+            classpath = new Path(this.getProject());
+        }
+         System.out.println("classpath = " + classpath);
+        return classpath.createPath();
+    }
     /**
      *
      */