You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by js...@apache.org on 2003/03/06 13:57:31 UTC
cvs commit: jakarta-turbine-maven/src/plugins-build/eclipse plugin.jelly
jstrachan 2003/03/06 04:57:30
Modified: src/plugins-build/eclipse/xdocs properties.xml
src/plugins-build/eclipse plugin.jelly
Log:
added support for the eclipse output directory to be configurable from a user defined property
Revision Changes Path
1.4 +10 -0 jakarta-turbine-maven/src/plugins-build/eclipse/xdocs/properties.xml
Index: properties.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/eclipse/xdocs/properties.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- properties.xml 13 Feb 2003 15:23:04 -0000 1.3
+++ properties.xml 6 Mar 2003 12:57:30 -0000 1.4
@@ -38,6 +38,16 @@
build classpath.
</td>
</tr>
+ <tr>
+ <td>maven.eclipse.output.dir</td>
+ <td>Yes (default=target/classes)</td>
+ <td>
+ The directory to which Eclipse should output its classes.
+ By default this is the same directory as Maven generates its code
+ however this can be changed so that <code>maven clean</code>
+ does not interfere with Eclipse's build.
+ </td>
+ </tr>
</table>
<p>
Note that you will need to defined a <code>MAVEN_REPO</code> Java
1.7 +6 -1 jakarta-turbine-maven/src/plugins-build/eclipse/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/eclipse/plugin.jelly,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- plugin.jelly 16 Feb 2003 21:58:10 -0000 1.6
+++ plugin.jelly 6 Mar 2003 12:57:30 -0000 1.7
@@ -13,6 +13,11 @@
<goal name="eclipse:generate-project"
description="Generate Eclipse .project and .classpath project files">
+ <j:set var="outputDir" value="${maven.eclipse.output.dir}"/>
+ <j:if test="${empty outputDir}">
+ <j:set var="outputDir" value="target\classes"/>
+ </j:if>
+
<echo>Creating ${basedir}/.project ...</echo>
<j:file name="${basedir}/.project" prettyPrint="true" xmlns="dummy">
@@ -76,7 +81,7 @@
<j:forEach var="lib" items="${pom.artifacts}">
<classpathentry kind="var" path="MAVEN_REPO${lib.urlPath}"/>
</j:forEach>
- <classpathentry kind="output" path="target\classes"/>
+ <classpathentry kind="output" path="${outputDir}"/>
</classpath>
</j:file>