diff --git a/docs/assertions.html b/docs/assertions.html index 0a0b810..da53a51 100644 --- a/docs/assertions.html +++ b/docs/assertions.html @@ -322,6 +322,21 @@ <assertResourceExists resource="${ant.home}/lib/ant.jar"/> +
assertResourceExists relies on Ant 1.8.0 or later,
+ it doesn't work with Ant 1.7.x. You can simulate the assertion
+ using the resourceExists condition
+ and assertTrue, for example
+ <au:assertTrue message="Expected resource '${ant.home}/lib/ant.jar' to exist">
+ <au:resourceExists>
+ <file file="${ant.home}/lib/ant.jar"/>
+ </au:resourceExists>
+ </au:assertTrue>
+
+
Since AntUnit 1.2
@@ -359,6 +374,21 @@ <assertResourceDoesntExist resource="${ant.home}/lib/ant.jar"/> +assertResourceDoesntExist relies on Ant 1.8.0 or later,
+ it doesn't work with Ant 1.7.x. You can simulate the assertion
+ using the resourceExists condition
+ and assertFalse, for example
+ <au:assertFalse message="Didn't expect resource '${ant.home}/lib/ant.jar' to exist">
+ <au:resourceExists>
+ <file file="${ant.home}/lib/ant.jar"/>
+ </au:resourceExists>
+ </au:assertFalse>
+
+
Asserts that a dest file is more recent than the source