Richard Allen wrote:
In the latest version of the plugin Jeff fixed this problem.
Richard Allen
The plugin works fine now but I have encountered another problem:
javaEncoding.
In JspC.java encoding defaults to UTF-8 and the plugin doesn't have
javaEncoding field.
I changed this for my purposes and I'm sending a patch.
Could someone commit the changes?
Cheers
Pablo
Index: /ora/cvsroot/jspc-maven-plugin/src/main/java/org/codehaus/mojo/jspc/JspcMojo.java
===================================================================
--- /ora/cvsroot/jspc-maven-plugin/src/main/java/org/codehaus/mojo/jspc/JspcMojo.java (revision 1497)
+++ /ora/cvsroot/jspc-maven-plugin/src/main/java/org/codehaus/mojo/jspc/JspcMojo.java (working copy)
@@ -120,6 +120,13 @@
*/
protected boolean listErrors;
+ /**
+ * Character encoding
+ *
+ * @parameter
+ */
+ protected String javaEncoding;
+
public void execute() throws MojoExecutionException {
try {
@@ -175,6 +182,10 @@
args.add(warSourceDirectory);
args.add("-d");
args.add(workingDirectory);
+ if(javaEncoding != null) {
+ args.add("-javaEncoding");
+ args.add(javaEncoding);
+ }
if (showSuccess) {
args.add("-s");
}