git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277853 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -381,12 +381,12 @@ expected.</P> | |||||
| </libraries> | </libraries> | ||||
| </pre> | </pre> | ||||
| <P>Load in versions from a file, then download the relevant archives. No | |||||
| <p>Load in versions from a file, then download the relevant archives. No | |||||
| update schedule is defined, but a path is created for insertion into a | update schedule is defined, but a path is created for insertion into a | ||||
| classpath. This property file driven dependency model is what we recommend | classpath. This property file driven dependency model is what we recommend | ||||
| over hard coding versions in a build file. | over hard coding versions in a build file. | ||||
| </P> | |||||
| <PRE> <libraries destDir="build/lib" offline="${offline}" flatten="true"> | |||||
| </p> | |||||
| <pre> <libraries destDir="build/lib" offline="${offline}" flatten="true"> | |||||
| <mavenrepository url="${private.server}"/> | <mavenrepository url="${private.server}"/> | ||||
| <library project="doomed" archive="dead-code" | <library project="doomed" archive="dead-code" | ||||
| suffix=".war" | suffix=".war" | ||||
| @@ -395,11 +395,13 @@ over hard coding versions in a build file. | |||||
| <scheduledupdate markerfile="build/lib/marker.properties" | <scheduledupdate markerfile="build/lib/marker.properties" | ||||
| hours="11" /> | hours="11" /> | ||||
| </libraries> | </libraries> | ||||
| </PRE> | |||||
| </pre> | |||||
| <P>Download doomed/dead-code.LATEST.war from a private repository, save it to | |||||
| <p>Download doomed/dead-code.LATEST.war from a private repository, save it to | |||||
| build/lib/product.war with an update schedule of every eleven hours. | build/lib/product.war with an update schedule of every eleven hours. | ||||
| </P> | |||||
| </p> | |||||
| <hr/> | |||||
| <p align="center">Copyright © 2005 The Apache Software Foundation. All rights | <p align="center">Copyright © 2005 The Apache Software Foundation. All rights | ||||
| Reserved.</p> | Reserved.</p> | ||||
| @@ -116,8 +116,8 @@ block</td> | |||||
| </table> | </table> | ||||
| <h3>Examples</h3> | <h3>Examples</h3> | ||||
| <blockquote> | <blockquote> | ||||
| <p><code><signjar jar="${dist}/lib/ant.jar" | |||||
| alias="apache-group" storepass="secret"/></code></p> | |||||
| <p><pre><signjar jar="${dist}/lib/ant.jar" | |||||
| alias="apache-group" storepass="secret"/></pre</p> | |||||
| </blockquote> | </blockquote> | ||||
| <p>signs the ant.jar with alias "apache-group" accessing the | <p>signs the ant.jar with alias "apache-group" accessing the | ||||
| keystore and private key via "secret" password.</p> | keystore and private key via "secret" password.</p> | ||||
| @@ -259,17 +259,17 @@ it had been located at <code>htdocs/manual/ChangeLog.txt</code>.</p> | |||||
| in the archive, adds the file <code>ChangeLog27.txt</code> in the | in the archive, adds the file <code>ChangeLog27.txt</code> in the | ||||
| current directory as <code>docs/ChangeLog.txt</code>, and includes all the html files in <code>examples.zip</code> | current directory as <code>docs/ChangeLog.txt</code>, and includes all the html files in <code>examples.zip</code> | ||||
| under <code>docs/examples</code>. The archive might end up containing the files:</p> | under <code>docs/examples</code>. The archive might end up containing the files:</p> | ||||
| <pre><code> docs/user-guide/html/index.html | |||||
| <pre> docs/user-guide/html/index.html | |||||
| docs/ChangeLog.txt | docs/ChangeLog.txt | ||||
| docs/examples/index.html | docs/examples/index.html | ||||
| </code></pre> | |||||
| </pre> | |||||
| <p> | <p> | ||||
| The code | The code | ||||
| <pre> | <pre> | ||||
| <zip destfile="${dist}/manual.zip"> | <zip destfile="${dist}/manual.zip"> | ||||
| <zipfileset dir="htdocs/manual" prefix="docs/user-guide"/> | <zipfileset dir="htdocs/manual" prefix="docs/user-guide"/> | ||||
| <zipgroupfileset dir="." includes="examples*.zip"/> | <zipgroupfileset dir="." includes="examples*.zip"/> | ||||
| </zip></pre> | |||||
| </zip> | |||||
| </pre> | </pre> | ||||
| <p> | <p> | ||||
| <p>zips all files in the <code>htdocs/manual</code> directory into the <code>docs/user-guide</code> directory in the archive and includes all the files in any file that maches <code>examples*.zip</code>, such as all files within <code>examples1.zip</code> or <code>examples_for_brian.zip</code>. | <p>zips all files in the <code>htdocs/manual</code> directory into the <code>docs/user-guide</code> directory in the archive and includes all the files in any file that maches <code>examples*.zip</code>, such as all files within <code>examples1.zip</code> or <code>examples_for_brian.zip</code>. | ||||