cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6712] Adding an encoding property to java2wadl, patch from Daniel Urban applied
Date Wed, 16 Dec 2015 11:27:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes a4e6bafac -> 2dc244b8f


[CXF-6712] Adding an encoding property to java2wadl, patch from Daniel Urban applied


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2dc244b8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2dc244b8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2dc244b8

Branch: refs/heads/3.0.x-fixes
Commit: 2dc244b8f996d916da04a114a26126e917e4b0fd
Parents: a4e6baf
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Dec 16 11:18:12 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Dec 16 11:27:37 2015 +0000

----------------------------------------------------------------------
 .../cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java   | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2dc244b8/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
----------------------------------------------------------------------
diff --git a/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
b/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
index a8fa254..79f7cb1 100644
--- a/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
+++ b/maven-plugins/java2wadl-plugin/src/main/java/org/apache/cxf/maven_plugin/javatowadl/ParseJavaDocMojo.java
@@ -48,6 +48,14 @@ import org.codehaus.plexus.archiver.manager.ArchiverManager;
 public class ParseJavaDocMojo extends AbstractJavadocMojo {
 
     /**
+     * The source encoding.
+     * 
+     * @parameter defaultValue = "${project.build.sourceEncoding}"
+     * @required
+     */
+    private String encoding;
+    
+    /**
      * @parameter expression="${project}"
      * @required
      */
@@ -130,6 +138,10 @@ public class ParseJavaDocMojo extends AbstractJavadocMojo {
             f.setAccessible(true);
             f.set(this, "org.apache.cxf.maven_plugin.javatowadl.DumpJavaDoc");
 
+            f = AbstractJavadocMojo.class.getDeclaredField("encoding");
+            f.setAccessible(true);
+            f.set(mojo, encoding);
+            
             f = AbstractJavadocMojo.class.getDeclaredField("stylesheet");
             f.setAccessible(true);
             f.set(this, "stylesheet");


Mime
View raw message