MPECLIPSE-127 : Generates the component file in the good directory depending on maven.eclipse.wtp.version

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@480127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2006-11-28 16:53:18 +00:00
1 parent bb301f1477
commit 83eb1cdb3a
2 files changed
+18 -3

No files matched your search

+14 -2
View File
@@ -155,8 +155,20 @@
<!-- Generate Eclipse .wtpmodules file -->
<!--==================================================================-->
<goal name="eclipse:generate-wtpmodules" description="Generate Eclipse .wtpmodules file">
<ant:echo>Creating ${basedir}/.wtpmodules ...</ant:echo>
<j:file name="${basedir}/.wtpmodules" prettyPrint="true" outputMode="xml" xmlns="dummy">
<j:choose>
<j:when test="${maven.eclipse.wtp.version==0.7}">
<j:set var="modulesConfig" value="${basedir}/.wtpmodules"/>
</j:when>
<j:when test="${maven.eclipse.wtp.version==1.5}">
<ant:mkdir dir="${basedir}/.settings"/>
<j:set var="modulesConfig" value="${basedir}/.settings/org.eclipse.wst.common.component"/>
</j:when>
<j:otherwise>
<ant:fail>maven.eclipse.wtp.version=${maven.eclipse.wtp.version} not supported. Please check the plugin documentation to have the list of supported values.</ant:fail>
</j:otherwise>
</j:choose>
<ant:echo>Creating ${modulesConfig} ...</ant:echo>
<j:file name="${modulesConfig}" prettyPrint="true" outputMode="xml" xmlns="dummy">
<j:import file="${plugin.resources}/templates/wtpmodules.jelly" inherit="true" />
</j:file>
</goal>
+4 -1
View File
@@ -88,4 +88,7 @@ maven.eclipse.javadoc.download = true
###
# List of servlet api used to find the servlet version to set in wtp
maven.eclipse.servletapilist=javax.servlet:servlet-api,servletapi:servletapi,geronimo-spec:geronimo-spec-servlet
maven.eclipse.servletapilist=javax.servlet:servlet-api,servletapi:servletapi,geronimo-spec:geronimo-spec-servlet
# For which version of WTP we have to generate the configuration
maven.eclipse.wtp.version=1.5