summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-11-21 05:49:28 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-11-21 05:49:28 +0000
commit53608d090cdcce3a0611cfedf2d6252bd4aafe40 (patch)
treeddc850f8caaf125d90c5fbb083a36079fd44a046 /java
parent297010e3203ca05b808b26dad512b5020a127713 (diff)
Make the executionEnvironment for target definition configurable
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@719486 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java b/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
index 7db367b4f0..9c8886dcd8 100644
--- a/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
+++ b/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
@@ -90,6 +90,11 @@ public class ModuleBundlesBuildMojo extends AbstractMojo {
* @parameter
*/
private boolean generateTargetPlatform;
+
+ /**
+ * OSGi execution environment
+ */
+ private String executionEnvironment;
/**
* A list of Eclipse features to be added to the target definition
@@ -379,9 +384,11 @@ public class ModuleBundlesBuildMojo extends AbstractMojo {
ps.println("<target name=\"Eclipse Target - " + project.getArtifactId() + "\">");
- ps.println(" <targetJRE>");
- ps.println(" <execEnv>J2SE-1.5</execEnv>");
- ps.println(" </targetJRE>");
+ if (executionEnvironment != null) {
+ ps.println(" <targetJRE>");
+ ps.println(" <execEnv>" + executionEnvironment + "</execEnv>");
+ ps.println(" </targetJRE>");
+ }
if(useDefaultLocation) {
ps.println(" <location useDefault=\"true\"/>");