| @@ -1,5 +1,5 @@ | |||
| <?xml version="1.0"?> | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |||
| <xsl:output method="xml" indent="yes"/> | |||
| <!-- | |||
| Licensed to the Apache Software Foundation (ASF) under one or more | |||
| @@ -18,7 +18,7 @@ | |||
| limitations under the License. | |||
| --> | |||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | |||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | |||
| <xsl:template match="JDepend"> | |||
| <html> | |||
| @@ -257,11 +257,11 @@ h6 { | |||
| <h2>Tests</h2> | |||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | |||
| <xsl:call-template name="testcase.test.header"/> | |||
| <!-- | |||
| test can even not be started at all (failure to load the class) | |||
| so report the error directly | |||
| --> | |||
| <xsl:call-template name="testcase.test.header"/> | |||
| <!-- | |||
| test can even not be started at all (failure to load the class) | |||
| so report the error directly | |||
| --> | |||
| <xsl:if test="./error"> | |||
| <tr class="Error"> | |||
| <td colspan="4"><xsl:apply-templates select="./error"/></td> | |||
| @@ -295,17 +295,17 @@ h6 { | |||
| </html> | |||
| </xsl:template> | |||
| <!-- | |||
| <!-- | |||
| Write properties into a JavaScript data structure. | |||
| This is based on the original idea by Erik Hatcher (ehatcher@apache.org) | |||
| --> | |||
| <xsl:template match="properties"> | |||
| --> | |||
| <xsl:template match="properties"> | |||
| cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array(); | |||
| <xsl:for-each select="property"> | |||
| <xsl:sort select="@name"/> | |||
| cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>'; | |||
| </xsl:for-each> | |||
| </xsl:template> | |||
| </xsl:template> | |||
| <!-- ====================================================================== | |||
| @@ -667,8 +667,8 @@ h6 { | |||
| <td><xsl:apply-templates select="error"/></td> | |||
| </xsl:when> | |||
| <xsl:when test="skipped"> | |||
| <td>Skipped</td> | |||
| <td><xsl:apply-templates select="skipped"/></td> | |||
| <td>Skipped</td> | |||
| <td><xsl:apply-templates select="skipped"/></td> | |||
| </xsl:when> | |||
| <xsl:otherwise> | |||
| <td>Success</td> | |||
| @@ -405,8 +405,8 @@ | |||
| <td><xsl:apply-templates select="error"/></td> | |||
| </xsl:when> | |||
| <xsl:when test="skipped"> | |||
| <td>Skipped</td> | |||
| <td><xsl:apply-templates select="skipped"/></td> | |||
| <td>Skipped</td> | |||
| <td><xsl:apply-templates select="skipped"/></td> | |||
| </xsl:when> | |||
| <xsl:otherwise> | |||
| <td>Success</td> | |||
| @@ -94,9 +94,9 @@ | |||
| <copy tofile="${output}/replaceTokensPropertyFile.test"> | |||
| <fileset dir="input" includes="replacetokens.test"/> | |||
| <filterchain> | |||
| <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> | |||
| <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> | |||
| <param type="propertiesfile" value="${basedir}/input/sample.properties"/> | |||
| </filterreader> | |||
| </filterreader> | |||
| </filterchain> | |||
| </copy> | |||
| </target> | |||
| @@ -350,8 +350,8 @@ | |||
| hello world | |||
| </concat> | |||
| <replaceregexp file="${output}/replaceregexp" | |||
| match="hello( )world" | |||
| replace="bye\1world"/> | |||
| match="hello( )world" | |||
| replace="bye\1world"/> | |||
| </target> | |||
| </project> | |||
| @@ -20,7 +20,6 @@ | |||
| <import file="../buildfiletest-base.xml"/> | |||
| <property name="dir" location="${output}"/> | |||
| <basename property="dirname" file="${output}"/> | |||
| @@ -120,7 +119,7 @@ | |||
| <target name="test9" depends="init"> | |||
| <delete> | |||
| <files> | |||
| <include name="${dir}/**"/> | |||
| <include name="${dir}/**"/> | |||
| </files> | |||
| </delete> | |||
| <expectabsent/> | |||
| @@ -153,17 +152,17 @@ | |||
| </target> | |||
| <target name="test14" depends="init"> | |||
| <delete quiet="false"> | |||
| <fileset dir="${dir}"/> | |||
| <fileset dir="${dir}"/> | |||
| </delete> | |||
| <delete quiet="false"> | |||
| <fileset dir="${dir}"/> | |||
| <fileset dir="${dir}"/> | |||
| </delete> | |||
| </target> | |||
| <target name="test15" depends="init"> | |||
| <delete quiet="true"> | |||
| <fileset dir="${dir}"/> | |||
| <fileset dir="${dir}"/> | |||
| </delete> | |||
| <delete quiet="true"> | |||
| <fileset dir="${dir}"/> | |||
| <fileset dir="${dir}"/> | |||
| </delete> | |||
| </target> | |||
| <!-- Bugzilla 40313 --> | |||
| <target name="test16.init"> | |||
| @@ -189,6 +188,4 @@ | |||
| <expectabsent target="${dir}/subdir"/> | |||
| </target> | |||
| </project> | |||
| @@ -35,27 +35,23 @@ | |||
| </target> | |||
| <target name="test2"> | |||
| <jar | |||
| jarfile="jar.tmp" | |||
| manifest="none"/> | |||
| <jar jarfile="jar.tmp" | |||
| manifest="none"/> | |||
| </target> | |||
| <target name="test3"> | |||
| <jar | |||
| destfile="jar.tmp" | |||
| whenempty="format C: /y"/> | |||
| <jar destfile="jar.tmp" | |||
| whenempty="format C: /y"/> | |||
| </target> | |||
| <target name="test4"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="jar.xml"/> | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="jar.xml"/> | |||
| </target> | |||
| <target name="testNoRecreateWithUpdate"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="jar.xml" | |||
| update="true"/> | |||
| @@ -66,30 +62,26 @@ | |||
| </target> | |||
| <target name="testRecreateWithoutUpdateAdditionalFiles"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| includes="*.xml" | |||
| basedir="."/> | |||
| </target> | |||
| <target name="testRecreateWithUpdateAdditionalFiles"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="*.xml" | |||
| update="true"/> | |||
| </target> | |||
| <target name="testRecreateWithoutUpdateNewerFile"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="jar.xml"/> | |||
| </target> | |||
| <target name="testRecreateWithUpdateNewerFile"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="jar.xml" | |||
| update="true"/> | |||
| @@ -109,8 +101,7 @@ | |||
| </target> | |||
| <target name="testNoRecreateBasedirExcludesWithUpdate"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="j*.xml" | |||
| excludes="java.xml" | |||
| @@ -118,8 +109,7 @@ | |||
| </target> | |||
| <target name="testNoRecreateBasedirExcludesWithoutUpdate"> | |||
| <jar | |||
| destfile="${tmp.jar}" | |||
| <jar destfile="${tmp.jar}" | |||
| basedir="." | |||
| includes="j*.xml" | |||
| excludes="java.xml"/> | |||
| @@ -157,4 +157,4 @@ public class test1 { | |||
| <delete file="nocomments.tmp"/> | |||
| </target> | |||
| </project> | |||
| </project> | |||
| @@ -44,13 +44,13 @@ | |||
| </target> | |||
| <target name="test-fileset" depends="compile"> | |||
| <javah destdir="${output}"> | |||
| <fileset dir="${output}"> | |||
| <include name="**/*.class"/> | |||
| </fileset> | |||
| <classpath> | |||
| <pathelement location="${output}"/> | |||
| </classpath> | |||
| </javah> | |||
| <javah destdir="${output}"> | |||
| <fileset dir="${output}"> | |||
| <include name="**/*.class"/> | |||
| </fileset> | |||
| <classpath> | |||
| <pathelement location="${output}"/> | |||
| </classpath> | |||
| </javah> | |||
| </target> | |||
| </project> | |||
| @@ -25,25 +25,28 @@ | |||
| </target> | |||
| <target name="test2"> | |||
| <pvcs pvcsbin="/home/tc/projects/pvcsant/src/etc/testcases/taskdefs" repository="/mnt/pvcs"/> | |||
| <pvcs pvcsbin="/home/tc/projects/pvcsant/src/etc/testcases/taskdefs" | |||
| repository="/mnt/pvcs"/> | |||
| </target> | |||
| <target name="test3"> | |||
| <pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" repository="/mnt/pvcs" pvcsproject="/qviknet"/> | |||
| <pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" | |||
| repository="/mnt/pvcs" pvcsproject="/qviknet"/> | |||
| </target> | |||
| <target name="test4"> | |||
| <pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" repository="/mnt/pvcs" pvcsproject="/qviknet" workspace="/@/Public/buildws"/> | |||
| <pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" | |||
| repository="/mnt/pvcs" pvcsproject="/qviknet" workspace="/@/Public/buildws"/> | |||
| </target> | |||
| <target name="test5" description="Get the latest from PVCS"> | |||
| <pvcs pvcsbin="/home/cvs/pvcsant/src/etc/testcases/taskdefs" | |||
| repository="//ct4serv2/pvcs/monitor"/> | |||
| repository="//ct4serv2/pvcs/monitor"/> | |||
| </target> | |||
| <target name="test6" description="No pcli to be found"> | |||
| <pvcs pvcsbin="/never/heard/of/a/directory/structure/like/this" | |||
| repository="//ct4serv2/pvcs/monitor"/> | |||
| repository="//ct4serv2/pvcs/monitor"/> | |||
| </target> | |||
| @@ -15,10 +15,10 @@ | |||
| See the License for the specific language governing permissions and | |||
| limitations under the License. | |||
| --> | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="http://xml.apache.org/xalan/redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |||
| xmlns:lxslt="http://xml.apache.org/xslt" | |||
| xmlns:redirect="http://xml.apache.org/xalan/redirect" | |||
| extension-element-prefixes="redirect"> | |||
| <!-- | |||
| This is a test to ensure that systemid is set correctly | |||
| for a xsl...the behavior might be dependent on Xalan1 | |||
| @@ -30,7 +30,7 @@ the base or the JVM working dir just like: new File("xalan-redirect-out.tmp") | |||
| <xsl:template match="/"> | |||
| <redirect:write file="./xalan{$xalan-version}-redirect-out.tmp"> | |||
| <test>This should be written to the file</test> | |||
| <test>This should be written to the file</test> | |||
| </redirect:write> | |||
| </xsl:template> | |||
| @@ -16,7 +16,7 @@ | |||
| limitations under the License. | |||
| --> | |||
| <doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="doc-in-ns.xsd" xmlns="http://apache.org/ant/doc/"> | |||
| <section title="endpiece"> | |||
| <section title="endpiece"> | |||
| With a little luck, the network will pick me up. | |||
| This is Ripley - last survivor of The Nostromo - signing off. | |||
| </section> | |||
| @@ -16,7 +16,7 @@ | |||
| limitations under the License. | |||
| --> | |||
| <doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="doc-in-ns.xsd" xmlns="http://apache.org/ant/doc/"> | |||
| <section title="endpiece"> | |||
| <section title="endpiece"> | |||
| With a little luck, the network will pick me up. | |||
| This is Ripley - last survivor of The Nostromo - signing off. | |||
| </section> | |||
| @@ -71,14 +71,14 @@ | |||
| </target> | |||
| <target name="noresourcefailall"> | |||
| <typedef resource="somenotpresentfile.properties" onerror="failall"/> | |||
| <typedef resource="somenotpresentfile.properties" onerror="failall"/> | |||
| </target> | |||
| <target name="noresourcefail"> | |||
| <typedef resource="somenotpresentfile.properties" onerror="fail"/> | |||
| <typedef resource="somenotpresentfile.properties" onerror="fail"/> | |||
| </target> | |||
| <target name="noresourcenotfail"> | |||
| <typedef resource="somenotpresentfile.properties"/> | |||
| <typedef resource="somenotpresentfile.properties"/> | |||
| </target> | |||
| </project> | |||
| @@ -17,9 +17,9 @@ | |||
| --> | |||
| <project name="module1"> | |||
| <!-- declare a target with the same name as one in the master --> | |||
| <target name="compile" extensionOf="all.compile"> | |||
| <echo message="In module1 compile. Yay!"/> | |||
| </target> | |||
| <!-- declare a target with the same name as one in the master --> | |||
| <target name="compile" extensionOf="all.compile"> | |||
| <echo message="In module1 compile. Yay!"/> | |||
| </target> | |||
| </project> | |||
| @@ -109,10 +109,10 @@ | |||
| <file name="2"/> | |||
| </filelist> | |||
| <filterchain> | |||
| <tokenfilter> | |||
| <ignoreblank/> | |||
| </tokenfilter> | |||
| </filterchain> | |||
| <tokenfilter> | |||
| <ignoreblank/> | |||
| </tokenfilter> | |||
| </filterchain> | |||
| </concat> | |||
| </resourcesmatch> | |||
| </au:assertTrue> | |||
| @@ -142,7 +142,7 @@ | |||
| <concat destfile="${output}/TESTDEST" ignoreEmpty="false"> | |||
| <filelist dir="${input}" files="thisfiledoesnotexist"/> | |||
| <header filtering="false" trim="yes"> | |||
| header | |||
| header | |||
| </header> | |||
| </concat> | |||
| <au:assertFileExists file="${output}/TESTDEST"/> | |||
| @@ -244,7 +244,7 @@ public class NullByteStreamResource extends Resource { | |||
| <mkdir dir="${output}"/> | |||
| <mkdir dir="${input}"/> | |||
| <copy file="${input}/not-there.txt" todir="${output}" failonerror="false" quiet="true"/> | |||
| <au:assertLogDoesntContain text="Could not find file"/> | |||
| <au:assertLogDoesntContain text="Could not find file"/> | |||
| </target> | |||
| <target name="testMissingFilesetRoot"> | |||
| @@ -468,8 +468,8 @@ public class NullByteStreamResource extends Resource { | |||
| <mkdir dir="${output}"/> | |||
| <copy todir="${output}"> | |||
| <mappedresources> | |||
| <fileset dir="${input}"/> | |||
| <globmapper from="a.*" to="*"/> | |||
| <fileset dir="${input}"/> | |||
| <globmapper from="a.*" to="*"/> | |||
| </mappedresources> | |||
| </copy> | |||
| <au:assertFileExists file="${output}/filea"/> | |||
| @@ -95,14 +95,14 @@ | |||
| <target name="testInfiniteRedirect" unless="jenkins"> | |||
| <au:expectfailure expectedmessage="More than 25 times redirected, giving up"> | |||
| <au:expectfailure expectedmessage="More than 25 times redirected, giving up"> | |||
| <get src="${location}/infinite.txt" dest="${output}/infinite.tmp"/> | |||
| </au:expectfailure> | |||
| </target> | |||
| <target name="testNestedResources"> | |||
| <get dest="${output}/downloads"> | |||
| <get dest="${output}/downloads"> | |||
| <url url="http://ant.apache.org/index.html"/> | |||
| <url url="http://ant.apache.org/faq.html"/> | |||
| </get> | |||
| @@ -92,10 +92,10 @@ public class Foo { | |||
| <presetdef name="javah-fileset"> | |||
| <javah destdir="${output}"> | |||
| <fileset dir="${output}"> | |||
| <include name="**/*.class"/> | |||
| <include name="**/*.class"/> | |||
| </fileset> | |||
| <classpath> | |||
| <pathelement location="${output}"/> | |||
| <pathelement location="${output}"/> | |||
| </classpath> | |||
| </javah> | |||
| </presetdef> | |||