git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277892 13f79535-47bb-0310-9956-ffa450edef68master
@@ -72,8 +72,8 @@ nested <code><fileset></code>, <code><dirset></code> and | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<h3>Examples</h3> | <h3>Examples</h3> | ||||
<blockquote> | |||||
<p><code><attrib file="${dist}/run.bat" readonly="true" hidden="true"/></code></p> | |||||
<blockquote> | |||||
<pre><attrib file="${dist}/run.bat" readonly="true" hidden="true"/></pre> | |||||
</blockquote> | </blockquote> | ||||
<p>makes the "run.bat" file read-only and hidden.</p> | <p>makes the "run.bat" file read-only and hidden.</p> | ||||
<blockquote> | <blockquote> | ||||
@@ -77,8 +77,9 @@ nested <code><fileset></code>, <code><dirset></code> and | |||||
</table> | </table> | ||||
<h3>Examples</h3> | <h3>Examples</h3> | ||||
<blockquote> | |||||
<p><code><chgrp file="${dist}/start.sh" group="coders"/></code></p> | |||||
<blockquote><pre> | |||||
<chgrp file="${dist}/start.sh" group="coders"/> | |||||
</pre> | |||||
</blockquote> | </blockquote> | ||||
<p>makes the "start.sh" file belong to the coders group on a | <p>makes the "start.sh" file belong to the coders group on a | ||||
UNIX system.</p> | UNIX system.</p> | ||||
@@ -77,27 +77,28 @@ nested <code><fileset></code>, <code><dirset></code> and | |||||
</table> | </table> | ||||
<h3>Examples</h3> | <h3>Examples</h3> | ||||
<blockquote> | |||||
<p><code><chown file="${dist}/start.sh" owner="coderjoe"/></code></p> | |||||
<blockquote><pre> | |||||
<chown file="${dist}/start.sh" owner="coderjoe"/> | |||||
</pre> | |||||
</blockquote> | </blockquote> | ||||
<p>makes the "start.sh" file belong to coderjoe on a | |||||
<p>makes the "start.sh" file belong to coderjoe on a | |||||
UNIX system.</p> | UNIX system.</p> | ||||
<blockquote> | <blockquote> | ||||
<pre> | <pre> | ||||
<chown owner="coderjoe"> | |||||
<fileset dir="${dist}/bin" includes="**/*.sh"/> | |||||
<chown owner="coderjoe"> | |||||
<fileset dir="${dist}/bin" includes="**/*.sh"/> | |||||
</chown> | </chown> | ||||
</pre> | </pre> | ||||
</blockquote> | </blockquote> | ||||
<p>makes all ".sh" files below <code>${dist}/bin</code> | |||||
<p>makes all ".sh" files below <code>${dist}/bin</code> | |||||
belong to coderjoe on a UNIX system.</p> | belong to coderjoe on a UNIX system.</p> | ||||
<blockquote> | <blockquote> | ||||
<pre> | <pre> | ||||
<chown owner="coderjoe"> | |||||
<fileset dir="shared/sources1"> | |||||
<exclude name="**/trial/**"/> | |||||
<chown owner="coderjoe"> | |||||
<fileset dir="shared/sources1"> | |||||
<exclude name="**/trial/**"/> | |||||
</fileset> | </fileset> | ||||
<fileset refid="other.shared.sources"/> | |||||
<fileset refid="other.shared.sources"/> | |||||
</chown> | </chown> | ||||
</pre> | </pre> | ||||
</blockquote> | </blockquote> | ||||
@@ -109,13 +110,13 @@ owner.</p> | |||||
<blockquote> | <blockquote> | ||||
<pre> | <pre> | ||||
<chown owner="webadmin" type="file"> | |||||
<fileset dir="/web"> | |||||
<include name="**/*.cgi"/> | |||||
<include name="**/*.old"/> | |||||
<chown owner="webadmin" type="file"> | |||||
<fileset dir="/web"> | |||||
<include name="**/*.cgi"/> | |||||
<include name="**/*.old"/> | |||||
</fileset> | </fileset> | ||||
<dirset dir="/web"> | |||||
<include name="**/private_*"/> | |||||
<dirset dir="/web"> | |||||
<include name="**/private_*"/> | |||||
</dirset> | </dirset> | ||||
</chmod> | </chmod> | ||||
</pre> | </pre> | ||||
@@ -64,6 +64,10 @@ can, however, be done if absolutely necessary. | |||||
<h3>Task List</h3> | <h3>Task List</h3> | ||||
<table border="0" > | <table border="0" > | ||||
<tr> | |||||
<td><b>Task</b></td> | |||||
<td><b>Description</b></td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td><a href="csc.html">Csc</a></td> | <td><a href="csc.html">Csc</a></td> | ||||
<td>Compiles C# code</td> | <td>Compiles C# code</td> | ||||
@@ -107,7 +107,8 @@ is based on the standard Ant include and exclude selection mechanisms. | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<h3>Examples</h3> | <h3>Examples</h3> | ||||
<pre><ddcreator descriptors="${dd.dir}" | |||||
<pre> | |||||
<ddcreator descriptors="${dd.dir}" | |||||
dest="${gen.classes}" | dest="${gen.classes}" | ||||
classpath="${descriptorbuild.classpath}"> | classpath="${descriptorbuild.classpath}"> | ||||
<include name="*.txt"/> | <include name="*.txt"/> | ||||
@@ -177,7 +178,8 @@ or are out of date, the ejbc tool is run to generate new versions.</p> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<h3>Examples</h3> | <h3>Examples</h3> | ||||
<pre><ejbc descriptors="${gen.classes}" | |||||
<pre> | |||||
<ejbc descriptors="${gen.classes}" | |||||
src="${src.dir}" | src="${src.dir}" | ||||
dest="${gen.classes}" | dest="${gen.classes}" | ||||
manifest="${build.manifest}" | manifest="${build.manifest}" | ||||
@@ -291,7 +293,8 @@ directory. If omitted, the ejbc utility must be on the user's system path. </td> | |||||
<h3> | <h3> | ||||
Examples</h3> | Examples</h3> | ||||
<pre><iplanet-ejbc ejbdescriptor="ejb-jar.xml" | |||||
<pre> | |||||
<iplanet-ejbc ejbdescriptor="ejb-jar.xml" | |||||
iasdescriptor="ias-ejb-jar.xml" | iasdescriptor="ias-ejb-jar.xml" | ||||
dest="${build.classesdir}" | dest="${build.classesdir}" | ||||
classpath="${ias.ejbc.cpath}"/> | classpath="${ias.ejbc.cpath}"/> | ||||
@@ -1361,8 +1364,8 @@ the classpath of the ejbdeploy tool and set the <i>websphere.home</i> property ( | |||||
in the descriptor dir:</p> | in the descriptor dir:</p> | ||||
<pre> | <pre> | ||||
<property name="webpshere.home" value="${was4.home}"/> | |||||
<ejbjar srcdir="${build.class}" descriptordir="etc/ejb"> | |||||
<property name="webpshere.home" value="${was4.home}"/> | |||||
<ejbjar srcdir="${build.class}" descriptordir="etc/ejb"> | |||||
<include name="*-ejb-jar.xml"/> | <include name="*-ejb-jar.xml"/> | ||||
<websphere dbvendor="DB2UDBOS390_V6" | <websphere dbvendor="DB2UDBOS390_V6" | ||||
ejbdeploy="true" | ejbdeploy="true" | ||||
@@ -1377,9 +1380,9 @@ in the descriptor dir:</p> | |||||
<pathelement location="${was4.home}/lib/j2ee.jar"/> | <pathelement location="${was4.home}/lib/j2ee.jar"/> | ||||
<pathelement location="${was4.home}/lib/vaprt.jar"/> | <pathelement location="${was4.home}/lib/vaprt.jar"/> | ||||
</wasclasspath> | </wasclasspath> | ||||
<classpath> | |||||
<path refid="build.classpath"/> | |||||
</classpath> | |||||
<classpath> | |||||
<path refid="build.classpath"/> | |||||
</classpath> | |||||
</websphere> | </websphere> | ||||
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" | <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" | ||||
location="${lib}/dtd/ejb-jar_1_1.dtd"/> | location="${lib}/dtd/ejb-jar_1_1.dtd"/> | ||||
@@ -1491,7 +1494,8 @@ This example demonstrates the typical use of the <code><iplanet></code> ne | |||||
It will name each EJB-JAR using the "basename" prepended to each standard | It will name each EJB-JAR using the "basename" prepended to each standard | ||||
EJB descriptor. For example, if the descriptor named "Account-ejb-jar.xml" | EJB descriptor. For example, if the descriptor named "Account-ejb-jar.xml" | ||||
is processed, the EJB-JAR will be named "Account.jar" | is processed, the EJB-JAR will be named "Account.jar" | ||||
<pre> <ejbjar srcdir="${build.classesdir}" | |||||
<pre> | |||||
<ejbjar srcdir="${build.classesdir}" | |||||
descriptordir="${src}"> | descriptordir="${src}"> | ||||
<iplanet destdir="${assemble.ejbjar}" | <iplanet destdir="${assemble.ejbjar}" | ||||
@@ -1502,7 +1506,8 @@ is processed, the EJB-JAR will be named "Account.jar" | |||||
This example demonstrates the use of a nested classpath element as well | This example demonstrates the use of a nested classpath element as well | ||||
as some of the other optional attributes. | as some of the other optional attributes. | ||||
<pre> <ejbjar srcdir="${build.classesdir}" | |||||
<pre> | |||||
<ejbjar srcdir="${build.classesdir}" | |||||
descriptordir="${src}"> | descriptordir="${src}"> | ||||
<iplanet destdir="${assemble.ejbjar}" | <iplanet destdir="${assemble.ejbjar}" | ||||
@@ -1522,7 +1527,8 @@ This example demonstrates the use of basejarname attribute. In this | |||||
case, the completed EJB-JAR will be named "HelloWorld.jar" If multiple | case, the completed EJB-JAR will be named "HelloWorld.jar" If multiple | ||||
EJB descriptors might be found, care must be taken to ensure that the completed | EJB descriptors might be found, care must be taken to ensure that the completed | ||||
JAR files don't overwrite each other. | JAR files don't overwrite each other. | ||||
<pre> <ejbjar srcdir="${build.classesdir}" | |||||
<pre> | |||||
<ejbjar srcdir="${build.classesdir}" | |||||
descriptordir="${src}" | descriptordir="${src}" | ||||
basejarname="HelloWorld"> | basejarname="HelloWorld"> | ||||
@@ -1536,7 +1542,8 @@ copies of the DTDs are included in the classpath, they will be automatically | |||||
referenced without the nested elements. In iAS 6.0 SP2, these local DTDs are | referenced without the nested elements. In iAS 6.0 SP2, these local DTDs are | ||||
found in the [iAS-install-directory]/APPS directory. In iAS 6.0 SP3, these | found in the [iAS-install-directory]/APPS directory. In iAS 6.0 SP3, these | ||||
local DTDs are found in the [iAS-install-directory]/dtd directory. | local DTDs are found in the [iAS-install-directory]/dtd directory. | ||||
<pre> <ejbjar srcdir="${build.classesdir}" | |||||
<pre> | |||||
<ejbjar srcdir="${build.classesdir}" | |||||
descriptordir="${src}"> | descriptordir="${src}"> | ||||
<iplanet destdir="${assemble.ejbjar}"> | <iplanet destdir="${assemble.ejbjar}"> | ||||
classpath="${ias.ejbc.cpath}"/> | classpath="${ias.ejbc.cpath}"/> | ||||
@@ -291,8 +291,7 @@ to the default directory for that user.</p> | |||||
remotedir="incoming" | remotedir="incoming" | ||||
userid="anonymous" | userid="anonymous" | ||||
password="me@myorg.com" | password="me@myorg.com" | ||||
depends="yes" | |||||
> | |||||
depends="yes"> | |||||
<fileset dir="htdocs/manual"/> | <fileset dir="htdocs/manual"/> | ||||
</ftp></pre> | </ftp></pre> | ||||
<p>Logs in to <code>ftp.apache.org</code> as <code>anonymous</code> and | <p>Logs in to <code>ftp.apache.org</code> as <code>anonymous</code> and | ||||
@@ -305,8 +304,7 @@ for <code>anonymous</code>.</p> | |||||
userid="coder" | userid="coder" | ||||
password="java1" | password="java1" | ||||
depends="yes" | depends="yes" | ||||
binary="no" | |||||
> | |||||
binary="no"> | |||||
<fileset dir="htdocs/manual"> | <fileset dir="htdocs/manual"> | ||||
<include name="**/*.html"/> | <include name="**/*.html"/> | ||||
</fileset> | </fileset> | ||||
@@ -320,13 +318,11 @@ changed HTML files in the <code>htdocs/manual</code> directory to the | |||||
userid="coder" | userid="coder" | ||||
password="java1" | password="java1" | ||||
separator="\" | separator="\" | ||||
verbose="yes"</pre> | |||||
<PRE> | |||||
> | |||||
verbose="yes"> | |||||
<fileset dir="htdocs/manual"> | <fileset dir="htdocs/manual"> | ||||
<include name="**/*.html"/> | <include name="**/*.html"/> | ||||
</fileset> | </fileset> | ||||
</ftp></PRE><p>Logs in to the Windows-based <code>ftp.nt.org</code> as | |||||
</ftp></pre><p>Logs in to the Windows-based <code>ftp.nt.org</code> as | |||||
<code>coder</code> with password <code>java1</code> and uploads all | <code>coder</code> with password <code>java1</code> and uploads all | ||||
HTML files in the <code>htdocs/manual</code> directory to the | HTML files in the <code>htdocs/manual</code> directory to the | ||||
<code>c:\uploads</code> directory. Progress messages are displayed as each | <code>c:\uploads</code> directory. Progress messages are displayed as each | ||||
@@ -153,8 +153,7 @@ Instruments Java classes with <a href="http://www.reliable-systems.com/tools/">i | |||||
controlfile="control" | controlfile="control" | ||||
targets="targets" | targets="targets" | ||||
verbosity="error*,warning*" | verbosity="error*,warning*" | ||||
quiet="true" | |||||
> | |||||
quiet="true"> | |||||
<classpath refid="compile-classpath"/> | <classpath refid="compile-classpath"/> | ||||
</icontract> | </icontract> | ||||
</pre> | </pre> | ||||
@@ -27,6 +27,10 @@ and is not intended as a replacement to the manual. | |||||
<h2>Tasks</h2> | <h2>Tasks</h2> | ||||
<table border="0" cellspacing="0" cellpadding="3"> | <table border="0" cellspacing="0" cellpadding="3"> | ||||
<tr> | |||||
<td><b>Task</b></td> | |||||
<td><b>Description</b></td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td><a href="#jpcoverage">JPCoverage</a></td> | <td><a href="#jpcoverage">JPCoverage</a></td> | ||||
<td>Measure coverage of Java code.</td> | <td>Measure coverage of Java code.</td> | ||||
@@ -249,7 +253,8 @@ with a <tt>name</tt> attribute. | |||||
<h3>Example of filters</h3> | <h3>Example of filters</h3> | ||||
<blockquote> | <blockquote> | ||||
<pre><filters> | |||||
<pre> | |||||
<filters> | |||||
<include class="com.mycompany.*" method="*"/> | <include class="com.mycompany.*" method="*"/> | ||||
<exclude class="com.mycompany.MyClass" method="test*"/> | <exclude class="com.mycompany.MyClass" method="test*"/> | ||||
</filters></pre> | </filters></pre> | ||||
@@ -485,13 +490,14 @@ with a <tt>class </tt>and <tt>method </tt>attribute. | |||||
<h3>Example of report</h3> | <h3>Example of report</h3> | ||||
<blockquote> | <blockquote> | ||||
<pre><jpcovreport home="c:\jprobe" snapshot="merge.jpc" format="xml" tofile="result.xml"> | |||||
<sourcepath path="./src"/> | |||||
<pre> | |||||
<jpcovreport home="c:\jprobe" snapshot="merge.jpc" format="xml" tofile="result.xml"> | |||||
<sourcepath path="./src"/> | |||||
<reference> | <reference> | ||||
<classpath path="./bin/classes"/> | |||||
<classpath path="./bin/classes"/> | |||||
<filters> | <filters> | ||||
<include class="com.mycompany.*"/> | |||||
<exclude class="com.mycompany.MyClass" method="test*"/> | |||||
<include class="com.mycompany.*"/> | |||||
<exclude class="com.mycompany.MyClass" method="test*"/> | |||||
</filters> | </filters> | ||||
</reference> | </reference> | ||||
</jpcovreport> | </jpcovreport> | ||||
@@ -510,7 +516,7 @@ say bin/classes and test/classes. You should mostly end up with a reference such | |||||
as:</p> | as:</p> | ||||
<blockquote> | <blockquote> | ||||
<pre><reference> | <pre><reference> | ||||
<classpath path="./bin/classes"/> | |||||
<classpath path="./bin/classes"/> | |||||
</reference></pre> | </reference></pre> | ||||
</blockquote> | </blockquote> | ||||
<p>With such a reference, your XML report will be cleaned up against parasite | <p>With such a reference, your XML report will be cleaned up against parasite | ||||
@@ -522,14 +528,14 @@ This file can be used to generate a framed report a la javadoc similar to the | |||||
one for JUnit. It needs either Xalan 1.2.2 or Xalan 2.x.</p> | one for JUnit. It needs either Xalan 1.2.2 or Xalan 2.x.</p> | ||||
<p>Xalan 1.2.2 (you must have xalan.jar and bsf.jar in your classpath) | <p>Xalan 1.2.2 (you must have xalan.jar and bsf.jar in your classpath) | ||||
</p> | </p> | ||||
<pre><style processor="xalan" in="./reports/xml/results.xml" out="./reports/html/dummy.file" | |||||
style="${ant.home}/etc/coverage-frames.xsl"> | |||||
<param name="output.dir" expression="'${basedir}/reports/html'"/> | |||||
<pre><style processor="xalan" in="./reports/xml/results.xml" out="./reports/html/dummy.file" | |||||
style="${ant.home}/etc/coverage-frames.xsl"> | |||||
<param name="output.dir" expression="'${basedir}/reports/html'"/> | |||||
</style></pre> | </style></pre> | ||||
<p>Xalan 2.x (note the parameter without single quote)</p> | <p>Xalan 2.x (note the parameter without single quote)</p> | ||||
<pre><style processor="trax" in="./reports/xml/results.xml" out="./reports/html/dummy.file" | |||||
style="${ant.home}/etc/coverage-frames.xsl"> | |||||
<param name="output.dir" expression="${basedir}/reports/html"/> | |||||
<pre><style processor="trax" in="./reports/xml/results.xml" out="./reports/html/dummy.file" | |||||
style="${ant.home}/etc/coverage-frames.xsl"> | |||||
<param name="output.dir" expression="${basedir}/reports/html"/> | |||||
</style></pre> | </style></pre> | ||||
<hr> | <hr> | ||||
@@ -240,7 +240,6 @@ When used, the task hands off all dependency checking to the compiler. | |||||
Build all jsp pages under src/war into the destination /gensrc, in a | Build all jsp pages under src/war into the destination /gensrc, in a | ||||
package hierarchy beginning with com.i3sp.jsp. | package hierarchy beginning with com.i3sp.jsp. | ||||
<pre> | <pre> | ||||
<jspc | <jspc | ||||
destdir="interim" | destdir="interim" | ||||
verbose="1" | verbose="1" | ||||
@@ -38,6 +38,10 @@ You will also need the Perforce client executable (p4 or p4.exe but not p4win.ex | |||||
<h2><a name="tasks">The Tasks</a></h2> | <h2><a name="tasks">The Tasks</a></h2> | ||||
<table border="0" cellspacing="0" cellpadding="3"> | <table border="0" cellspacing="0" cellpadding="3"> | ||||
<tr> | |||||
<td><b>Task</b></td> | |||||
<td><b>Description</b></td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td><a href="#p4sync">P4Sync</a></td> | <td><a href="#p4sync">P4Sync</a></td> | ||||
<td>Synchronise a workspace to a depot</td> | <td>Synchronise a workspace to a depot</td> | ||||