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 de...@apache.org on 2005/02/07 07:42:09 UTC

svn commit: r151690 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment: DeploymentEngine.java DeploymentParser.java repository/utill/UnZipJAR.java

Author: deepal
Date: Sun Feb  6 22:42:07 2005
New Revision: 151690

URL: http://svn.apache.org/viewcvs?view=rev&rev=151690
Log:
refactoring mathod names and adding comments

Modified:
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java
    webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java?view=diff&r1=151689&r2=151690
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java Sun Feb  6 22:42:07 2005
@@ -112,7 +112,8 @@
                 try {
                     serverConf.createNewFile();
                     FileOutputStream out = new FileOutputStream(serverConf);
-                    byte[] buf = new byte[512];
+                    int BUFSIZE = 512; // since only a test file going to load , the size has selected
+                    byte[] buf = new byte[BUFSIZE];
                     int read;
                     while((read = in.read(buf)) > 0){
                         out.write(buf,0,read);

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java?view=diff&r1=151689&r2=151690
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java Sun Feb  6 22:42:07 2005
@@ -99,7 +99,7 @@
                     String ST = pullparser.getLocalName();
                     if (ST.equals(SERVICEXMLST)) {
                         procesServiceXML(axisService);
-                        axisService.setName(new QName(getShortFileName(dpengine.getCurrentFileItem().getFile().getName())));
+                        axisService.setName(new QName(getAxisServiceName(dpengine.getCurrentFileItem().getFile().getName())));
                     }
                     //processStartElement();
                     break;//todo this has to be chenfed only for testng
@@ -856,7 +856,13 @@
         return in;
     }
 
-    private String getShortFileName(String fileName){
+    /**
+     * This method is used to retrive service name form the arechive file name
+     * if the archive file name is service1.aar , then axis service name would be service1
+     * @param fileName
+     * @return
+     */
+    private String getAxisServiceName(String fileName){
         char seperator = '.';
         String value = null;
         int index = fileName.indexOf(seperator);

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java?view=diff&r1=151689&r2=151690
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java Sun Feb  6 22:42:07 2005
@@ -28,7 +28,7 @@
 import java.util.zip.ZipInputStream;
 
 public class UnZipJAR implements DeploymentConstants {
-    final int BUFFER = 2048;
+    //final int BUFFER = 2048;
 
     /**
      * This method will unzipService the given jar or aar.