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>
</j:if>
</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">
<!-- @expected : the expected value -->
<!-- @value : the actual value -->