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 sa...@apache.org on 2005/04/06 07:17:10 UTC
cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp ServiceWriter.java
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