From b9421dc80af485591a9c50cc8921f912e0def11e Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:05:40 -0700 Subject: Removing sources to replace with download links instead. Change-Id: Ie28789a725051aec0d1b04dd291b7690a7898668 Signed-off-by: Ashlee Young --- .../ant/apache-ant-1.9.6/manual/Tasks/fail.html | 143 --------------------- 1 file changed, 143 deletions(-) delete mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/fail.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/fail.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/fail.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/fail.html deleted file mode 100644 index eabe30b8..00000000 --- a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/fail.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -Fail Task - - - - -

Fail

-

Description

-

Exits the current build (just throwing a BuildException), optionally printing additional information.

-

The message of the Exception can be set via the message attribute -or character data nested into the element.

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - -
AttributeDescriptionRequired
messageA message giving further information on why the build exitedNo
ifOnly fail if a property of the given name exists - in the current projectNo
unlessOnly fail if a property of the given name doesn't - exist in the current projectNo
statusExit using the specified status code; - assuming the generated Exception is not caught, the - JVM will exit with this status. Since Apache Ant 1.6.2No
- -

Parameters specified as nested elements

- -

As an alternative to the if/unless attributes, - conditional failure can be achieved using a single nested - <condition> element, which should contain exactly one - core or custom condition. For information about conditions, see - here.
Since Ant 1.6.2 -

- -

Examples

- -
  <fail/>
-

will exit the current build with no further information given.

-
-BUILD FAILED
-
-build.xml:4: No message
-
- -
  <fail message="Something wrong here."/>
-

will exit the current build and print something - like the following to wherever your output goes: -

-
-BUILD FAILED
-
-build.xml:4: Something wrong here.
-
- -
  <fail>Something wrong here.</fail>
-

will give the same result as above.

- -
  <fail unless="thisdoesnotexist"/>
-

will exit the current build and print something - like the following to wherever your output goes: -

-
-BUILD FAILED
-
-build.xml:2: unless=thisdoesnotexist
-
- -Using a condition to achieve the same effect: - -
-  <fail>
-     <condition>
-       <not>
-         <isset property="thisdoesnotexist"/>
-       </not>
-     </condition>
-   </fail>
-
- -

Output:

-
-BUILD FAILED
-
-build.xml:2: condition satisfied
-
- -
-<fail message="Files are missing.">
-    <condition>
-        <not>
-            <resourcecount count="2">
-                <fileset id="fs" dir="." includes="one.txt,two.txt"/>
-            </resourcecount>
-        </not>
-    </condition>
-</fail>
-
-

Will check that both files one.txt and two.txt are present otherwise the build -will fail.

- - - - -- cgit 1.2.3-korg