tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r710210 - /tuscany/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
Date Mon, 03 Nov 2008 22:59:36 GMT
Author: rfeng
Date: Mon Nov  3 14:59:35 2008
New Revision: 710210

URL: http://svn.apache.org/viewvc?rev=710210&view=rev
Log:
Adding target execution env

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

Modified: tuscany/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java?rev=710210&r1=710209&r2=710210&view=diff
==============================================================================
--- tuscany/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
(original)
+++ tuscany/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java
Mon Nov  3 14:59:35 2008
@@ -290,27 +290,32 @@
         ps.println("<?pde version=\"3.2\"?>");
 
         ps.println("<target name=\"Eclipse Target - " + project.getArtifactId() + "\">");
-        ps.println("<location useDefault=\"true\"/>");
+        
+        ps.println("  <targetJRE>");
+        ps.println("    <execEnv>J2SE-1.5</execEnv>");
+        ps.println("  </targetJRE>");
+        
+        ps.println("  <location useDefault=\"true\"/>");
 
         // ps.println("<content useAllPlugins=\"true\">");
-        ps.println("<content>");
-        ps.println("<plugins>");
+        ps.println("  <content>");
+        ps.println("    <plugins>");
         for (String id : ids) {
-            ps.println("<plugin id=\"" + id + "\"/>");
+            ps.println("      <plugin id=\"" + id + "\"/>");
         }
-        ps.println("</plugins>");
-        ps.println("<features>");
+        ps.println("    </plugins>");
+        ps.println("    <features>");
         if (features != null) {
             for (String f : features) {
-                ps.println("<feature id=\"" + f + "\"/>");
+                ps.println("      <feature id=\"" + f + "\"/>");
             }
         }
-        ps.println("</features>");
-        ps.println("<extraLocations>");
+        ps.println("    </features>");
+        ps.println("    <extraLocations>");
         // Not sure why the extra path needs to the plugins folder
-        ps.println("<location path=\"" + targetDirectory + "\"/>");
-        ps.println("</extraLocations>");
-        ps.println("</content>");
+        ps.println("      <location path=\"" + targetDirectory + "\"/>");
+        ps.println("    </extraLocations>");
+        ps.println("  </content>");
 
         ps.println("</target>");
 



Mime
View raw message