Author: fbricon
Date: 2011-12-06 06:11:55 -0500 (Tue, 06 Dec 2011)
New Revision: 36990
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/plugin.xml
Log:
JBIDE-10354: add openshift profile template to pom.xml editor
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/plugin.xml
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/plugin.xml 2011-12-06
11:07:18 UTC (rev 36989)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/plugin.xml 2011-12-06
11:11:55 UTC (rev 36990)
@@ -62,7 +62,7 @@
<extension
point="org.eclipse.wst.server.core.serverTypes">
<serverType
-
behaviourClass="org.jboss.tools.openshift.express.internal.core.behaviour.ExpressBehaviour"
+
behaviourClass="org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior"
class="org.jboss.ide.eclipse.as.core.server.internal.JBossServer"
name="%openshift.express.name"
description="%openshift.express.description"
@@ -212,5 +212,31 @@
type="org.eclipse.ui.console.MessageConsole">
</propertyTester>
</extension>
-
+
+ <extension point="org.eclipse.ui.editors.templates">
+ <template
id="org.jboss.tools.maven.editor.xml.templates.profiles.openshift"
+
contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.profiles"
+ name="OpenShift Express profile"
+ description="OpenShift Express profile">
+ <pattern> <profile>
+ <!-- When built in OpenShift the 'openshift' profile will be
used when invoking mvn. -->
+ <!-- Use this profile for any OpenShift specific customization your app will
need. -->
+ <!-- By default that is to put the resulting archive into the
'deployments' folder. -->
+ <!--
http://maven.apache.org/guides/mini/guide-building-for-different-environm...
-->
+ <id>openshift</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1.1</version>
+ <configuration>
+ <outputDirectory>deployments</outputDirectory>
+ <warName>ROOT</warName>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</profile></pattern>
+ </template>
+ </extension>
</plugin>