diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-03 22:59:35 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-11-03 22:59:35 +0000 |
commit | 8ef6e09895bcf583349597ff6757e974ec13e2ec (patch) | |
tree | 1a975d81a51984abfd4b9bee846108136177beef /branches/sca-equinox/tools/maven | |
parent | eeb1b4065ba6b008810627c49b16c03bd053f445 (diff) |
Adding target execution env
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@710210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/tools/maven')
-rw-r--r-- | branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java b/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java index c895916718..ba35485eb5 100644 --- a/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java +++ b/branches/sca-equinox/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java @@ -290,27 +290,32 @@ public class ModuleBundlesBuildMojo extends AbstractMojo { 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>"); |