Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2015-10-21 00:24:44 -0400
committerJan Bartel2015-10-21 00:25:24 -0400
commit781a380fbd6f5f8186a88b107ce90755e04a4db6 (patch)
tree777b659cffd9faadc01606ae151f33bbca509c76 /jetty-jspc-maven-plugin
parentc156f6593c2525116e9b5d8bdaf62f3fa82b5b06 (diff)
downloadorg.eclipse.jetty.project-781a380fbd6f5f8186a88b107ce90755e04a4db6.tar.gz
org.eclipse.jetty.project-781a380fbd6f5f8186a88b107ce90755e04a4db6.tar.xz
org.eclipse.jetty.project-781a380fbd6f5f8186a88b107ce90755e04a4db6.zip
480272 Update to newer jdt ecj version
Diffstat (limited to 'jetty-jspc-maven-plugin')
-rw-r--r--jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java23
1 files changed, 22 insertions, 1 deletions
diff --git a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java
index d9f3326e6c..bfc8cabea7 100644
--- a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java
+++ b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java
@@ -251,6 +251,19 @@ public class JspcMojo extends AbstractMojo
/**
+ * Source version - if not set defaults to jsp default (currently 1.7)
+ * @parameter
+ */
+ private String sourceVersion;
+
+
+ /**
+ * Target version - if not set defaults to jsp default (currently 1.7)
+ * @parameter
+ */
+ private String targetVersion;
+
+ /**
*
* The JspC instance being used to compile the jsps.
*
@@ -280,7 +293,11 @@ public class JspcMojo extends AbstractMojo
getLog().info("webXml="+webXml);
getLog().info("insertionMarker="+ (insertionMarker == null || insertionMarker.equals("") ? END_OF_WEBAPP : insertionMarker));
getLog().info("keepSources=" + keepSources);
- getLog().info("mergeFragment=" + mergeFragment);
+ getLog().info("mergeFragment=" + mergeFragment);
+ if (sourceVersion != null)
+ getLog().info("sourceVersion="+sourceVersion);
+ if (targetVersion != null)
+ getLog().info("targetVersion="+targetVersion);
}
try
{
@@ -343,6 +360,10 @@ public class JspcMojo extends AbstractMojo
jspc.setClassLoader(fakeWebAppClassLoader);
jspc.setScanAllDirectories(scanAllDirectories);
jspc.setCompile(true);
+ if (sourceVersion != null)
+ jspc.setCompilerSourceVM(sourceVersion);
+ if (targetVersion != null)
+ jspc.setCompilerTargetVM(targetVersion);
// JspC#setExtensions() does not exist, so
// always set concrete list of files that will be processed.

Back to the top