- Fixed bug apparently due to some changes in maven core. ${plugin} seems to now reference the calling plugin and not this plugin.

- Prepare for 1.0 release


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114342 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol committed 2003-11-16 13:01:08 +00:00
1 parent 7630b060cd
commit e3ee74829e
4 files changed
+16 -5

No files matched your search

+9 -1
View File
@@ -11,19 +11,27 @@
<caller:call goalInterface="compile-java"/>
-->
<define:tag name="call">
<j:set var="callProperty" value="maven.caller.call.${goalInterface}"/>
<!-- Search first in the caller's context -->
<j:set var="goalName"
value="${context.findVariable(callProperty)}"/>
<j:if test="${goalName == null}">
<!-- Search in this plugin context -->
<j:set var="goalName"
value="${plugin.context.findVariable(callProperty)}"/>
value="${pom.getPluginContext('maven-caller-plugin').findVariable(callProperty)}"/>
</j:if>
<j:if test="${goalName == null}">
<ant:fail message="Property [maven.caller.call.${goalInterface}] is not defined"/>
</j:if>
<attainGoal name="${goalName}"/>
</define:tag>
<!-- Example of usage:
+3 -3
View File
@@ -5,14 +5,14 @@
<pomVersion>3</pomVersion>
<id>maven-caller-plugin</id>
<name>Maven Caller Plugin</name>
<currentVersion>1.0-SNAPSHOT</currentVersion>
<currentVersion>1.0</currentVersion>
<description>Interface to isolate calls between plugins</description>
<shortDescription>Maven Caller plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/caller/</url>
<siteDirectory>/www/maven.apache.org/reference/plugins/caller/</siteDirectory>
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/caller/</connection>
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/caller/</url>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/caller/</connection>
<url>http://cvs.apache.org/viewcvs/maven-plugins/caller/</url>
</repository>
<developers>
<developer>
+1 -1
View File
@@ -6,7 +6,7 @@
</properties>
<body>
<release version="1.0" date="in CVS">
<release version="1.0" date="2003-11-16">
<action dev="vmassol" type="add">
Initial creation of plugin.
</action>
+3
View File
@@ -12,6 +12,9 @@
<item name="Goals" href="/goals.html" />
<item name="Properties" href="/properties.html" />
</menu>
<menu name="Downloads">
<item name="Caller plugin 1.0" href="http://www.ibiblio.org/maven/maven/plugins/maven-caller-plugin-1.0.jar"/>
</menu>
</body>
</project>