avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [avro] branch master updated: AVRO-2207: avro-maven-plugin: Using project.build.sourceEncoding as a encoding for files generated from avdl/avpr
Date Thu, 01 Nov 2018 21:34:37 GMT
This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 2670094  AVRO-2207: avro-maven-plugin: Using project.build.sourceEncoding as a encoding
for files generated from avdl/avpr
2670094 is described below

commit 26700949812e39f6ddedc63c53f8cb5562fd7f15
Author: Arek Burdach <arek.burdach@gmail.com>
AuthorDate: Mon Aug 6 12:06:10 2018 +0200

    AVRO-2207: avro-maven-plugin: Using project.build.sourceEncoding as a encoding for files
generated from avdl/avpr
---
 .../maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java | 1 +
 .../maven-plugin/src/main/java/org/apache/avro/mojo/ProtocolMojo.java    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java
b/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java
index 3ee7fcb..f82d942 100644
--- a/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java
+++ b/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/IDLProtocolMojo.java
@@ -94,6 +94,7 @@ public class IDLProtocolMojo extends AbstractAvroMojo {
       compiler.setFieldVisibility(getFieldVisibility());
       compiler.setCreateSetters(createSetters);
       compiler.setEnableDecimalLogicalType(enableDecimalLogicalType);
+      compiler.setOutputCharacterEncoding(project.getProperties().getProperty("project.build.sourceEncoding"));
       compiler.compileToDestination(null, outputDirectory);
     } catch (ParseException e) {
       throw new IOException(e);
diff --git a/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/ProtocolMojo.java b/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/ProtocolMojo.java
index 25ee56b..0be3d69 100644
--- a/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/ProtocolMojo.java
+++ b/lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/ProtocolMojo.java
@@ -62,6 +62,7 @@ public class ProtocolMojo extends AbstractAvroMojo {
     compiler.setFieldVisibility(getFieldVisibility());
     compiler.setCreateSetters(createSetters);
     compiler.setEnableDecimalLogicalType(enableDecimalLogicalType);
+    compiler.setOutputCharacterEncoding(project.getProperties().getProperty("project.build.sourceEncoding"));
     compiler.compileToDestination(src, outputDirectory);
   }
 


Mime
View raw message