Add assertFileNotFound tag to assert taglib

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115594 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2004-06-29 11:41:05 +00:00
parent 9d9b059d25
commit 77f60e348d
3 changed files with 12 additions and 1 deletions

View File

@ -331,6 +331,14 @@
<ant:fail>${file} does not exist.${msg}</ant:fail> <ant:fail>${file} does not exist.${msg}</ant:fail>
</j:if> </j:if>
</define:tag> </define:tag>
<define:tag name="assertFileNotFound">
<!-- @file : Full file path -->
<!-- @msg : optional message to be displayed -->
<u:file var="fileAsFile" name="${file}"/>
<j:if test="${fileAsFile.exists()}">
<ant:fail>${file} found and not expected.${msg}</ant:fail>
</j:if>
</define:tag>
<define:tag name="assertEquals"> <define:tag name="assertEquals">
<!-- @expected : the expected value --> <!-- @expected : the expected value -->
<!-- @value : the actual value --> <!-- @value : the actual value -->

View File

@ -23,7 +23,7 @@
<pomVersion>3</pomVersion> <pomVersion>3</pomVersion>
<id>maven-plugin-plugin</id> <id>maven-plugin-plugin</id>
<name>Maven Plugin Plugin</name> <name>Maven Plugin Plugin</name>
<currentVersion>1.5</currentVersion> <currentVersion>1.6-SNAPSHOT</currentVersion>
<description>Maven Plugin management plugin. Requires Maven 1.0 RC4.</description> <description>Maven Plugin management plugin. Requires Maven 1.0 RC4.</description>
<shortDescription>Maven Plugin plugin</shortDescription> <shortDescription>Maven Plugin plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/plugin/</url> <url>http://maven.apache.org/reference/plugins/plugin/</url>

View File

@ -24,6 +24,9 @@
<author email="evenisse@ifrance.com">Emmanuel Venisse</author> <author email="evenisse@ifrance.com">Emmanuel Venisse</author>
</properties> </properties>
<body> <body>
<release version="1.6-SNAPSHOT" date="in CVS">
<action dev="dion" type="add">Add assertFileNotFound tag</action>
</release>
<release version="1.5" date="2004-06-28"> <release version="1.5" date="2004-06-28">
<action dev="brett" type="fix" issue="MPPLUGIN-16">Install to maven.plugin.dir instead of maven.home/plugins</action> <action dev="brett" type="fix" issue="MPPLUGIN-16">Install to maven.plugin.dir instead of maven.home/plugins</action>
<action dev="brett" type="update">More consistency in default goal naming (plugin:plugin)</action> <action dev="brett" type="update">More consistency in default goal naming (plugin:plugin)</action>