axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r170361 - /webservices/axis/trunk/java/modules/core/samples/deployment/service1/META-INF/service.xml /webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
Date Mon, 16 May 2005 11:15:07 GMT
Author: deepal
Date: Mon May 16 04:15:07 2005
New Revision: 170361

URL: http://svn.apache.org/viewcvs?rev=170361&view=rev
Log:
now you can deploy module as .mar file

Modified:
    webservices/axis/trunk/java/modules/core/samples/deployment/service1/META-INF/service.xml
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/listener/RepositoryListenerImpl.java

Modified: webservices/axis/trunk/java/modules/core/samples/deployment/service1/META-INF/service.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/samples/deployment/service1/META-INF/service.xml?rev=170361&r1=170360&r2=170361&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/samples/deployment/service1/META-INF/service.xml
(original)
+++ webservices/axis/trunk/java/modules/core/samples/deployment/service1/META-INF/service.xml
Mon May 16 04:15:07 2005
@@ -1,24 +1,21 @@
 <service name="">
     <parameter name="ServiceClass" locked="xsd:false">org.apache.axis.sample.echo.EchoImpl</parameter>
-
     <inflow>
         <handler name="logging" class="org.apache.axis.sample.handlers.LoggingHandler">
             <order phase="userphase1" phaseFirst="true"/>
         </handler>
     </inflow>
-
     <outflow/>
     <INfaultflow>
         <handler name="logging2" class="org.apache.axis.sample.handlers.LoggingHandler">
-             <order phase="userphase1"/>
+            <order phase="userphase1"/>
         </handler>
     </INfaultflow>
     <Outfaultflow>
         <handler name="logging2" class="org.apache.axis.sample.handlers.LoggingHandler">
-             <order phase="userphase1"/>
+            <order phase="userphase1"/>
         </handler>
     </Outfaultflow>
-
     <operation name="echoString">
         <module ref="module1"/>
         <messageReceiver class="org.apache.axis.receivers.RawXMLINOutMessageRecevier"/>

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/listener/RepositoryListenerImpl.java?rev=170361&r1=170360&r2=170361&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
Mon May 16 04:15:07 2005
@@ -61,7 +61,29 @@
      */
     public void checkModules() {
         String modulepath = folderName + MODULE_PATH;
-        searchWS(modulepath, MODULE);
+        String files[];
+        currentJars = new ArrayList();
+        File root = new File(modulepath);
+        // adding the root folder to the vector
+        currentJars.add(root);
+
+        while (currentJars.size() > 0) {        // loop until empty
+            File dir = (File) currentJars.get(0); // get first dir
+            currentJars.remove(0);       // remove it
+            files = dir.list();              // get list of files
+            if (files == null) {
+                continue;
+            }
+            for (int i = 0; i < files.length; i++) { // iterate
+                File f = new File(dir, files[i]);
+                if (f.isDirectory()) {        // see if it's a directory
+                    currentJars.add(0, f);
+                } // add dir to start of agenda
+                else if (isModuleArchiveFile(f.getName())) {
+                    wsinfoList.addWSInfoItem(f, MODULE);
+                }
+            }
+        }
     }
 
     /**
@@ -99,7 +121,7 @@
      * this is the actual method that is call from scheduler
      */
     public void startListent() {
-        checkModules();
+       // checkModules();
         checkServices();
         update();
     }
@@ -127,7 +149,7 @@
                 if (f.isDirectory()) {        // see if it's a directory
                     currentJars.add(0, f);
                 } // add dir to start of agenda
-                else if (isJarFile(f.getName())) {
+                else if (isServiceArchiveFile(f.getName())) {
                     wsinfoList.addWSInfoItem(f, type);
                 }
             }
@@ -140,8 +162,15 @@
      * @param filename
      * @return
      */
-    private boolean isJarFile(String filename) {
+    private boolean isServiceArchiveFile(String filename) {
         if (filename.endsWith(".jar") | filename.equals(".aar")) {
+            return true;
+        }
+        return false;
+    }
+
+     private boolean isModuleArchiveFile(String filename) {
+        if (filename.endsWith(".jar") | filename.equals(".mar")) {
             return true;
         }
         return false;



Mime
View raw message