Author: bharath
Date: Mon Dec 14 07:01:57 2009
New Revision: 890198

URL: http://svn.apache.org/viewvc?rev=890198&view=rev
Log:
Bug: CXF-2581
Desc: During logging, we invoke toString on an array, which will generate junk 
result. Fixed this by invoking Arrays.toString to convert the array into a 
readable String that gives the contents of the array.
Test: Units Tests

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=890198&r1=890197&r2=890198&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
 Mon Dec 14 07:01:57 2009
@@ -22,6 +22,7 @@
 import java.io.File;
 import java.net.URI;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 import java.util.Set;
 
@@ -399,7 +400,7 @@
         List<String> list = wsdlOption.generateCommandLine(outputDirFile, 
basedir, wsdlURI, getLog()
             .isDebugEnabled());
         String[] args = (String[])list.toArray(new String[list.size()]);
-        getLog().debug("Calling wsdl2java with args: " + args);
+        getLog().debug("Calling wsdl2java with args: " + 
Arrays.toString(args));
         try {
             new WSDLToJava(args).run(new ToolContext());
         } catch (Throwable e) {


Reply via email to