/usr/share/doc/libantelope-java/manual/bk03ch06.html is in libantelope-java-doc 3.5.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 6. SwitchTask</title><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="Antelope Users Guide"><link rel="up" href="bk03.html" title="Additional Ant Tasks"><link rel="prev" href="bk03ch05s02.html" title="More Conditions"><link rel="next" href="bk03ch07.html" title="Chapter 7. Try Task"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 6. SwitchTask</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bk03ch05s02.html">Prev</a> </td><th width="60%" align="center">Additional Ant Tasks</th><td width="20%" align="right"> <a accesskey="n" href="bk03ch07.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="switch"></a>Chapter 6. SwitchTask</h1></div></div></div>
@style@
<p>
The "Switch" task works much like the Java "switch" construct. It supports nested "case" elements, which in turn, support nested "break" elements. There is also a "default" case element, so this should be very natural for Java developers to use.
</p><p>
</p><div class="table"><a name="idm1125"></a><p class="title"><b>Table 6.1. Switch Task Attributes</b></p><div class="table-contents"><table class="table" summary="Switch 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 a property whose value will be used for the switch.</td><td>None</td><td>Yes</td></tr></tbody></table></div></div><p><br class="table-break">
</p><p>
</p><div class="table"><a name="idm1141"></a><p class="title"><b>Table 6.2. "case" and "default" Attributes</b></p><div class="table-contents"><table class="table" summary='"case" and "default" 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>value</td><td>The value of of the property used for the switch. If this value equals the property value, then all tasks in this 'case' will be executed.</td><td>None</td><td>Yes</td></tr></tbody></table></div></div><p><br class="table-break">
</p><p>
</p><pre class="programlisting">
<property name="foo" value="bar"/>
<switch name="foo">
<case value="baz">
<echo>Executing case baz</echo>
<break/>
</case>
<case value="bar">
<echo>Executing case bar</echo>
<if name="foo" value="bar">
<echo>breaking from the if</echo>
<break/>
</if>
<echo>Falling through to case "bat"</echo>
</case>
<case value="bat">
<echo>Executing case bat</echo>
<break/>
</case>
<default>
<echo>Executing default case</echo>
<break/>
</default>
</switch>
</pre><p>
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bk03ch05s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bk03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bk03ch07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">More Conditions </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 7. Try Task</td></tr></table></div></body></html>
|