Added assert:assertFileExists tag to verify if a file exists while testing a plugin.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114372 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aab54dc5e3
commit
a79c8c2e62
@ -5,6 +5,7 @@
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:maven="jelly:maven"
|
||||
xmlns:u="jelly:util"
|
||||
xmlns:define="jelly:define"
|
||||
xmlns:x="jelly:xml">
|
||||
|
||||
<goal name="plugin"
|
||||
@ -232,6 +233,12 @@
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<!--
|
||||
========================================================================
|
||||
Goals and tags used for testing Maven plugins.
|
||||
========================================================================
|
||||
-->
|
||||
|
||||
<!-- test a plugin -->
|
||||
<goal name="plugin:test">
|
||||
<u:available file="${basedir}/src/plugin-test/project.xml">
|
||||
@ -241,4 +248,15 @@
|
||||
ignoreFailures="false" />
|
||||
</u:available>
|
||||
</goal>
|
||||
|
||||
<define:taglib uri="assert">
|
||||
<define:tag name="assertFileExists">
|
||||
<!-- @file : Full file path -->
|
||||
<u:file var="fileAsFile" name="${file}"/>
|
||||
<j:if test="${!(fileAsFile.exists())}">
|
||||
<ant:fail>${file} does not exist</ant:fail>
|
||||
</j:if>
|
||||
</define:tag>
|
||||
</define:taglib>
|
||||
|
||||
</project>
|
||||
|
||||
@ -7,7 +7,13 @@
|
||||
|
||||
<body>
|
||||
<release version="1.2" date="in CVS">
|
||||
<action dev="dion" type="add">Add plugin:test goal</action>
|
||||
<action dev="vmassol" type="add">
|
||||
Added assert:assertFileExists tag to verify if a file exists while
|
||||
testing a plugin.
|
||||
</action>
|
||||
<action dev="dion" type="add">
|
||||
Add plugin:test goal
|
||||
</action>
|
||||
</release>
|
||||
|
||||
<release version="1.1" date="2003-09-29">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user