You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2006/01/11 07:49:01 UTC
svn commit: r367953 - in
/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool:
codegen/eclipse/ui/WSDLFileSelectionPage.java core/ClassFileHandler.java
Author: ajith
Date: Tue Jan 10 22:48:54 2006
New Revision: 367953
URL: http://svn.apache.org/viewcvs?rev=367953&view=rev
Log:
Removed the file validation for the WSDLFileSelectionPage.java. This validation causes the url case to fail
Modified:
webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/ui/WSDLFileSelectionPage.java
webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/core/ClassFileHandler.java
Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/ui/WSDLFileSelectionPage.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/ui/WSDLFileSelectionPage.java?rev=367953&r1=367952&r2=367953&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/ui/WSDLFileSelectionPage.java (original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/codegen/eclipse/ui/WSDLFileSelectionPage.java Tue Jan 10 22:48:54 2006
@@ -105,11 +105,11 @@
return;
}
- if (!fileName.matches(".*\\.wsdl")) {
- updateStatus(org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin
- .getResourceString("page1.error.wrongextension"));
- return;
- }
+// if (!fileName.matches(".*\\.wsdl")) {
+// updateStatus(org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin
+// .getResourceString("page1.error.wrongextension"));
+// return;
+// }
updateStatus(null);
Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/core/ClassFileHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/core/ClassFileHandler.java?rev=367953&r1=367952&r2=367953&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/core/ClassFileHandler.java (original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/core/ClassFileHandler.java Tue Jan 10 22:48:54 2006
@@ -6,9 +6,6 @@
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
-import java.util.Enumeration;
-
-import sun.misc.URLClassPath;
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
@@ -27,29 +24,15 @@
public class ClassFileHandler {
- /**
- * @deprecated
- * This needs to be written in a functional manner.
- * @param location
- * @return Returns ArrayList.
- * @throws IOException
- */
- //todo see whether this is possible
- public ArrayList getClassesAtLocation(String location) throws IOException {
- File fileEndpoint = new File(location);
- if (!fileEndpoint.exists())
- throw new IOException("the location is invalid");
- URL[] urlList = {fileEndpoint.toURL()};
- URLClassPath classLoader = new URLClassPath(urlList);
- Enumeration enumerator = classLoader.getResources("");
-
- while (enumerator.hasMoreElements()) {
- Object o = enumerator.nextElement();
- }
- return null;
-
- }
-
+
+/**
+ *
+ * @param classFileName
+ * @param location
+ * @return
+ * @throws IOException
+ * @throws ClassNotFoundException
+ */
public ArrayList getMethodNamesFromClass(String classFileName,String location) throws IOException, ClassNotFoundException{
ArrayList returnList = new ArrayList();
File fileEndpoint = new File(location);