cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r750935 - /cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Date Fri, 06 Mar 2009 15:04:01 GMT
Author: dkulp
Date: Fri Mar  6 15:04:01 2009
New Revision: 750935

URL: http://svn.apache.org/viewvc?rev=750935&view=rev
Log:
Only add -verbose if -verbose doesn't already exist

Modified:
    cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java

Modified: cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java?rev=750935&r1=750934&r2=750935&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
(original)
+++ cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Fri Mar  6 15:04:01 2009
@@ -388,9 +388,7 @@
                 list.add(it.next().toString());
             }
         }
-        if (getLog().isDebugEnabled()) {
-            list.add("-verbose");            
-        }
+
         // -d specify the dir for generated source code            
         list.add("-d");
         list.add(outputDirFile.toString());
@@ -461,6 +459,9 @@
             list.add("-wsdlLocation");
             list.add(wsdlOption.getWsdlLocation() == null ? "" : wsdlOption.getWsdlLocation());
         }
+        if (getLog().isDebugEnabled() && !list.contains("-verbose")) {
+            list.add("-verbose");            
+        }
         list.add(wsdlURI.toString());
         return list;
     }



Mime
View raw message