Author: ips
Date: Wed Feb 16 11:20:23 2005
New Revision: 154069

URL: http://svn.apache.org/viewcvs?view=rev&rev=154069
Log:
no longer overwrites build.properties

Modified:
    incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java

Modified: 
incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java
URL: 
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java?view=diff&r1=154068&r2=154069
==============================================================================
--- incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java 
(original)
+++ incubator/apollo/trunk/src/java/org/apache/ws/resource/tool/Wsdl2Java.java 
Wed Feb 16 11:20:23 2005
@@ -543,8 +543,6 @@
             processTemplate( context, "templates/AbstractService.vm", 
outputFile );
 
             outputFile = new File( packageDir, capitalizedServiceName + 
"Service.java" );
-
-            //only generate if it doesn't exist
             if ( !outputFile.exists() )
             {
                 processTemplate( context, "templates/Service.vm", outputFile );
@@ -554,22 +552,17 @@
             processTemplate( context, "templates/AbstractResource.vm", 
outputFile );
 
             outputFile = new File( packageDir, capitalizedServiceName + 
"Resource.java" );
-
-            //only generate if it doesn't exist
             if ( !outputFile.exists() )
             {
                 processTemplate( context, "templates/Resource.vm", outputFile 
);
             }
 
             outputFile = new File( packageDir, capitalizedServiceName + 
"Home.java" );
-
-            //only generate if it doesn't exist
             if ( !outputFile.exists() )
             {
                 processTemplate( context, "templates/Home.vm", outputFile );
             }
 
-            //only if they implemented properties does this make sense.
             if ( resourceDef.hasProperties() )
             {
                 outputFile = new File( packageDir, capitalizedServiceName + 
"PropertyQNames.java" );
@@ -589,7 +582,10 @@
             processTemplate( context, "templates/build.xml.vm", outputFile );
 
             outputFile = new File( serviceDir, "build.properties" );
-            processTemplate( context, "templates/build.properties.vm", 
outputFile );
+            if ( !outputFile.exists() )
+            {
+                processTemplate( context, "templates/build.properties.vm", 
outputFile );
+            }
         }
         catch ( Exception e )
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to