From f8eacd8b86431005ae44aa5762bf0a5997f0174b Mon Sep 17 00:00:00 2001 From: ltheussl Date: Fri, 13 Apr 2007 07:33:23 +0000 Subject: [PATCH] PR: MPJALOPY-12 Add a property that controls the source code encoding. Thanks to Joachim Bader. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@528376 13f79535-47bb-0310-9956-ffa450edef68 --- jalopy/plugin.jelly | 1 + jalopy/plugin.properties | 1 + jalopy/project.xml | 2 +- jalopy/xdocs/changes.xml | 1 + jalopy/xdocs/properties.xml | 10 ++++++++++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/jalopy/plugin.jelly b/jalopy/plugin.jelly index a52c272e..e5291ea6 100644 --- a/jalopy/plugin.jelly +++ b/jalopy/plugin.jelly @@ -51,6 +51,7 @@ inspect="${maven.jalopy.inspect}" backup="${maven.jalopy.backup}" force="${maven.jalopy.force}" + encoding="${maven.jalopy.encoding}" sourceDirectory="${pom.build.sourceDirectory}" testSourceDirectory="${pom.build.unitTestSourceDirectory}" srcIncludesPattern="${maven.jalopy.src.filesetInclude}" diff --git a/jalopy/plugin.properties b/jalopy/plugin.properties index e8930f1d..d0bdb8ae 100644 --- a/jalopy/plugin.properties +++ b/jalopy/plugin.properties @@ -25,6 +25,7 @@ maven.jalopy.failOnError=true maven.jalopy.inspect=false maven.jalopy.backup=false maven.jalopy.force=false +maven.jalopy.encoding=${maven.compile.encoding} maven.jalopy.filesetInclude=**/*.java maven.jalopy.filesetExclude= diff --git a/jalopy/project.xml b/jalopy/project.xml index 049f4091..94ad24ee 100644 --- a/jalopy/project.xml +++ b/jalopy/project.xml @@ -22,7 +22,7 @@ 3 maven-jalopy-plugin Maven Jalopy Plugin - 1.5 + 1.5.1-SNAPSHOT Reformat java source diff --git a/jalopy/xdocs/changes.xml b/jalopy/xdocs/changes.xml index 3e46c0ae..5c41cd7e 100644 --- a/jalopy/xdocs/changes.xml +++ b/jalopy/xdocs/changes.xml @@ -24,6 +24,7 @@ + Add a property that controls the source code encoding. Upgrade plexus-utils to version 1.0.5 diff --git a/jalopy/xdocs/properties.xml b/jalopy/xdocs/properties.xml index 9eff5286..10c68dbf 100644 --- a/jalopy/xdocs/properties.xml +++ b/jalopy/xdocs/properties.xml @@ -88,6 +88,16 @@ Defaults to "false". + + maven.jalopy.encoding + Yes + + Sets the encoding that controls how Jalopy interprets text files + containing characters beyond the ASCII character set. + Defaults to the value of maven.compile.encoding, if + this is not set, the platform's default encoding will be used. + + maven.jalopy.filesetInclude Yes