tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r719486 - /tuscany/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
Date Fri, 21 Nov 2008 05:49:28 GMT
Author: rfeng
Date: Thu Nov 20 21:49:28 2008
New Revision: 719486

URL: http://svn.apache.org/viewvc?rev=719486&view=rev
Log:
Make the executionEnvironment for target definition configurable

Modified:
    tuscany/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java

Modified: tuscany/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java?rev=719486&r1=719485&r2=719486&view=diff
==============================================================================
--- tuscany/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
(original)
+++ tuscany/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
Thu Nov 20 21:49:28 2008
@@ -90,6 +90,11 @@
      *  @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 @@
 
         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\"/>");



Mime
View raw message