axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp ServiceWriter.java
Date Wed, 06 Apr 2005 05:17:10 GMT
samisa      2005/04/05 22:17:10

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp
                        ServiceWriter.java
  Log:
  Added logic so that we do not overwrite an existing service implementation.
  AXISCPP-605
  
  Revision  Changes    Path
  1.25      +7 -0      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceWriter.java
  
  Index: ServiceWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ServiceWriter.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ServiceWriter.java	23 Mar 2005 15:45:04 -0000	1.24
  +++ ServiceWriter.java	6 Apr 2005 05:17:10 -0000	1.25
  @@ -45,6 +45,13 @@
           this.methods = wscontext.getSerInfo().getMethods();
       }
   
  +    public void writeSource() throws WrapperFault
  +    {
  +        // We should not overwrite the service file if it already exsists
  +        if (! getFilePath().exists())
  +            super.writeSource();
  +    }
  +
       protected void writeClassComment() throws WrapperFault
       {
           try
  
  
  

Mime
View raw message