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 di...@apache.org on 2005/12/22 06:40:07 UTC
svn commit: r358504 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/PrettyPrinter.java
Author: dims
Date: Wed Dec 21 21:40:02 2005
New Revision: 358504
URL: http://svn.apache.org/viewcvs?rev=358504&view=rev
Log:
fix comment headers in generated code
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/PrettyPrinter.java
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/PrettyPrinter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/PrettyPrinter.java?rev=358504&r1=358503&r2=358504&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/PrettyPrinter.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/PrettyPrinter.java Wed Dec 21 21:40:02 2005
@@ -21,6 +21,7 @@
import org.apache.commons.logging.LogFactory;
import java.io.File;
+import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
@@ -48,6 +49,17 @@
// Set the output file
Method output = clazz.getMethod("setOutput", new Class[]{File.class});
output.invoke(prettifier, new Object[]{file});
+
+ Class clazz2 = Loader.loadClass("de.hunsicker.jalopy.storage.Convention");
+ Method instance = clazz2.getMethod("getInstance", new Class[]{});
+ Object settings = instance.invoke(null, new Object[]{});
+
+ Class clazz3 = Loader.loadClass("de.hunsicker.jalopy.storage.ConventionKeys");
+ Field field = clazz3.getField("COMMENT_JAVADOC_PARSE");
+ Object key = field.get(null);
+
+ Method put = clazz2.getMethod("put", new Class[]{ key.getClass(), String.class});
+ put.invoke(settings, new Object[]{key, "true"});
// format and overwrite the given input file
Method format = clazz.getMethod("format", new Class[]{});