o MAVEN-323: eclipse needs to be able to access the test plugin's dependencies. This tag forces test plugin to be loaded when eclipse plugin is run.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding committed 2003-03-16 01:01:44 +00:00
1 parent c1a85aecdd
commit 89182f3b8c
2 files changed
+27 -2

No files matched your search

+14 -2
View File
@@ -3,6 +3,8 @@
<project xmlns:j="jelly:core"
xmlns:test="test">
<test:eclipse/>
<!--==================================================================-->
<!-- Generate Eclipse .project and .classpath files -->
<!--==================================================================-->
@@ -40,8 +42,8 @@
</j:file>
<echo>Creating ${basedir}/.classpath ...</echo>
<j:file name="${basedir}/.classpath" prettyPrint="true" xmlns="dummy">
<j:file name="${basedir}/.classpath" prettyPrint="true" xmlns="dummy">
<classpath>
<j:if test="${sourcesPresent}">
@@ -152,6 +154,16 @@
<j:set var="toDir" value="${maven.eclipse.workspace}/.metadata/.plugins/org.eclipse.ui.externaltools/" />
<copy file="${toolFile}" todir="${toDir}"/>
</j:if>
<j:if test='${ws == "X"}'>
<echo>
Please set maven.eclipse.workspace to the location of your eclipse workspace.
Alternatively, copy
${maven.build.dir}/eclipse/externaltools.xml
to
[maven.eclipse.workspace]/.metadata/.plugins/org.eclipse.ui.externaltools/externaltools.xml
</echo>
</j:if>
</goal>
+13
View File
@@ -5,6 +5,15 @@
xmlns:resources="resources"
xmlns:define="jelly:define">
<define:taglib uri="test">
<define:tag name="eclipse">
<!-- The eclipse plugin requires access to the test plugin.
Using this tag forces the test plugin to be loaded into the
eclipse plugin -->
</define:tag>
</define:taglib>
<goal name="test"
description="Test the application"
prereqs="test:test"/>
@@ -260,6 +269,10 @@
<attainGoal name="test:match"/>
</goal>
<goal name="test:eclipse">
<echo>Used by eclipse to drag in test plugin context</echo>
</goal>
<!-- ================================================================== -->
<!-- T E S T R E S O U R C E S -->