Skip to content

Commit

Permalink
Fix #1085: Conditions section (5.8) does not correctly link to mentio…
Browse files Browse the repository at this point in the history
…ned tasks

Also fixes some related links that were broken.
  • Loading branch information
cweiske committed Mar 5, 2014
1 parent 32e105c commit fb9eb64
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
13 changes: 6 additions & 7 deletions docs/docbook5/en/source/appendixes/coretasks.xml
Expand Up @@ -500,8 +500,7 @@
so the property <literal>foo.ext.loaded</literal> is set to <literal>"true"</literal> (default).
<emphasis role="bold">k</emphasis></para>
<para><emphasis role="bold">NB:</emphasis> the Available task can also be used as a
condition, see <xref
xlink:href="#app.projcomponents"/>.</para>
condition, see <link linkend="conditions">conditions</link>.</para>

<table>
<title>Attributes</title>
Expand Down Expand Up @@ -767,7 +766,7 @@
the property is not set. You can set the value to something other than the default by
specifying the <literal>value</literal> attribute.</para>
<para>Conditions are specified as nested elements, you must specify exactly one condition -
see <xref xlink:href="#app.projcomponents"/> for a complete list of nested
see <link linkend="conditions">conditions</link> for a complete list of nested
elements.</para>
<table>
<title>Attributes</title>
Expand Down Expand Up @@ -817,10 +816,10 @@
<title>Supported Nested Tags</title>
<itemizedlist>
<listitem>
<para><literal>or</literal></para>
<para><literal><link linkend="conditions.or">or</link></literal></para>
</listitem>
<listitem>
<para><literal>and</literal></para>
<para><literal><link linkend="conditions.and">and</link></literal></para>
</listitem>
</itemizedlist>
</sect2>
Expand Down Expand Up @@ -1748,9 +1747,9 @@
<title>IfTask </title>
<para>Perform some tasks based on whether a given condition holds true or not.</para>
<para>This task doesn't have any attributes, the condition to test is specified by a nested
element - see the <xref xlink:href="#app.projcomponents"/> for a complete list of nested
element - see the <link linkend="conditions">conditions</link> for a complete list of nested
elements.</para>
<para>Just like the <literal>&lt;condition></literal> task, only a single condition can be
<para>Just like the <literal><link linkend="ConditionTask">&lt;condition></link></literal> task, only a single condition can be
specified - you combine them using <literal>&lt;and></literal> or
<literal>&lt;or></literal> conditions.</para>
<para>In addition to the condition, you can specify three different child elements,
Expand Down
29 changes: 15 additions & 14 deletions docs/docbook5/en/source/chapters/projcomponents.xml
Expand Up @@ -360,18 +360,19 @@
<sect1 xml:id="conditions">
<title> Conditions </title>

<para> Conditions are nested elements of the <xref xlink:href="#app.coretasks"/> and <xref
xlink:href="#app.coretasks"/> tasks.</para>
<para> Conditions are nested elements of the <link linkend="ConditionTask">condition</link>,
<link linkend="IfTask">if</link> and
<link linkend="WaitForTask">waitfor</link> tasks.</para>

<sect2>
<sect2 xml:id="conditions.not">
<title><literal>not</literal></title>
<para> The <code>&lt;not></code> element expects exactly one other condition to be
nested into this element, negating the result of the condition. It doesn't have any
attributes and accepts all nested elements of the condition task as nested elements
as well.</para>

</sect2>
<sect2>
<sect2 xml:id="conditions.and">
<title><literal>and</literal></title>
<para> The <code>&lt;and></code> element doesn't have any attributes and accepts an
arbitrary number of conditions as nested elements. This condition is true if all of
Expand All @@ -383,7 +384,7 @@
one of the nested conditions is false, no other condition will be evaluated.</para>

</sect2>
<sect2>
<sect2 xml:id="conditions.or">
<title><literal>or</literal></title>
<para> The <code>&lt;or></code> element doesn't have any attributes and accepts an
arbitrary number of conditions as nested elements. This condition is true if at
Expand All @@ -395,7 +396,7 @@
the nested conditions is true, no other condition will be evaluated.</para>

</sect2>
<sect2>
<sect2 xml:id="conditions.os">
<title><literal>os</literal></title>
<para>Test whether the current operating system is of a given type.</para>

Expand Down Expand Up @@ -435,7 +436,7 @@
</itemizedlist>

</sect2>
<sect2>
<sect2 xml:id="conditions.equals">
<title><literal>equals</literal></title>
<para>Tests whether the two given Strings are identical</para>
<table>
Expand Down Expand Up @@ -478,7 +479,7 @@
</table>

</sect2>
<sect2>
<sect2 xml:id="conditions.isset">
<title><literal>isset</literal></title>
<para>Test whether a given property has been set in this project.</para>
<table>
Expand All @@ -505,7 +506,7 @@
</table>

</sect2>
<sect2>
<sect2 xml:id="conditions.contains">
<title><literal>contains</literal></title>
<para>Tests whether a string contains another one.</para>
<table>
Expand Down Expand Up @@ -542,7 +543,7 @@
</table>

</sect2>
<sect2>
<sect2 xml:id="conditions.istrue">
<title><literal>istrue</literal></title>
<para>Tests whether a string evaluates to true.</para>

Expand Down Expand Up @@ -572,7 +573,7 @@
&lt;istrue value=&quot;false&quot;/&gt;</programlisting>

</sect2>
<sect2>
<sect2 xml:id="conditions.isfalse">
<title><literal>isfalse</literal></title>
<para>Tests whether a string evaluates to not true, the negation of
<literal>&lt;istrue></literal></para>
Expand Down Expand Up @@ -602,7 +603,7 @@
&lt;isfalse value="false"/></programlisting>

</sect2>
<sect2>
<sect2 xml:id="conditions.referenceexists">
<title><literal>referenceexists</literal></title>
<para>Tests whether a specified reference exists.</para>
<table>
Expand Down Expand Up @@ -630,9 +631,9 @@
<programlisting language="xml">&lt;referenceexists ref="${someid}"/></programlisting>

</sect2>
<sect2>
<sect2 xml:id="conditions.available">
<title><literal>available</literal></title>
<para>This condition is identical to the <link xlink:href="#AvailableTask"
<para>This condition is identical to the <link linkend="AvailableTask"
>Available</link> task, all attributes and nested elements of that task are
supported, the property and value attributes are redundant and will be
ignored.</para>
Expand Down

0 comments on commit fb9eb64

Please sign in to comment.