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:18:32 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 4034e6fad -> 33cff6267


[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/33cff626
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/33cff626
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/33cff626

Branch: refs/heads/master
Commit: 33cff6267a891bac4d11531cfb51189e1184fcc6
Parents: 4034e6f
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:18:12 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/33cff626/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 9963fe0..be3dc32 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
@@ -46,6 +46,14 @@ import org.codehaus.plexus.archiver.manager.ArchiverManager;
 public class ParseJavaDocMojo extends AbstractMojo {
 
     /**
+     * The source encoding.
+     * 
+     * @parameter defaultValue = "${project.build.sourceEncoding}"
+     * @required
+     */
+    private String encoding;
+    
+    /**
      * @parameter expression="${project}"
      * @required
      */
@@ -127,6 +135,10 @@ public class ParseJavaDocMojo extends AbstractMojo {
             f.setAccessible(true);
             f.set(mojo, "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(mojo, "stylesheet");


Mime
View raw message