Split the eclipse goals into generate-project and generate-classpath. Updated doco to match.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding committed 2003-04-05 10:19:44 +00:00
1 parent 2f6054577e
commit 6aaff4da07
2 files changed
+23 -12

No files matched your search

+15 -9
View File
@@ -12,22 +12,21 @@
<!--==================================================================-->
<goal name="eclipse"
description="Generate Eclipse project files"
prereqs="eclipse:generate-project"/>
prereqs="eclipse:generate-project, eclipse:generate-classpath">
<ant:echo>Now refresh your project in Eclipse (right click on the project and select "Refresh")</ant:echo>
</goal>
<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>
<ant:echo>Creating ${basedir}/.project ...</ant:echo>
<j:file name="${basedir}/.project" prettyPrint="true" xmlns="dummy">
<projectDescription>
<name>${pom.artifactId}</name>
<comment></comment>
<comment>${pom.description}</comment>
<projects>
</projects>
<buildSpec>
@@ -42,9 +41,17 @@
</natures>
</projectDescription>
</j:file>
</goal>
<goal name="eclipse:generate-classpath">
<ant:echo>Creating ${basedir}/.classpath ...</ant:echo>
<j:set var="outputDir" value="${maven.eclipse.output.dir}"/>
<j:if test="${empty outputDir}">
<j:set var="outputDir" value="target\classes"/>
</j:if>
<j:file name="${basedir}/.classpath" prettyPrint="true" xmlns="dummy">
<classpath>
@@ -89,7 +96,6 @@
</classpath>
</j:file>
<ant:echo>Now refresh your project in Eclipse (right click on the project and select "Refresh")</ant:echo>
</goal>