Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2013-05-03 08:40:47 -0400
committerFred Bricon2013-05-03 08:40:47 -0400
commitdb4cc176dbb398255292bc9f2d359ef5e03d79f2 (patch)
tree201855349017acf172052c25e343e6f86eca644b
parent420e5747caf031d8a8b1d7312a48d832605d0c71 (diff)
downloadm2e-core-db4cc176dbb398255292bc9f2d359ef5e03d79f2.tar.gz
m2e-core-db4cc176dbb398255292bc9f2d359ef5e03d79f2.tar.xz
m2e-core-db4cc176dbb398255292bc9f2d359ef5e03d79f2.zip
407165 : add an m2e-activated profile
Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.editor.xml/OSGI-INF/l10n/bundle.properties2
-rw-r--r--org.eclipse.m2e.editor.xml/plugin.xml18
2 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.m2e.editor.xml/OSGI-INF/l10n/bundle.properties b/org.eclipse.m2e.editor.xml/OSGI-INF/l10n/bundle.properties
index 842d65a7..eb4580ca 100644
--- a/org.eclipse.m2e.editor.xml/OSGI-INF/l10n/bundle.properties
+++ b/org.eclipse.m2e.editor.xml/OSGI-INF/l10n/bundle.properties
@@ -62,5 +62,7 @@ template.tools.description = Profile for tools.jar
template.tools.name = tools.jar
template.tools2.description = Path to the tools.jar
template.tools2.name = tools.jar
+template.m2e.profile.description = m2e activated profile
+template.m2e.profile.name = m2e profile
keyword.label = maven
page.name = Templates
diff --git a/org.eclipse.m2e.editor.xml/plugin.xml b/org.eclipse.m2e.editor.xml/plugin.xml
index ff6d8f27..3bce4880 100644
--- a/org.eclipse.m2e.editor.xml/plugin.xml
+++ b/org.eclipse.m2e.editor.xml/plugin.xml
@@ -372,6 +372,24 @@
&lt;/profile&gt;</pattern>
</template>
+ <template id="org.eclipse.m2e.editor.xml.templates.profile.m2e.jar"
+ contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.profiles"
+ name="%template.m2e.profile.name"
+ description="%template.m2e.profile.description">
+ <pattern>&lt;profile&gt;
+ &lt;id&gt;m2e&lt;/id&gt;
+ &lt;!-- This profile is only activated when building in Eclipse with m2e --&gt;
+ &lt;activation&gt;
+ &lt;property&gt;
+ &lt;name&gt;m2e.version&lt;/name&gt;
+ &lt;/property&gt;
+ &lt;/activation&gt;
+ ${cursor}
+ &lt;/profile&gt;
+ </pattern>
+ </template>
+
+
<template id="org.eclipse.m2e.editor.xml.templates.systemPath.tools.jar"
contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.systemPath"
name="%template.tools2.name"

Back to the top