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:
1 parent
9d9b059d25
commit
77f60e348d
3 files changed
+12
-1
No files matched your search
@@ -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 -->
|
||||
|
||||
Reference in new issue
Block a user