PR: 12193 and 12195 Submitted by: Larry Shatzer git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273287 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -57,9 +57,9 @@ classpath.</p> | |||||
| <pre> | <pre> | ||||
| <condition property="isMacOsButNotMacOsX"> | <condition property="isMacOsButNotMacOsX"> | ||||
| <and> | <and> | ||||
| <os family="mac" /> | |||||
| <os family="mac" /> | |||||
| <not> | <not> | ||||
| <os family="unix" /> | |||||
| <os family="unix" /> | |||||
| </not> | </not> | ||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| @@ -70,14 +70,14 @@ in the Unix family as well.</p> | |||||
| <pre> | <pre> | ||||
| <condition property="isSunOSonSparc"> | <condition property="isSunOSonSparc"> | ||||
| <os name="SunOS" arch="sparc" /> | |||||
| <os name="SunOS" arch="sparc" /> | |||||
| </condition> | </condition> | ||||
| </pre> | </pre> | ||||
| <p>sets the property <code>isSunOSonSparc</code> if the current | <p>sets the property <code>isSunOSonSparc</code> if the current | ||||
| operating system is SunOS and if it is running on a sparc architecture.</p> | operating system is SunOS and if it is running on a sparc architecture.</p> | ||||
| <hr> | <hr> | ||||
| <p align="center">Copyright © 2001 Apache Software | |||||
| <p align="center">Copyright © 2001-2002 Apache Software | |||||
| Foundation. All rights Reserved.</p> | Foundation. All rights Reserved.</p> | ||||
| </body> | </body> | ||||
| @@ -116,7 +116,7 @@ them.</p> | |||||
| <replace dir="${src}" value="wombat"> | <replace dir="${src}" value="wombat"> | ||||
| <include name="**/*.html"/> | <include name="**/*.html"/> | ||||
| <replacetoken><![CDATA[multi line | <replacetoken><![CDATA[multi line | ||||
| token]]></replacetoken> | |||||
| token]]></replacetoken> | |||||
| </replace> | </replace> | ||||
| </pre></blockquote> | </pre></blockquote> | ||||
| <p>replaces occurrences of the string "multi | <p>replaces occurrences of the string "multi | ||||
| @@ -126,9 +126,9 @@ the platform specific line separator.</p> | |||||
| <blockquote><pre> | <blockquote><pre> | ||||
| <replace file="${src}/index.html"> | <replace file="${src}/index.html"> | ||||
| <replacetoken><![CDATA[two line | <replacetoken><![CDATA[two line | ||||
| token]]></replacetoken> | |||||
| token]]></replacetoken> | |||||
| <replacevalue><![CDATA[two line | <replacevalue><![CDATA[two line | ||||
| token]]></replacevalue> | |||||
| token]]></replacevalue> | |||||
| </replace> | </replace> | ||||
| </pre></blockquote> | </pre></blockquote> | ||||
| <h4>replacefilter</h4> | <h4>replacefilter</h4> | ||||
| @@ -13,7 +13,7 @@ say you wanted to copy just those lines that contained the | |||||
| string blee from the first 10 lines of a file 'foo' | string blee from the first 10 lines of a file 'foo' | ||||
| to a file 'bar' - you would do something like<P> | to a file 'bar' - you would do something like<P> | ||||
| <code> | <code> | ||||
| cat foo|head -n10|grep blee > bar | |||||
| cat foo|head -n10|grep blee > bar | |||||
| </code><P> | </code><P> | ||||
| Ant was not flexible enough. There was no way for the | Ant was not flexible enough. There was no way for the | ||||
| <copy> task to do something similar. If you wanted | <copy> task to do something similar. If you wanted | ||||
| @@ -21,14 +21,14 @@ href="ftp://jext.sourceforge.net/pub/jext/plugins/AntWork.zip">ftp://jext.source | |||||
| <h2>Installation instructions from the Readme.txt:</h2> | <h2>Installation instructions from the Readme.txt:</h2> | ||||
| <p>You have to enable the Jext Console to see the Ant output (menu: | <p>You have to enable the Jext Console to see the Ant output (menu: | ||||
| Edit->Options... - General Panel), because the Ant messages are | |||||
| Edit->Options... - General Panel), because the Ant messages are | |||||
| redirected to the Jext console.</p> | redirected to the Jext console.</p> | ||||
| <p>You can configure the Ant call in the Jext menu: Edit->Options... - | |||||
| <p>You can configure the Ant call in the Jext menu: Edit->Options... - | |||||
| Plugin Options - Antwork Plugin Panel; here you can set the ant home | Plugin Options - Antwork Plugin Panel; here you can set the ant home | ||||
| directory and the path to your build file.</p> | directory and the path to your build file.</p> | ||||
| <p>You can start AntWork in the menu: Plugins->Ant->Work Now! In the | |||||
| <p>You can start AntWork in the menu: Plugins->Ant->Work Now! In the | |||||
| appearing dialog box you can enter the target which you want to | appearing dialog box you can enter the target which you want to | ||||
| compile.</p> | compile.</p> | ||||
| @@ -37,6 +37,6 @@ Jext. With a double-click on the error-message you jump to the error | |||||
| in the specified java text file.</p> | in the specified java text file.</p> | ||||
| <hr> | <hr> | ||||
| <p align="center">Copyright © 2001 Apache Software Foundation. All rights | |||||
| <p align="center">Copyright © 2001-2002 Apache Software Foundation. All rights | |||||
| Reserved.</p> | Reserved.</p> | ||||
| </body></html> | </body></html> | ||||
| @@ -295,19 +295,19 @@ 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}" /> | |||||
| <iplanet-ejbc ejbdescriptor="ejb-jar.xml" | <iplanet-ejbc ejbdescriptor="ejb-jar.xml" | ||||
| iasdescriptor="ias-ejb-jar.xml" | iasdescriptor="ias-ejb-jar.xml" | ||||
| dest="${build.classesdir}" | dest="${build.classesdir}" | ||||
| keepgenerated="yes" | keepgenerated="yes" | ||||
| debug="yes" | debug="yes" | ||||
| iashome="${ias.home}" > | |||||
| <classpath> | |||||
| <pathelement path="." /> | |||||
| <pathelement path="${build.classpath}" /> | |||||
| </classpath> | |||||
| </iplanet-ejbc> | |||||
| iashome="${ias.home}" > | |||||
| <classpath> | |||||
| <pathelement path="." /> | |||||
| <pathelement path="${build.classpath}" /> | |||||
| </classpath> | |||||
| </iplanet-ejbc> | |||||
| </pre> | </pre> | ||||
| @@ -1368,7 +1368,7 @@ in the descriptor dir:</p> | |||||
| <h3><a name="ejbjar_iplanet">iPlanet Application Server (iAS) element</a></h3> | <h3><a name="ejbjar_iplanet">iPlanet Application Server (iAS) element</a></h3> | ||||
| The <iplanet> nested element is used to build iAS-specific stubs and | |||||
| The <iplanet> nested element is used to build iAS-specific stubs and | |||||
| skeletons and construct a JAR file which may be deployed to the iPlanet | skeletons and construct a JAR file which may be deployed to the iPlanet | ||||
| Application Server 6.0. The build process will always determine if | Application Server 6.0. The build process will always determine if | ||||
| the EJB stubs/skeletons and the EJB-JAR file are up to date, and it will | the EJB stubs/skeletons and the EJB-JAR file are up to date, and it will | ||||
| @@ -1462,65 +1462,65 @@ If omitted, it defaults to ".jar". </td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <p>As noted above, the iplanet element supports additional <classpath> | |||||
| <p>As noted above, the iplanet element supports additional <classpath> | |||||
| nested elements.</p> | nested elements.</p> | ||||
| <h3> | <h3> | ||||
| Examples</h3> | Examples</h3> | ||||
| This example demonstrates the typical use of the <iplanet> nested element. | |||||
| This example demonstrates the typical use of the <iplanet> nested element. | |||||
| 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}" | ||||
| classpath="${ias.ejbc.cpath}" /> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| </ejbjar></pre> | |||||
| classpath="${ias.ejbc.cpath}" /> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| </ejbjar></pre> | |||||
| 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}" | ||||
| iashome="${ias.home}" | iashome="${ias.home}" | ||||
| debug="yes" | debug="yes" | ||||
| keepgenerated="yes" > | |||||
| <classpath> | |||||
| <pathelement path="." /> | |||||
| <pathelement path="${build.classpath}" /> | |||||
| </classpath> | |||||
| </iplanet> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| </ejbjar></pre> | |||||
| keepgenerated="yes" > | |||||
| <classpath> | |||||
| <pathelement path="." /> | |||||
| <pathelement path="${build.classpath}" /> | |||||
| </classpath> | |||||
| </iplanet> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| </ejbjar></pre> | |||||
| This example demonstrates the use of basejarname attribute. In this | 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" > | |||||
| <iplanet destdir="${assemble.ejbjar}" | <iplanet destdir="${assemble.ejbjar}" | ||||
| classpath="${ias.ejbc.cpath}"/> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| </ejbjar></pre> | |||||
| classpath="${ias.ejbc.cpath}"/> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| </ejbjar></pre> | |||||
| This example demonstrates the use of the dtd nested element. If the local | This example demonstrates the use of the dtd nested element. If the local | ||||
| copies of the DTDs are included in the classpath, they will be automatically | 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}"> | |||||
| <iplanet destdir="${assemble.ejbjar}"> | |||||
| classpath="${ias.ejbc.cpath}" /> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| descriptordir="${src}"> | |||||
| <iplanet destdir="${assemble.ejbjar}"> | |||||
| classpath="${ias.ejbc.cpath}" /> | |||||
| <include name="**/*-ejb-jar.xml"/> | |||||
| <exclude name="**/*ias-*.xml"/> | |||||
| <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" | <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" | ||||
| location="${ias.home}/APPS/ejb-jar_1_1.dtd"/> | |||||
| location="${ias.home}/APPS/ejb-jar_1_1.dtd"/> | |||||
| <dtd publicId="-//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans 1.0//EN" | <dtd publicId="-//Sun Microsystems, Inc.//DTD iAS Enterprise JavaBeans 1.0//EN" | ||||
| location="${ias.home}/APPS/IASEjb_jar_1_0.dtd"/> | |||||
| </ejbjar></pre> | |||||
| location="${ias.home}/APPS/IASEjb_jar_1_0.dtd"/> | |||||
| </ejbjar></pre> | |||||
| <h3><a name="ejbjar_jonas">JOnAS (Java Open Application Server) element</a></h3> | <h3><a name="ejbjar_jonas">JOnAS (Java Open Application Server) element</a></h3> | ||||
| @@ -88,11 +88,11 @@ that represent <a href="../using.html#path">PATH like structures</a>.</p> | |||||
| <blockquote> | <blockquote> | ||||
| <pre> | <pre> | ||||
| <jdepend classpathref="base.path"> | |||||
| <sourcespath> | |||||
| <pathelement location="src" /> | |||||
| </sourcespath> | |||||
| </jdepend> | |||||
| <jdepend classpathref="base.path"> | |||||
| <sourcespath> | |||||
| <pathelement location="src" /> | |||||
| </sourcespath> | |||||
| </jdepend> | |||||
| </pre> | </pre> | ||||
| </blockquote> | </blockquote> | ||||
| @@ -101,15 +101,15 @@ The classpath is defined using a classpath reference. | |||||
| <blockquote> | <blockquote> | ||||
| <pre> | <pre> | ||||
| <jdepend outputfile="docs/jdepend.xml" fork="yes" format="xml"> | |||||
| <sourcespath> | |||||
| <pathelement location="src" /> | |||||
| </sourcespath> | |||||
| <classpath> | |||||
| <pathelement location="classes" /> | |||||
| <pathelement location="lib/jdepend.jar" /> | |||||
| </classpath> | |||||
| </jdepend> | |||||
| <jdepend outputfile="docs/jdepend.xml" fork="yes" format="xml"> | |||||
| <sourcespath> | |||||
| <pathelement location="src" /> | |||||
| </sourcespath> | |||||
| <classpath> | |||||
| <pathelement location="classes" /> | |||||
| <pathelement location="lib/jdepend.jar" /> | |||||
| </classpath> | |||||
| </jdepend> | |||||
| </pre> | </pre> | ||||
| </blockquote> | </blockquote> | ||||
| @@ -166,14 +166,14 @@ Example</h3> | |||||
| outputdirectory="build/src" | outputdirectory="build/src" | ||||
| javacchome="c:/program files/JavaCC" | javacchome="c:/program files/JavaCC" | ||||
| nodeusesparser="true" | nodeusesparser="true" | ||||
| /></pre> | |||||
| /></pre> | |||||
| </blockquote> | </blockquote> | ||||
| This invokes JJTree on grammar file src/Parser.jjt, writing the generated | This invokes JJTree on grammar file src/Parser.jjt, writing the generated | ||||
| grammar file, Parser.jj, file to build/src. The grammar option NODE_USES_PARSER | grammar file, Parser.jj, file to build/src. The grammar option NODE_USES_PARSER | ||||
| is set to true when invoking JJTree. | is set to true when invoking JJTree. | ||||
| <br> | <br> | ||||
| <hr> | <hr> | ||||
| <p align="center">Copyright © 2001 Apache Software Foundation. All rights | |||||
| <p align="center">Copyright © 2001-2002 Apache Software Foundation. All rights | |||||
| Reserved.</p> | Reserved.</p> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -288,7 +288,7 @@ task. | |||||
| <pre> | <pre> | ||||
| <serverdeploy action="deploy" source="${lib.dir}/ejb_myApp.jar"> | <serverdeploy action="deploy" source="${lib.dir}/ejb_myApp.jar"> | ||||
| <jonas server="MyJOnAS" jonasroot="${jonas.root}" > | |||||
| <jonas server="MyJOnAS" jonasroot="${jonas.root}" > | |||||
| <classpath> | <classpath> | ||||
| <pathelement path="${jonas.root}/lib/RMI_jonas.jar" /> | <pathelement path="${jonas.root}/lib/RMI_jonas.jar" /> | ||||
| <pathelement path="${jonas.root}/config/" /> | <pathelement path="${jonas.root}/config/" /> | ||||
| @@ -85,7 +85,7 @@ more than once. | |||||
| <blockquote> | <blockquote> | ||||
| <pre> | <pre> | ||||
| <target name="fun" if="fun" unless="fun.done"> | <target name="fun" if="fun" unless="fun.done"> | ||||
| <sound> | |||||
| <sound> | |||||
| <success source="//intranet/sounds/success"/> | <success source="//intranet/sounds/success"/> | ||||
| <fail source="//intranet/sounds/failure"/> | <fail source="//intranet/sounds/failure"/> | ||||
| </sound> | </sound> | ||||
| @@ -90,7 +90,7 @@ proxy attributes. | |||||
| <blockquote><pre> | <blockquote><pre> | ||||
| <splash imageurl="http://jakarta.apache.org/images/jakarta-logo.gif" | <splash imageurl="http://jakarta.apache.org/images/jakarta-logo.gif" | ||||
| useproxy="true" | useproxy="true" | ||||
| showduration="5000"/> | |||||
| showduration="5000"/> | |||||
| </pre></blockquote> | </pre></blockquote> | ||||
| <p>Splashes the jakarta logo, for | <p>Splashes the jakarta logo, for | ||||
| @@ -57,15 +57,15 @@ It follows the weblogic naming convention of putting classes in<br> | |||||
| Example<br> | Example<br> | ||||
| </h3> | </h3> | ||||
| <p> | <p> | ||||
| <target name="jspcompile" depends="compile"><br> | |||||
| <wljspc src="c:\\weblogic\\myserver\\public_html" dest="c:\\weblogic\\myserver\\serverclasses" package="myapp.jsp" ><br> | |||||
| <target name="jspcompile" depends="compile"><br> | |||||
| <wljspc src="c:\\weblogic\\myserver\\public_html" dest="c:\\weblogic\\myserver\\serverclasses" package="myapp.jsp" ><br> | |||||
| <classpath><br> | <classpath><br> | ||||
| <pathelement location="${weblogic.classpath}" /><br> | |||||
| <pathelement path="${compile.dest}" /><br> | |||||
| <pathelement location="${weblogic.classpath}" /><br> | |||||
| <pathelement path="${compile.dest}" /><br> | |||||
| </classpath><br> | </classpath><br> | ||||
| <br> | <br> | ||||
| </wljspc><br> | </wljspc><br> | ||||
| </target> | |||||
| </target> | |||||
| </p> | </p> | ||||
| <h3>Limitations</h3> | <h3>Limitations</h3> | ||||
| @@ -76,7 +76,7 @@ Example<br> | |||||
| many files at one go, it is called multiple times with one jsp file each.</li> | many files at one go, it is called multiple times with one jsp file each.</li> | ||||
| </ul> | </ul> | ||||
| <hr> | <hr> | ||||
| <p align="center">Copyright © 2001 Apache Software Foundation. All rights | |||||
| <p align="center">Copyright © 2001-2002 Apache Software Foundation. All rights | |||||
| Reserved.</p> | Reserved.</p> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -213,33 +213,33 @@ the java command appropriately.</p> | |||||
| AnsiColorLogger.*=Attribute;Foreground;Background | AnsiColorLogger.*=Attribute;Foreground;Background | ||||
| Attribute is one of the following: | Attribute is one of the following: | ||||
| 0 -> Reset All Attributes (return to normal mode) | |||||
| 1 -> Bright (Usually turns on BOLD) | |||||
| 2 -> Dim | |||||
| 3 -> Underline | |||||
| 5 -> link | |||||
| 7 -> Reverse | |||||
| 8 -> Hidden | |||||
| 0 -> Reset All Attributes (return to normal mode) | |||||
| 1 -> Bright (Usually turns on BOLD) | |||||
| 2 -> Dim | |||||
| 3 -> Underline | |||||
| 5 -> link | |||||
| 7 -> Reverse | |||||
| 8 -> Hidden | |||||
| Foreground is one of the following: | Foreground is one of the following: | ||||
| 30 -> Black | |||||
| 31 -> Red | |||||
| 32 -> Green | |||||
| 33 -> Yellow | |||||
| 34 -> Blue | |||||
| 35 -> Magenta | |||||
| 36 -> Cyan | |||||
| 37 -> White | |||||
| 30 -> Black | |||||
| 31 -> Red | |||||
| 32 -> Green | |||||
| 33 -> Yellow | |||||
| 34 -> Blue | |||||
| 35 -> Magenta | |||||
| 36 -> Cyan | |||||
| 37 -> White | |||||
| Background is one of the following: | Background is one of the following: | ||||
| 40 -> Black | |||||
| 41 -> Red | |||||
| 42 -> Green | |||||
| 43 -> Yellow | |||||
| 44 -> Blue | |||||
| 45 -> Magenta | |||||
| 46 -> Cyan | |||||
| 47 -> White</pre> | |||||
| 40 -> Black | |||||
| 41 -> Red | |||||
| 42 -> Green | |||||
| 43 -> Yellow | |||||
| 44 -> Blue | |||||
| 45 -> Magenta | |||||
| 46 -> Cyan | |||||
| 47 -> White</pre> | |||||
| <blockquote> | <blockquote> | ||||
| @@ -94,7 +94,7 @@ Options: | |||||
| -buildfile <file> use given buildfile | -buildfile <file> use given buildfile | ||||
| -file <file> '' | -file <file> '' | ||||
| -f <file> '' | -f <file> '' | ||||
| -D<property>=<value> use value for given property | |||||
| -D<property>=<value> use value for given property | |||||
| -propertyfile <name> load all properties from file with -D | -propertyfile <name> load all properties from file with -D | ||||
| properties taking precedence | properties taking precedence | ||||
| -inputhandler <class> the class which will handle input requests | -inputhandler <class> the class which will handle input requests | ||||