2f64e0b)"
This reverts commit 7df9120ebc.
Discussion in ant dev mailing list https://www.mail-archive.com/dev@ant.apache.org/msg47356.html
master
| @@ -1,5 +1,5 @@ | |||||
| <?xml version="1.0"?> | <?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"/> | <xsl:output method="xml" indent="yes"/> | ||||
| <!-- | <!-- | ||||
| Licensed to the Apache Software Foundation (ASF) under one or more | Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| @@ -17,21 +17,21 @@ | |||||
| See the License for the specific language governing permissions and | See the License for the specific language governing permissions and | ||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <!-- | <!-- | ||||
| The purpose have this XSL is to provide a fast way to update a buildfile | The purpose have this XSL is to provide a fast way to update a buildfile | ||||
| from deprecated tasks. | from deprecated tasks. | ||||
| It should particularly be useful when there is a lot of build files to migrate. | It should particularly be useful when there is a lot of build files to migrate. | ||||
| If you do not want to migrate to a particular task and want to keep it for | If you do not want to migrate to a particular task and want to keep it for | ||||
| various reason, just comment the appropriate template. | various reason, just comment the appropriate template. | ||||
| !!!! Use at your own risk. !!!! | !!!! Use at your own risk. !!!! | ||||
| --> | --> | ||||
| <!-- (zip|jar|war|ear)file attributes are replaced by destfile in their respective task --> | <!-- (zip|jar|war|ear)file attributes are replaced by destfile in their respective task --> | ||||
| <xsl:template match="zip"> | <xsl:template match="zip"> | ||||
| <zip destfile="{@zipfile}"> | <zip destfile="{@zipfile}"> | ||||
| @@ -53,8 +53,8 @@ | |||||
| <xsl:apply-templates select="@*[not(name()='earfile')]|node()"/> | <xsl:apply-templates select="@*[not(name()='earfile')]|node()"/> | ||||
| </ear> | </ear> | ||||
| </xsl:template> | </xsl:template> | ||||
| <!-- copydir is replaced by copy --> | <!-- copydir is replaced by copy --> | ||||
| <xsl:template match="copydir"> | <xsl:template match="copydir"> | ||||
| <copy todir="{@dest}"> | <copy todir="{@dest}"> | ||||
| @@ -113,5 +113,5 @@ | |||||
| <xsl:apply-templates select="@*|node()"/> | <xsl:apply-templates select="@*|node()"/> | ||||
| </xsl:copy> | </xsl:copy> | ||||
| </xsl:template> | </xsl:template> | ||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||
| @@ -19,7 +19,7 @@ | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| See the License for the specific language governing permissions and | See the License for the specific language governing permissions and | ||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <xsl:param name="title"/> | <xsl:param name="title"/> | ||||
| <xsl:param name="module"/> | <xsl:param name="module"/> | ||||
| @@ -79,18 +79,18 @@ | |||||
| <p style="text-align: right">Designed for use with <a href="http://ant.apache.org/">Apache Ant</a>.</p> | <p style="text-align: right">Designed for use with <a href="http://ant.apache.org/">Apache Ant</a>.</p> | ||||
| <hr/> | <hr/> | ||||
| <table border="0" width="100%" cellspacing="1"> | <table border="0" width="100%" cellspacing="1"> | ||||
| <xsl:apply-templates select=".//entry"> | <xsl:apply-templates select=".//entry"> | ||||
| <xsl:sort select="date" data-type="text" order="descending"/> | <xsl:sort select="date" data-type="text" order="descending"/> | ||||
| <xsl:sort select="time" data-type="text" order="descending"/> | <xsl:sort select="time" data-type="text" order="descending"/> | ||||
| </xsl:apply-templates> | </xsl:apply-templates> | ||||
| </table> | </table> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| </xsl:template> | </xsl:template> | ||||
| <xsl:template match="entry"> | <xsl:template match="entry"> | ||||
| <tr> | <tr> | ||||
| <td class="dateAndAuthor"> | <td class="dateAndAuthor"> | ||||
| @@ -129,13 +129,13 @@ | |||||
| <a> | <a> | ||||
| <xsl:choose> | <xsl:choose> | ||||
| <xsl:when test="string-length(prevrevision) = 0 "> | <xsl:when test="string-length(prevrevision) = 0 "> | ||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module"/>/<xsl:value-of select="name"/>?rev=<xsl:value-of select="revision"/>&content-type=text/x-cvsweb-markup</xsl:attribute> | |||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?rev=<xsl:value-of select="revision" />&content-type=text/x-cvsweb-markup</xsl:attribute> | |||||
| </xsl:when> | </xsl:when> | ||||
| <xsl:otherwise> | <xsl:otherwise> | ||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module"/>/<xsl:value-of select="name"/>?r1=<xsl:value-of select="revision"/>&r2=<xsl:value-of select="prevrevision"/></xsl:attribute> | |||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?r1=<xsl:value-of select="revision" />&r2=<xsl:value-of select="prevrevision"/></xsl:attribute> | |||||
| </xsl:otherwise> | </xsl:otherwise> | ||||
| </xsl:choose> | </xsl:choose> | ||||
| <xsl:value-of select="name"/> (<xsl:value-of select="revision"/>)</a> | |||||
| <xsl:value-of select="name" /> (<xsl:value-of select="revision"/>)</a> | |||||
| </li> | </li> | ||||
| </xsl:template> | </xsl:template> | ||||
| @@ -144,5 +144,5 @@ | |||||
| <xsl:template match="msg"> | <xsl:template match="msg"> | ||||
| <xsl:apply-templates/> | <xsl:apply-templates/> | ||||
| </xsl:template> | </xsl:template> | ||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||
| @@ -22,7 +22,7 @@ | |||||
| --> | --> | ||||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <xsl:param name="output.dir" select="'.'"/> | <xsl:param name="output.dir" select="'.'"/> | ||||
| <xsl:param name="basedir" select="'.'"/> | <xsl:param name="basedir" select="'.'"/> | ||||
| @@ -76,7 +76,7 @@ | |||||
| <!-- | <!-- | ||||
| Key for detecting duplicate CheckModules | |||||
| Key for detecting duplicate CheckModules | |||||
| --> | --> | ||||
| <xsl:key name="module" match="file/error" use="@source"/> | <xsl:key name="module" match="file/error" use="@source"/> | ||||
| @@ -84,7 +84,7 @@ | |||||
| <!-- | <!-- | ||||
| Generates the navagation bar. | Generates the navagation bar. | ||||
| --> | |||||
| --> | |||||
| <xsl:template match="checkstyle" mode="navigation"> | <xsl:template match="checkstyle" mode="navigation"> | ||||
| <ul id="navigation"> | <ul id="navigation"> | ||||
| <xsl:for-each select="file/error[generate-id() = generate-id(key('module',@source))]"> | <xsl:for-each select="file/error[generate-id() = generate-id(key('module',@source))]"> | ||||
| @@ -100,13 +100,13 @@ | |||||
| </a></li> | </a></li> | ||||
| </xsl:for-each> | </xsl:for-each> | ||||
| </ul> | </ul> | ||||
| </xsl:template> | |||||
| </xsl:template> | |||||
| <!-- | <!-- | ||||
| Generates the data part. | Generates the data part. | ||||
| --> | |||||
| --> | |||||
| <xsl:template match="checkstyle" mode="data"> | <xsl:template match="checkstyle" mode="data"> | ||||
| <div id="content"> | <div id="content"> | ||||
| <xsl:for-each select="file/error[generate-id() = generate-id(key('module',@source))]"> | <xsl:for-each select="file/error[generate-id() = generate-id(key('module',@source))]"> | ||||
| @@ -120,13 +120,13 @@ | |||||
| </div> | </div> | ||||
| </xsl:for-each> | </xsl:for-each> | ||||
| </div> | </div> | ||||
| </xsl:template> | |||||
| </xsl:template> | |||||
| <!-- | <!-- | ||||
| Generates the content table for the given check module. | Generates the content table for the given check module. | ||||
| @param filter full qualified module name | |||||
| @param filter full qualified module name | |||||
| --> | --> | ||||
| <xsl:template name="data"> | <xsl:template name="data"> | ||||
| <xsl:param name="filter"/> | <xsl:param name="filter"/> | ||||
| @@ -157,7 +157,7 @@ | |||||
| Generates the data rows for the current check module. | Generates the data rows for the current check module. | ||||
| Ignores errors in the current file from other modules. | Ignores errors in the current file from other modules. | ||||
| @param node the file with the errors | @param node the file with the errors | ||||
| @param filter full qualified module name | |||||
| @param filter full qualified module name | |||||
| --> | --> | ||||
| <xsl:template name="data-rows"> | <xsl:template name="data-rows"> | ||||
| <xsl:param name="node"/> | <xsl:param name="node"/> | ||||
| @@ -180,68 +180,68 @@ | |||||
| <!-- | |||||
| <!-- | |||||
| Generates the CSS with the layout instructions. | Generates the CSS with the layout instructions. | ||||
| Generated so this XSL is the single source of the whole report. | Generated so this XSL is the single source of the whole report. | ||||
| --> | --> | ||||
| <xsl:template name="sorted.css"> | <xsl:template name="sorted.css"> | ||||
| body { | |||||
| body { | |||||
| font:normal 80% arial,helvetica,sanserif; | font:normal 80% arial,helvetica,sanserif; | ||||
| color: black; | |||||
| background-color: white; | |||||
| margin: 0; | |||||
| padding: 1em; | |||||
| color: black; | |||||
| background-color: white; | |||||
| margin: 0; | |||||
| padding: 1em; | |||||
| min-width: 41em; | min-width: 41em; | ||||
| } | |||||
| h1 { | |||||
| } | |||||
| h1 { | |||||
| font-weight:bold; | font-weight:bold; | ||||
| font-size:140%; | font-size:140%; | ||||
| margin: 0 0 0.7em; | |||||
| padding: 0.3em; | |||||
| text-align: center; | |||||
| background-color: #eee; | |||||
| border: 2px ridge silver; | |||||
| } | |||||
| html<xsl:text disable-output-escaping="yes">></xsl:text>body h1 { | |||||
| margin: 0 0 0.7em; | |||||
| padding: 0.3em; | |||||
| text-align: center; | |||||
| background-color: #eee; | |||||
| border: 2px ridge silver; | |||||
| } | |||||
| html<xsl:text disable-output-escaping="yes">></xsl:text>body h1 { | |||||
| border-color: gray; | border-color: gray; | ||||
| } | |||||
| ul#navigation { | |||||
| font-size: 0.83em; | |||||
| float: left; width: 18em; | |||||
| margin: 0 0 1.2em; padding: 0; | |||||
| border: 1px dashed silver; | |||||
| } | |||||
| ul#navigation li { | |||||
| list-style: none; | |||||
| margin: 0; padding: 0.2em; | |||||
| } | |||||
| ul#navigation a { | |||||
| display: block; | |||||
| padding: 0.2em; | |||||
| font-weight: bold; | |||||
| } | |||||
| ul#navigation a:link { | |||||
| color: black; background-color: #eee; | |||||
| } | |||||
| ul#navigation a:visited { | |||||
| color: #666; background-color: #eee; | |||||
| } | |||||
| ul#navigation a:hover { | |||||
| color: red; background-color: white; | |||||
| } | |||||
| ul#navigation a:active { | |||||
| color: white; background-color: gray; | |||||
| } | } | ||||
| ul#navigation { | |||||
| font-size: 0.83em; | |||||
| float: left; width: 18em; | |||||
| margin: 0 0 1.2em; padding: 0; | |||||
| border: 1px dashed silver; | |||||
| } | |||||
| ul#navigation li { | |||||
| list-style: none; | |||||
| margin: 0; padding: 0.2em; | |||||
| } | |||||
| ul#navigation a { | |||||
| display: block; | |||||
| padding: 0.2em; | |||||
| font-weight: bold; | |||||
| } | |||||
| ul#navigation a:link { | |||||
| color: black; background-color: #eee; | |||||
| } | |||||
| ul#navigation a:visited { | |||||
| color: #666; background-color: #eee; | |||||
| } | |||||
| ul#navigation a:hover { | |||||
| color: red; background-color: white; | |||||
| } | |||||
| ul#navigation a:active { | |||||
| color: white; background-color: gray; | |||||
| } | |||||
| div#content { | |||||
| margin: 0 1em 1em 16em; | |||||
| padding: 0 1em; | |||||
| } | |||||
| * html div#content { | |||||
| height: 1em; /* Workaround 3-Pixel-Bug of Internet Explorers */ | |||||
| } | |||||
| div#content h2 { | |||||
| div#content { | |||||
| margin: 0 1em 1em 16em; | |||||
| padding: 0 1em; | |||||
| } | |||||
| * html div#content { | |||||
| height: 1em; /* Workaround 3-Pixel-Bug of Internet Explorers */ | |||||
| } | |||||
| div#content h2 { | |||||
| font-size:100%; | font-size:100%; | ||||
| font-weight:bold; | font-weight:bold; | ||||
| background: #525D76; | background: #525D76; | ||||
| @@ -251,11 +251,11 @@ | |||||
| margin-right: 2px; | margin-right: 2px; | ||||
| margin-left: 2px; | margin-left: 2px; | ||||
| margin-bottom: 0; | margin-bottom: 0; | ||||
| } | |||||
| div#content p { | |||||
| font-size: 1em; | |||||
| margin: 1em 0; | |||||
| } | |||||
| } | |||||
| div#content p { | |||||
| font-size: 1em; | |||||
| margin: 1em 0; | |||||
| } | |||||
| table { | table { | ||||
| width:100%; | width:100%; | ||||
| border-collapse:collapse; | border-collapse:collapse; | ||||
| @@ -275,55 +275,55 @@ | |||||
| table tr:nth-child(even) td { | table tr:nth-child(even) td { | ||||
| background: #fff; | background: #fff; | ||||
| } | } | ||||
| </xsl:template> | |||||
| </xsl:template> | |||||
| <!-- | |||||
| Generates the JavaScript for the dynamic style. | |||||
| <!-- | |||||
| Generates the JavaScript for the dynamic style. | |||||
| Generated so this XSL is the single source of the whole report. | Generated so this XSL is the single source of the whole report. | ||||
| --> | --> | ||||
| <xsl:template name="switch.js"> | <xsl:template name="switch.js"> | ||||
| /* | |||||
| /* | |||||
| * Hides all "hideable" div-containers | * Hides all "hideable" div-containers | ||||
| */ | */ | ||||
| function hideAll() { | function hideAll() { | ||||
| allElements = document.getElementsByTagName("div"); | allElements = document.getElementsByTagName("div"); | ||||
| for (i = 0; i <xsl:text disable-output-escaping="yes"><</xsl:text> allElements.length; i++) { | |||||
| if (allElements[i].className=="hideable") { | |||||
| allElements[i].style.display="none"; | |||||
| } | |||||
| } | |||||
| return; | |||||
| } | |||||
| /* | |||||
| for (i = 0; i <xsl:text disable-output-escaping="yes"><</xsl:text> allElements.length; i++) { | |||||
| if (allElements[i].className=="hideable") { | |||||
| allElements[i].style.display="none"; | |||||
| } | |||||
| } | |||||
| return; | |||||
| } | |||||
| /* | |||||
| * Shows one div-container and hides the other. | * Shows one div-container and hides the other. | ||||
| * @param id id of the element to show | * @param id id of the element to show | ||||
| */ | */ | ||||
| function change(id) { | |||||
| hideAll(); | |||||
| e = document.getElementById(id); | |||||
| if (e.style.display=="none") { | |||||
| e.style.display=""; | |||||
| } | |||||
| window.scrollTo(0, 0); | |||||
| return; | |||||
| } | |||||
| /* | |||||
| function change(id) { | |||||
| hideAll(); | |||||
| e = document.getElementById(id); | |||||
| if (e.style.display=="none") { | |||||
| e.style.display=""; | |||||
| } | |||||
| window.scrollTo(0, 0); | |||||
| return; | |||||
| } | |||||
| /* | |||||
| * Shows only the first data row. | * Shows only the first data row. | ||||
| * Used in body:onload so the user could directly see some messages. | * Used in body:onload so the user could directly see some messages. | ||||
| */ | */ | ||||
| function openFirst() { | function openFirst() { | ||||
| hideAll(); | hideAll(); | ||||
| for (i = 0; i <xsl:text disable-output-escaping="yes"><</xsl:text> allElements.length; i++) { | |||||
| if (allElements[i].className=="hideable") { | |||||
| for (i = 0; i <xsl:text disable-output-escaping="yes"><</xsl:text> allElements.length; i++) { | |||||
| if (allElements[i].className=="hideable") { | |||||
| allElements[i].style.display=""; | allElements[i].style.display=""; | ||||
| return; | |||||
| } | |||||
| } | |||||
| return; | |||||
| return; | |||||
| } | |||||
| } | |||||
| return; | |||||
| } | } | ||||
| </xsl:template> | </xsl:template> | ||||
| @@ -22,7 +22,7 @@ | |||||
| --> | --> | ||||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <xsl:param name="output.dir" select="'.'"/> | <xsl:param name="output.dir" select="'.'"/> | ||||
| <xsl:param name="basedir" select="'.'"/> | <xsl:param name="basedir" select="'.'"/> | ||||
| @@ -229,7 +229,7 @@ | |||||
| <!-- Convert a windows path '\' to a unix path '/' for further processing. --> | <!-- Convert a windows path '\' to a unix path '/' for further processing. --> | ||||
| <xsl:variable name="path2" select="translate($path,'\','/')"/> | <xsl:variable name="path2" select="translate($path,'\','/')"/> | ||||
| <xsl:if test="contains($path2,'/')"> | <xsl:if test="contains($path2,'/')"> | ||||
| <xsl:text>../</xsl:text> | <xsl:text>../</xsl:text> | ||||
| <xsl:call-template name="path"> | <xsl:call-template name="path"> | ||||
| @@ -296,4 +296,4 @@ | |||||
| <xsl:if test="position() mod 2 = 0">evenrow</xsl:if> | <xsl:if test="position() mod 2 = 0">evenrow</xsl:if> | ||||
| </xsl:attribute> | </xsl:attribute> | ||||
| </xsl:template> | </xsl:template> | ||||
| </xsl:stylesheet> | |||||
| </xsl:stylesheet> | |||||
| @@ -31,3 +31,4 @@ | |||||
| <xsl:value-of select="@message"/> | <xsl:value-of select="@message"/> | ||||
| </xsl:template> | </xsl:template> | ||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||
| @@ -22,7 +22,7 @@ | |||||
| --> | --> | ||||
| <xsl:output method="xml" indent="yes"/> | <xsl:output method="xml" indent="yes"/> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <xsl:param name="output.dir" select="'.'"/> | <xsl:param name="output.dir" select="'.'"/> | ||||
| <xsl:param name="basedir" select="'.'"/> | <xsl:param name="basedir" select="'.'"/> | ||||
| @@ -127,3 +127,4 @@ | |||||
| </xsl:attribute> | </xsl:attribute> | ||||
| </xsl:template> | </xsl:template> | ||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||
| @@ -1,8 +1,8 @@ | |||||
| <?xml version="1.0" encoding="ISO-8859-1"?> | <?xml version="1.0" encoding="ISO-8859-1"?> | ||||
| <!-- | |||||
| <!-- | |||||
| This stylesheet can be used to generate a master buildfile from a common | This stylesheet can be used to generate a master buildfile from a common | ||||
| buildfile (see manual for <subant>). | buildfile (see manual for <subant>). | ||||
| Foreach <target> in the common buildfile it generates a corresponding | |||||
| Foreach <target> in the common buildfile it generates a corresponding | |||||
| target in the master buildfile for iterating over that target. | target in the master buildfile for iterating over that target. | ||||
| --> | --> | ||||
| <xsl:stylesheet | <xsl:stylesheet | ||||
| @@ -38,7 +38,7 @@ | |||||
| <xsl:template match="project"> | <xsl:template match="project"> | ||||
| <![CDATA[ | <![CDATA[ | ||||
| <project name="master"> | |||||
| <project name="master"> | |||||
| <macrodef name="iterate"> | <macrodef name="iterate"> | ||||
| <attribute name="target"/> | <attribute name="target"/> | ||||
| @@ -49,9 +49,9 @@ | |||||
| </sequential> | </sequential> | ||||
| </macrodef> | </macrodef> | ||||
| ]]> | ]]> | ||||
| <xsl:apply-templates/> | <xsl:apply-templates/> | ||||
| <![CDATA[ | <![CDATA[ | ||||
| </project> | </project> | ||||
| ]]> | ]]> | ||||
| @@ -70,3 +70,4 @@ | |||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||
| @@ -4,7 +4,7 @@ | |||||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | xmlns:redirect="org.apache.xalan.lib.Redirect" | ||||
| extension-element-prefixes="redirect"> | extension-element-prefixes="redirect"> | ||||
| <xsl:output method="html" indent="yes"/> | <xsl:output method="html" indent="yes"/> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <!-- | <!-- | ||||
| Licensed to the Apache Software Foundation (ASF) under one or more | Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| contributor license agreements. See the NOTICE file distributed with | contributor license agreements. See the NOTICE file distributed with | ||||
| @@ -19,7 +19,7 @@ | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| See the License for the specific language governing permissions and | See the License for the specific language governing permissions and | ||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <!-- | <!-- | ||||
| @@ -18,13 +18,13 @@ | |||||
| limitations under the License. | 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"> | <xsl:template match="JDepend"> | ||||
| <html> | <html> | ||||
| <head> | <head> | ||||
| <title>JDepend Analysis</title> | <title>JDepend Analysis</title> | ||||
| <style type="text/css"> | <style type="text/css"> | ||||
| body { | body { | ||||
| font:normal 68% verdana,arial,helvetica; | font:normal 68% verdana,arial,helvetica; | ||||
| @@ -41,7 +41,7 @@ | |||||
| table.details tr td{ | table.details tr td{ | ||||
| background:#eeeee0; | background:#eeeee0; | ||||
| } | } | ||||
| p { | p { | ||||
| line-height:1.5em; | line-height:1.5em; | ||||
| margin-top:0.5em; margin-bottom:1.0em; | margin-top:0.5em; margin-bottom:1.0em; | ||||
| @@ -76,8 +76,8 @@ | |||||
| text-align:right; | text-align:right; | ||||
| } | } | ||||
| </style> | </style> | ||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <!--h1>JDepend Report</h1> | <!--h1>JDepend Report</h1> | ||||
| @@ -87,11 +87,11 @@ | |||||
| <li><xsl:value-of select="@name"/></li> | <li><xsl:value-of select="@name"/></li> | ||||
| </xsl:for-each> | </xsl:for-each> | ||||
| </ul--> | </ul--> | ||||
| <h1><a name="top">JDepend Analysis</a></h1> | <h1><a name="top">JDepend Analysis</a></h1> | ||||
| <p align="right">Designed for use with <a href="http://www.clarkware.com/software/JDepend.html">JDepend</a> and <a href="https://ant.apache.org">Ant</a>.</p> | |||||
| <hr size="2"/> | |||||
| <p align="right">Designed for use with <a href="http://www.clarkware.com/software/JDepend.html">JDepend</a> and <a href="http://jakarta.apache.org">Ant</a>.</p> | |||||
| <hr size="2" /> | |||||
| <table width="100%"><tr><td> | <table width="100%"><tr><td> | ||||
| <a name="NVsummary"><h2>Summary</h2></a> | <a name="NVsummary"><h2>Summary</h2></a> | ||||
| </td><td align="right"> | </td><td align="right"> | ||||
| @@ -100,7 +100,7 @@ | |||||
| [<a href="#NVcycles">cycles</a>] | [<a href="#NVcycles">cycles</a>] | ||||
| [<a href="#NVexplanations">explanations</a>] | [<a href="#NVexplanations">explanations</a>] | ||||
| </td></tr></table> | </td></tr></table> | ||||
| <table width="100%" class="details"> | <table width="100%" class="details"> | ||||
| <tr> | <tr> | ||||
| <th>Package</th> | <th>Package</th> | ||||
| @@ -112,7 +112,7 @@ | |||||
| <th><a href="#EXabstractness">Abstractness</a></th> | <th><a href="#EXabstractness">Abstractness</a></th> | ||||
| <th><a href="#EXinstability">Instability</a></th> | <th><a href="#EXinstability">Instability</a></th> | ||||
| <th><a href="#EXdistance">Distance</a></th> | <th><a href="#EXdistance">Distance</a></th> | ||||
| </tr> | </tr> | ||||
| <xsl:for-each select="./Packages/Package"> | <xsl:for-each select="./Packages/Package"> | ||||
| <xsl:if test="count(error) = 0"> | <xsl:if test="count(error) = 0"> | ||||
| @@ -132,7 +132,7 @@ | |||||
| <td align="right"><xsl:value-of select="Stats/A"/></td> | <td align="right"><xsl:value-of select="Stats/A"/></td> | ||||
| <td align="right"><xsl:value-of select="Stats/I"/></td> | <td align="right"><xsl:value-of select="Stats/I"/></td> | ||||
| <td align="right"><xsl:value-of select="Stats/D"/></td> | <td align="right"><xsl:value-of select="Stats/D"/></td> | ||||
| </tr> | </tr> | ||||
| </xsl:if> | </xsl:if> | ||||
| @@ -148,7 +148,7 @@ | |||||
| </xsl:if> | </xsl:if> | ||||
| </xsl:for-each> | </xsl:for-each> | ||||
| </table> | </table> | ||||
| <table width="100%"><tr><td> | <table width="100%"><tr><td> | ||||
| <a name="NVpackages"><h2>Packages</h2></a> | <a name="NVpackages"><h2>Packages</h2></a> | ||||
| </td><td align="right"> | </td><td align="right"> | ||||
| @@ -157,12 +157,12 @@ | |||||
| [<a href="#NVcycles">cycles</a>] | [<a href="#NVcycles">cycles</a>] | ||||
| [<a href="#NVexplanations">explanations</a>] | [<a href="#NVexplanations">explanations</a>] | ||||
| </td></tr></table> | </td></tr></table> | ||||
| <xsl:for-each select="./Packages/Package"> | <xsl:for-each select="./Packages/Package"> | ||||
| <xsl:if test="count(error) = 0"> | <xsl:if test="count(error) = 0"> | ||||
| <h3><a><xsl:attribute name="name">PK<xsl:value-of select="@name"/></xsl:attribute> | <h3><a><xsl:attribute name="name">PK<xsl:value-of select="@name"/></xsl:attribute> | ||||
| <xsl:value-of select="@name"/></a></h3> | <xsl:value-of select="@name"/></a></h3> | ||||
| <table width="100%"><tr> | <table width="100%"><tr> | ||||
| <td><a href="#EXafferent">Afferent Couplings</a>: <xsl:value-of select="Stats/Ca"/></td> | <td><a href="#EXafferent">Afferent Couplings</a>: <xsl:value-of select="Stats/Ca"/></td> | ||||
| <td><a href="#EXefferent">Efferent Couplings</a>: <xsl:value-of select="Stats/Ce"/></td> | <td><a href="#EXefferent">Efferent Couplings</a>: <xsl:value-of select="Stats/Ce"/></td> | ||||
| @@ -170,7 +170,7 @@ | |||||
| <td><a href="#EXinstability">Instability</a>: <xsl:value-of select="Stats/I"/></td> | <td><a href="#EXinstability">Instability</a>: <xsl:value-of select="Stats/I"/></td> | ||||
| <td><a href="#EXdistance">Distance</a>: <xsl:value-of select="Stats/D"/></td> | <td><a href="#EXdistance">Distance</a>: <xsl:value-of select="Stats/D"/></td> | ||||
| </tr></table> | </tr></table> | ||||
| <table width="100%" class="details"> | <table width="100%" class="details"> | ||||
| <tr> | <tr> | ||||
| <th>Abstract Classes</th> | <th>Abstract Classes</th> | ||||
| @@ -221,7 +221,7 @@ | |||||
| </table> | </table> | ||||
| </xsl:if> | </xsl:if> | ||||
| </xsl:for-each> | </xsl:for-each> | ||||
| <table width="100%"><tr><td> | <table width="100%"><tr><td> | ||||
| <a name="NVcycles"><h2>Cycles</h2></a> | <a name="NVcycles"><h2>Cycles</h2></a> | ||||
| </td><td align="right"> | </td><td align="right"> | ||||
| @@ -230,7 +230,7 @@ | |||||
| [<a href="#NVcycles">cycles</a>] | [<a href="#NVcycles">cycles</a>] | ||||
| [<a href="#NVexplanations">explanations</a>] | [<a href="#NVexplanations">explanations</a>] | ||||
| </td></tr></table> | </td></tr></table> | ||||
| <xsl:if test="count(Cycles/Package) = 0"> | <xsl:if test="count(Cycles/Package) = 0"> | ||||
| <p>There are no cyclic dependancies.</p> | <p>There are no cyclic dependancies.</p> | ||||
| </xsl:if> | </xsl:if> | ||||
| @@ -240,7 +240,7 @@ | |||||
| <xsl:value-of select="."/><br/> | <xsl:value-of select="."/><br/> | ||||
| </xsl:for-each></p> | </xsl:for-each></p> | ||||
| </xsl:for-each> | </xsl:for-each> | ||||
| <table width="100%"><tr><td> | <table width="100%"><tr><td> | ||||
| <a name="NVexplanations"><h2>Explanations</h2></a> | <a name="NVexplanations"><h2>Explanations</h2></a> | ||||
| </td><td align="right"> | </td><td align="right"> | ||||
| @@ -249,16 +249,16 @@ | |||||
| [<a href="#NVcycles">cycles</a>] | [<a href="#NVcycles">cycles</a>] | ||||
| [<a href="#NVexplanations">explanations</a>] | [<a href="#NVexplanations">explanations</a>] | ||||
| </td></tr></table> | </td></tr></table> | ||||
| <p>The following explanations are for quick reference and are lifted directly from the original <a href="http://www.clarkware.com/software/JDepend.html">JDepend documentation</a>.</p> | <p>The following explanations are for quick reference and are lifted directly from the original <a href="http://www.clarkware.com/software/JDepend.html">JDepend documentation</a>.</p> | ||||
| <h3><a name="EXnumber">Number of Classes</a></h3> | <h3><a name="EXnumber">Number of Classes</a></h3> | ||||
| <p>The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.</p> | <p>The number of concrete and abstract classes (and interfaces) in the package is an indicator of the extensibility of the package.</p> | ||||
| <h3><a name="EXafferent">Afferent Couplings</a></h3> | <h3><a name="EXafferent">Afferent Couplings</a></h3> | ||||
| <p>The number of other packages that depend upon classes within the package is an indicator of the package's responsibility. </p> | <p>The number of other packages that depend upon classes within the package is an indicator of the package's responsibility. </p> | ||||
| <h3><a name="EXefferent">Efferent Couplings</a></h3> | <h3><a name="EXefferent">Efferent Couplings</a></h3> | ||||
| <p>The number of other packages that the classes in the package depend upon is an indicator of the package's independence. </p> | <p>The number of other packages that the classes in the package depend upon is an indicator of the package's independence. </p> | ||||
| <h3><a name="EXabstractness">Abstractness</a></h3> | |||||
| <h3><a name="EXabstractness">Abstractness</a></h3> | |||||
| <p>The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. </p> | <p>The ratio of the number of abstract classes (and interfaces) in the analyzed package to the total number of classes in the analyzed package. </p> | ||||
| <p>The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package. </p> | <p>The range for this metric is 0 to 1, with A=0 indicating a completely concrete package and A=1 indicating a completely abstract package. </p> | ||||
| <h3><a name="EXinstability">Instability</a></h3> | <h3><a name="EXinstability">Instability</a></h3> | ||||
| @@ -268,7 +268,7 @@ | |||||
| <p>The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. </p> | <p>The perpendicular distance of a package from the idealized line A + I = 1. This metric is an indicator of the package's balance between abstractness and stability. </p> | ||||
| <p>A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). </p> | <p>A package squarely on the main sequence is optimally balanced with respect to its abstractness and stability. Ideal packages are either completely abstract and stable (x=0, y=1) or completely concrete and instable (x=1, y=0). </p> | ||||
| <p>The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible. </p> | <p>The range for this metric is 0 to 1, with D=0 indicating a package that is coincident with the main sequence and D=1 indicating a package that is as far from the main sequence as possible. </p> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| </xsl:template> | </xsl:template> | ||||
| @@ -257,11 +257,11 @@ h6 { | |||||
| <h2>Tests</h2> | <h2>Tests</h2> | ||||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | <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"> | <xsl:if test="./error"> | ||||
| <tr class="Error"> | <tr class="Error"> | ||||
| <td colspan="4"><xsl:apply-templates select="./error"/></td> | <td colspan="4"><xsl:apply-templates select="./error"/></td> | ||||
| @@ -295,17 +295,17 @@ h6 { | |||||
| </html> | </html> | ||||
| </xsl:template> | </xsl:template> | ||||
| <!-- | |||||
| <!-- | |||||
| Write properties into a JavaScript data structure. | Write properties into a JavaScript data structure. | ||||
| This is based on the original idea by Erik Hatcher (ehatcher@apache.org) | 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(); | cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array(); | ||||
| <xsl:for-each select="property"> | <xsl:for-each select="property"> | ||||
| <xsl:sort select="@name"/> | <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>'; | 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:for-each> | ||||
| </xsl:template> | |||||
| </xsl:template> | |||||
| <!-- ====================================================================== | <!-- ====================================================================== | ||||
| @@ -466,7 +466,7 @@ h6 { | |||||
| <td><xsl:value-of select="$testCount"/></td> | <td><xsl:value-of select="$testCount"/></td> | ||||
| <td><xsl:value-of select="$failureCount"/></td> | <td><xsl:value-of select="$failureCount"/></td> | ||||
| <td><xsl:value-of select="$errorCount"/></td> | <td><xsl:value-of select="$errorCount"/></td> | ||||
| <td><xsl:value-of select="$skipCount"/></td> | |||||
| <td><xsl:value-of select="$skipCount" /></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-percent"> | <xsl:call-template name="display-percent"> | ||||
| <xsl:with-param name="value" select="$successRate"/> | <xsl:with-param name="value" select="$successRate"/> | ||||
| @@ -510,7 +510,7 @@ h6 { | |||||
| <td><xsl:value-of select="sum($insamepackage/@tests)"/></td> | <td><xsl:value-of select="sum($insamepackage/@tests)"/></td> | ||||
| <td><xsl:value-of select="sum($insamepackage/@errors)"/></td> | <td><xsl:value-of select="sum($insamepackage/@errors)"/></td> | ||||
| <td><xsl:value-of select="sum($insamepackage/@failures)"/></td> | <td><xsl:value-of select="sum($insamepackage/@failures)"/></td> | ||||
| <td><xsl:value-of select="sum($insamepackage/@skipped)"/></td> | |||||
| <td><xsl:value-of select="sum($insamepackage/@skipped)" /></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-time"> | <xsl:call-template name="display-time"> | ||||
| <xsl:with-param name="value" select="sum($insamepackage/@time)"/> | <xsl:with-param name="value" select="sum($insamepackage/@time)"/> | ||||
| @@ -637,7 +637,7 @@ h6 { | |||||
| <td><xsl:apply-templates select="@tests"/></td> | <td><xsl:apply-templates select="@tests"/></td> | ||||
| <td><xsl:apply-templates select="@errors"/></td> | <td><xsl:apply-templates select="@errors"/></td> | ||||
| <td><xsl:apply-templates select="@failures"/></td> | <td><xsl:apply-templates select="@failures"/></td> | ||||
| <td><xsl:apply-templates select="@skipped"/></td> | |||||
| <td><xsl:apply-templates select="@skipped" /></td> | |||||
| <td><xsl:call-template name="display-time"> | <td><xsl:call-template name="display-time"> | ||||
| <xsl:with-param name="value" select="@time"/> | <xsl:with-param name="value" select="@time"/> | ||||
| </xsl:call-template> | </xsl:call-template> | ||||
| @@ -667,8 +667,8 @@ h6 { | |||||
| <td><xsl:apply-templates select="error"/></td> | <td><xsl:apply-templates select="error"/></td> | ||||
| </xsl:when> | </xsl:when> | ||||
| <xsl:when test="skipped"> | <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:when> | ||||
| <xsl:otherwise> | <xsl:otherwise> | ||||
| <td>Success</td> | <td>Success</td> | ||||
| @@ -79,7 +79,7 @@ | |||||
| <xsl:with-param name="type" select="'errors'"/> | <xsl:with-param name="type" select="'errors'"/> | ||||
| </xsl:apply-templates> | </xsl:apply-templates> | ||||
| </redirect:write> | </redirect:write> | ||||
| <!-- create the alltests-skipped.html at the root --> | <!-- create the alltests-skipped.html at the root --> | ||||
| <redirect:write file="{$output.dir}/alltests-skipped.html"> | <redirect:write file="{$output.dir}/alltests-skipped.html"> | ||||
| <xsl:apply-templates select="." mode="all.tests"> | <xsl:apply-templates select="." mode="all.tests"> | ||||
| @@ -593,7 +593,7 @@ h6 { | |||||
| <xsl:variable name="testCount" select="sum(testsuite/@tests)"/> | <xsl:variable name="testCount" select="sum(testsuite/@tests)"/> | ||||
| <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/> | <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/> | ||||
| <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/> | <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/> | ||||
| <xsl:variable name="skippedCount" select="sum(testsuite/@skipped)"/> | |||||
| <xsl:variable name="skippedCount" select="sum(testsuite/@skipped)" /> | |||||
| <xsl:variable name="timeCount" select="sum(testsuite/@time)"/> | <xsl:variable name="timeCount" select="sum(testsuite/@time)"/> | ||||
| <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/> | <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/> | ||||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | ||||
| @@ -616,7 +616,7 @@ h6 { | |||||
| <td><a title="Display all tests" href="all-tests.html"><xsl:value-of select="$testCount"/></a></td> | <td><a title="Display all tests" href="all-tests.html"><xsl:value-of select="$testCount"/></a></td> | ||||
| <td><a title="Display all failures" href="alltests-fails.html"><xsl:value-of select="$failureCount"/></a></td> | <td><a title="Display all failures" href="alltests-fails.html"><xsl:value-of select="$failureCount"/></a></td> | ||||
| <td><a title="Display all errors" href="alltests-errors.html"><xsl:value-of select="$errorCount"/></a></td> | <td><a title="Display all errors" href="alltests-errors.html"><xsl:value-of select="$errorCount"/></a></td> | ||||
| <td><a title="Display all skipped test" href="alltests-skipped.html"><xsl:value-of select="$skippedCount"/></a></td> | |||||
| <td><a title="Display all skipped test" href="alltests-skipped.html"><xsl:value-of select="$skippedCount" /></a></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-percent"> | <xsl:call-template name="display-percent"> | ||||
| <xsl:with-param name="value" select="$successRate"/> | <xsl:with-param name="value" select="$successRate"/> | ||||
| @@ -660,7 +660,7 @@ h6 { | |||||
| <td><xsl:value-of select="sum($insamepackage/@tests)"/></td> | <td><xsl:value-of select="sum($insamepackage/@tests)"/></td> | ||||
| <td><xsl:value-of select="sum($insamepackage/@errors)"/></td> | <td><xsl:value-of select="sum($insamepackage/@errors)"/></td> | ||||
| <td><xsl:value-of select="sum($insamepackage/@failures)"/></td> | <td><xsl:value-of select="sum($insamepackage/@failures)"/></td> | ||||
| <td><xsl:value-of select="sum($insamepackage/@skipped)"/></td> | |||||
| <td><xsl:value-of select="sum($insamepackage/@skipped)" /></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-time"> | <xsl:call-template name="display-time"> | ||||
| <xsl:with-param name="value" select="sum($insamepackage/@time)"/> | <xsl:with-param name="value" select="sum($insamepackage/@time)"/> | ||||
| @@ -3,8 +3,8 @@ | |||||
| xmlns:lxslt="http://xml.apache.org/xslt" | xmlns:lxslt="http://xml.apache.org/xslt" | ||||
| xmlns:string="xalan://java.lang.String"> | xmlns:string="xalan://java.lang.String"> | ||||
| <xsl:output method="html" indent="yes" encoding="UTF-8" | <xsl:output method="html" indent="yes" encoding="UTF-8" | ||||
| doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" /> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <!-- | <!-- | ||||
| Licensed to the Apache Software Foundation (ASF) under one or more | Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| contributor license agreements. See the NOTICE file distributed with | contributor license agreements. See the NOTICE file distributed with | ||||
| @@ -164,7 +164,7 @@ | |||||
| <xsl:variable name="testCount" select="sum($testsuites-in-package/@tests)"/> | <xsl:variable name="testCount" select="sum($testsuites-in-package/@tests)"/> | ||||
| <xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/> | <xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/> | ||||
| <xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/> | <xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/> | ||||
| <xsl:variable name="skippedCount" select="sum($testsuites-in-package/@skipped)"/> | |||||
| <xsl:variable name="skippedCount" select="sum($testsuites-in-package/@skipped)" /> | |||||
| <xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/> | <xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/> | ||||
| <!-- write a summary for the package --> | <!-- write a summary for the package --> | ||||
| @@ -180,7 +180,7 @@ | |||||
| <td><xsl:value-of select="$testCount"/></td> | <td><xsl:value-of select="$testCount"/></td> | ||||
| <td><xsl:value-of select="$errorCount"/></td> | <td><xsl:value-of select="$errorCount"/></td> | ||||
| <td><xsl:value-of select="$failureCount"/></td> | <td><xsl:value-of select="$failureCount"/></td> | ||||
| <td><xsl:value-of select="$skippedCount"/></td> | |||||
| <td><xsl:value-of select="$skippedCount" /></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-time"> | <xsl:call-template name="display-time"> | ||||
| <xsl:with-param name="value" select="$timeCount"/> | <xsl:with-param name="value" select="$timeCount"/> | ||||
| @@ -255,7 +255,7 @@ | |||||
| <xsl:variable name="testCount" select="sum(testsuite/@tests)"/> | <xsl:variable name="testCount" select="sum(testsuite/@tests)"/> | ||||
| <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/> | <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/> | ||||
| <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/> | <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/> | ||||
| <xsl:variable name="skippedCount" select="sum(testsuite/@skipped)"/> | |||||
| <xsl:variable name="skippedCount" select="sum(testsuite/@skipped)" /> | |||||
| <xsl:variable name="timeCount" select="sum(testsuite/@time)"/> | <xsl:variable name="timeCount" select="sum(testsuite/@time)"/> | ||||
| <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/> | <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/> | ||||
| <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%"> | ||||
| @@ -277,7 +277,7 @@ | |||||
| <td><xsl:value-of select="$testCount"/></td> | <td><xsl:value-of select="$testCount"/></td> | ||||
| <td><xsl:value-of select="$failureCount"/></td> | <td><xsl:value-of select="$failureCount"/></td> | ||||
| <td><xsl:value-of select="$errorCount"/></td> | <td><xsl:value-of select="$errorCount"/></td> | ||||
| <td><xsl:value-of select="$skippedCount"/></td> | |||||
| <td><xsl:value-of select="$skippedCount" /></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-percent"> | <xsl:call-template name="display-percent"> | ||||
| <xsl:with-param name="value" select="$successRate"/> | <xsl:with-param name="value" select="$successRate"/> | ||||
| @@ -376,7 +376,7 @@ | |||||
| <td><xsl:value-of select="@tests"/></td> | <td><xsl:value-of select="@tests"/></td> | ||||
| <td><xsl:value-of select="@errors"/></td> | <td><xsl:value-of select="@errors"/></td> | ||||
| <td><xsl:value-of select="@failures"/></td> | <td><xsl:value-of select="@failures"/></td> | ||||
| <td><xsl:value-of select="@skipped"/></td> | |||||
| <td><xsl:value-of select="@skipped" /></td> | |||||
| <td> | <td> | ||||
| <xsl:call-template name="display-time"> | <xsl:call-template name="display-time"> | ||||
| <xsl:with-param name="value" select="@time"/> | <xsl:with-param name="value" select="@time"/> | ||||
| @@ -405,8 +405,8 @@ | |||||
| <td><xsl:apply-templates select="error"/></td> | <td><xsl:apply-templates select="error"/></td> | ||||
| </xsl:when> | </xsl:when> | ||||
| <xsl:when test="skipped"> | <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:when> | ||||
| <xsl:otherwise> | <xsl:otherwise> | ||||
| <td>Success</td> | <td>Success</td> | ||||
| @@ -16,18 +16,18 @@ | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| See the License for the specific language governing permissions and | See the License for the specific language governing permissions and | ||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <!-- | <!-- | ||||
| The purpose have this XSL is to provide a nice way to look at the output | The purpose have this XSL is to provide a nice way to look at the output | ||||
| from the Ant XmlLogger (ie: ant -listener org.apache.tools.ant.XmlLogger) | |||||
| from the Ant XmlLogger (ie: ant -listener org.apache.tools.ant.XmlLogger ) | |||||
| @author <a href="mailto:sbailliez@apache.org">Stephane Bailliez</a> | @author <a href="mailto:sbailliez@apache.org">Stephane Bailliez</a> | ||||
| --> | --> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <xsl:template match="/"> | <xsl:template match="/"> | ||||
| <html> | <html> | ||||
| @@ -75,10 +75,10 @@ | |||||
| color:#FFFFFF; | color:#FFFFFF; | ||||
| font-weight: bold | font-weight: bold | ||||
| } | } | ||||
| .a td { | |||||
| .a td { | |||||
| background: #efefef; | background: #efefef; | ||||
| } | } | ||||
| .b td { | |||||
| .b td { | |||||
| background: #fff; | background: #fff; | ||||
| } | } | ||||
| th, td { | th, td { | ||||
| @@ -118,7 +118,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table border="0" width="100%"> | <table border="0" width="100%"> | ||||
| <tr><td><hr noshade="yes" size="1"/></td></tr> | <tr><td><hr noshade="yes" size="1"/></td></tr> | ||||
| </table> | </table> | ||||
| @@ -138,7 +138,7 @@ | |||||
| </xsl:attribute> | </xsl:attribute> | ||||
| <tr> | <tr> | ||||
| <xsl:if test="@error"> | <xsl:if test="@error"> | ||||
| <td nowrap="yes">Build Failed</td> | |||||
| <td nowrap="yes">Build Failed</td> | |||||
| </xsl:if> | </xsl:if> | ||||
| <xsl:if test="not(@error)"> | <xsl:if test="not(@error)"> | ||||
| <td nowrap="yes">Build Complete</td> | <td nowrap="yes">Build Complete</td> | ||||
| @@ -4,7 +4,7 @@ | |||||
| xmlns:redirect="org.apache.xalan.lib.Redirect" | xmlns:redirect="org.apache.xalan.lib.Redirect" | ||||
| extension-element-prefixes="redirect"> | extension-element-prefixes="redirect"> | ||||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <!-- | <!-- | ||||
| Licensed to the Apache Software Foundation (ASF) under one or more | Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| contributor license agreements. See the NOTICE file distributed with | contributor license agreements. See the NOTICE file distributed with | ||||
| @@ -6,7 +6,7 @@ | |||||
| exclude-result-prefixes="xalan" | exclude-result-prefixes="xalan" | ||||
| extension-element-prefixes="redirect"> | extension-element-prefixes="redirect"> | ||||
| <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | <xsl:output method="html" indent="yes" encoding="US-ASCII"/> | ||||
| <xsl:decimal-format decimal-separator="." grouping-separator=","/> | |||||
| <xsl:decimal-format decimal-separator="." grouping-separator="," /> | |||||
| <!-- | <!-- | ||||
| Licensed to the Apache Software Foundation (ASF) under one or more | Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| contributor license agreements. See the NOTICE file distributed with | contributor license agreements. See the NOTICE file distributed with | ||||
| @@ -28,7 +28,7 @@ | |||||
| ANT_HOME_6_5 (the directory containing ant 1.6.5) | ANT_HOME_6_5 (the directory containing ant 1.6.5) | ||||
| ANT_HOME_6_4 | ANT_HOME_6_4 | ||||
| ANT_HOME_5_4 | ANT_HOME_5_4 | ||||
| * run ant | * run ant | ||||
| For example: | For example: | ||||
| export ANT_HOME="c:/cygwin/home/me/svn/trunk/dist" | export ANT_HOME="c:/cygwin/home/me/svn/trunk/dist" | ||||
| @@ -63,7 +63,7 @@ | |||||
| </ac:if> | </ac:if> | ||||
| </sequential> | </sequential> | ||||
| </macrodef> | </macrodef> | ||||
| <target name="do-times"> | <target name="do-times"> | ||||
| <run-ant-files env-ant="env.ANT_HOME"/> | <run-ant-files env-ant="env.ANT_HOME"/> | ||||
| <run-ant-files env-ant="env.ANT_HOME_6_5"/> | <run-ant-files env-ant="env.ANT_HOME_6_5"/> | ||||
| @@ -57,8 +57,8 @@ | |||||
| <target name="prepare-setup"> | <target name="prepare-setup"> | ||||
| <mkdir dir="${test.dir}/src/org/apache/tools/ant"/> | <mkdir dir="${test.dir}/src/org/apache/tools/ant"/> | ||||
| <mkdir dir="${test.dir}/dest"/> | <mkdir dir="${test.dir}/dest"/> | ||||
| <echo file="${test.dir}/src/org/apache/tools/ant/DirscannerSetup.java"> | |||||
| <![CDATA[ | |||||
| <echo file="${test.dir}/src/org/apache/tools/ant/DirscannerSetup.java" | |||||
| ><![CDATA[ | |||||
| /* | /* | ||||
| * Licensed to the Apache Software Foundation (ASF) under one or more | * Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| * contributor license agreements. See the NOTICE file distributed with | * contributor license agreements. See the NOTICE file distributed with | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-apache-log4j</artifactId> | <artifactId>ant-apache-log4j</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -66,5 +66,5 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory> | <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory> | ||||
| <directory>../../../../target/${project.artifactId}</directory> | <directory>../../../../target/${project.artifactId}</directory> | ||||
| </build> | </build> | ||||
| </project> | </project> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-apache-xalan2</artifactId> | <artifactId>ant-apache-xalan2</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -68,7 +68,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <include name="junit-frames.xsl"/> | <include name="junit-frames.xsl"/> | ||||
| <include name="junit-noframes.xsl"/> | <include name="junit-noframes.xsl"/> | ||||
| </fileset> | </fileset> | ||||
| </copy> | |||||
| </copy> | |||||
| </tasks> | </tasks> | ||||
| </configuration> | </configuration> | ||||
| </execution> | </execution> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-javamail</artifactId> | <artifactId>ant-javamail</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -56,7 +56,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.1.1</version> | <version>1.1.1</version> | ||||
| <scope>compile</scope> | <scope>compile</scope> | ||||
| </dependency> | </dependency> | ||||
| </dependencies> | |||||
| </dependencies> | |||||
| <build> | <build> | ||||
| <plugins> | <plugins> | ||||
| <plugin> | <plugin> | ||||
| @@ -30,7 +30,7 @@ | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-jdepend</artifactId> | <artifactId>ant-jdepend</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-jmf</artifactId> | <artifactId>ant-jmf</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-jsch</artifactId> | <artifactId>ant-jsch</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-junit</artifactId> | <artifactId>ant-junit</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -68,7 +68,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <include name="junit-frames.xsl"/> | <include name="junit-frames.xsl"/> | ||||
| <include name="junit-noframes.xsl"/> | <include name="junit-noframes.xsl"/> | ||||
| </fileset> | </fileset> | ||||
| </copy> | |||||
| </copy> | |||||
| </tasks> | </tasks> | ||||
| </configuration> | </configuration> | ||||
| </execution> | </execution> | ||||
| @@ -20,7 +20,7 @@ | |||||
| Please contact us if you are not satisfied with the data contained in this POM. | Please contact us if you are not satisfied with the data contained in this POM. | ||||
| URL : http://ant.apache.org | URL : http://ant.apache.org | ||||
| --> | --> | ||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||
| <parent> | <parent> | ||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| @@ -29,7 +29,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-netrexx</artifactId> | <artifactId>ant-netrexx</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -30,7 +30,7 @@ | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-swing</artifactId> | <artifactId>ant-swing</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -62,5 +62,5 @@ | |||||
| <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory> | <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory> | ||||
| <directory>../../../../target/${project.artifactId}</directory> | <directory>../../../../target/${project.artifactId}</directory> | ||||
| </build> | </build> | ||||
| </project> | </project> | ||||
| @@ -30,7 +30,7 @@ | |||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| </parent> | </parent> | ||||
| <modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
| <url>http://ant.apache.org/</url> | |||||
| <url>http://ant.apache.org/</url> | |||||
| <groupId>org.apache.ant</groupId> | <groupId>org.apache.ant</groupId> | ||||
| <artifactId>ant-testutil</artifactId> | <artifactId>ant-testutil</artifactId> | ||||
| <version>1.9.13-SNAPSHOT</version> | <version>1.9.13-SNAPSHOT</version> | ||||
| @@ -70,5 +70,5 @@ | |||||
| <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory> | <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory> | ||||
| <directory>../../../../target/${project.artifactId}</directory> | <directory>../../../../target/${project.artifactId}</directory> | ||||
| </build> | </build> | ||||
| </project> | </project> | ||||
| @@ -56,10 +56,10 @@ | |||||
| font-family: verdana,arial,helvetica; | font-family: verdana,arial,helvetica; | ||||
| font-size: 80%; | font-size: 80%; | ||||
| background:#eeeee0; | background:#eeeee0; | ||||
| } | |||||
| </style> | |||||
| } | |||||
| </style> | |||||
| </head> | </head> | ||||
| <body link="#000000" alink="#000000" vlink="#000000" text="#000000"> | |||||
| <body link="#000000" alink="#000000" vlink="#000000" text="#000000"> | |||||
| <h1> | <h1> | ||||
| <a name="top"><xsl:value-of select="$title"/></a> | <a name="top"><xsl:value-of select="$title"/></a> | ||||
| </h1> | </h1> | ||||
| @@ -97,7 +97,7 @@ | |||||
| <xsl:with-param name="entries" select=".//entry[not(file/revision)][file/prevrevision]"/> | <xsl:with-param name="entries" select=".//entry[not(file/revision)][file/prevrevision]"/> | ||||
| </xsl:call-template> | </xsl:call-template> | ||||
| </table> | </table> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| </xsl:template> | </xsl:template> | ||||
| @@ -125,7 +125,7 @@ | |||||
| </ul> | </ul> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </xsl:template> | |||||
| </xsl:template> | |||||
| <xsl:template match="entry"> | <xsl:template match="entry"> | ||||
| <xsl:apply-templates select="file"/> | <xsl:apply-templates select="file"/> | ||||
| @@ -151,18 +151,18 @@ | |||||
| <xsl:template match="file"> | <xsl:template match="file"> | ||||
| <li> | <li> | ||||
| <a target="_new"> | <a target="_new"> | ||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module"/>/<xsl:value-of select="name"/></xsl:attribute> | |||||
| <xsl:value-of select="name"/> | |||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" /></xsl:attribute> | |||||
| <xsl:value-of select="name" /> | |||||
| </a> | </a> | ||||
| <xsl:if test="string-length(prevrevision) > 0 or string-length(revision) > 0"> | <xsl:if test="string-length(prevrevision) > 0 or string-length(revision) > 0"> | ||||
| <xsl:text> </xsl:text> | <xsl:text> </xsl:text> | ||||
| <a target="_new"> | <a target="_new"> | ||||
| <xsl:choose> | <xsl:choose> | ||||
| <xsl:when test="string-length(prevrevision) = 0 "> | <xsl:when test="string-length(prevrevision) = 0 "> | ||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module"/>/<xsl:value-of select="name"/>?rev=<xsl:value-of select="revision"/>&content-type=text/x-cvsweb-markup</xsl:attribute> | |||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?rev=<xsl:value-of select="revision" />&content-type=text/x-cvsweb-markup</xsl:attribute> | |||||
| </xsl:when> | </xsl:when> | ||||
| <xsl:otherwise> | <xsl:otherwise> | ||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module"/>/<xsl:value-of select="name"/>?r1=<xsl:value-of select="revision"/>&r2=<xsl:value-of select="prevrevision"/>&diff_format=h</xsl:attribute> | |||||
| <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?r1=<xsl:value-of select="revision" />&r2=<xsl:value-of select="prevrevision"/>&diff_format=h</xsl:attribute> | |||||
| </xsl:otherwise> | </xsl:otherwise> | ||||
| </xsl:choose> (<xsl:if test="count(prevrevision) > 0"> <xsl:value-of select="prevrevision"/> --> </xsl:if> <xsl:value-of select="revision"/>) | </xsl:choose> (<xsl:if test="count(prevrevision) > 0"> <xsl:value-of select="prevrevision"/> --> </xsl:if> <xsl:value-of select="revision"/>) | ||||
| </a> | </a> | ||||
| @@ -175,5 +175,5 @@ | |||||
| <xsl:template match="msg"> | <xsl:template match="msg"> | ||||
| <b><xsl:apply-templates/></b> | <b><xsl:apply-templates/></b> | ||||
| </xsl:template> | </xsl:template> | ||||
| </xsl:stylesheet> | </xsl:stylesheet> | ||||
| @@ -7,5 +7,5 @@ | |||||
| <delete dir="${input}"/> | <delete dir="${input}"/> | ||||
| <delete dir="${output}"/> | <delete dir="${output}"/> | ||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -29,7 +29,7 @@ | |||||
| <touch file="${output}/delta/delta.xml"/> | <touch file="${output}/delta/delta.xml"/> | ||||
| </target> | </target> | ||||
| <target name="children-of-excluded-dir-setup" depends="extended-setup"/> | |||||
| <target name="children-of-excluded-dir-setup" depends="extended-setup" /> | |||||
| <target name="symlink-setup" depends="setUp"> | <target name="symlink-setup" depends="setUp"> | ||||
| <mkdir dir="${output}/epsilon/gamma"/> | <mkdir dir="${output}/epsilon/gamma"/> | ||||
| @@ -19,14 +19,14 @@ | |||||
| <project name="dispatch-test" default="disp"> | <project name="dispatch-test" default="disp"> | ||||
| <path id="testclasses"> | <path id="testclasses"> | ||||
| <pathelement location="../../../../build/testcases"/> | |||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement location="../../../../build/testcases" /> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <target name="disp"> | <target name="disp"> | ||||
| <taskdef name="disptask" | <taskdef name="disptask" | ||||
| classname="org.apache.tools.ant.taskdefs.PickOneTask"> | classname="org.apache.tools.ant.taskdefs.PickOneTask"> | ||||
| <classpath refid="testclasses"/> | |||||
| <classpath refid="testclasses" /> | |||||
| </taskdef> | </taskdef> | ||||
| <disptask action="list"/> | <disptask action="list"/> | ||||
| </target> | </target> | ||||
| @@ -18,7 +18,7 @@ | |||||
| <project> | <project> | ||||
| <target name="foo"> | <target name="foo"> | ||||
| <echo>foo</echo> | <echo>foo</echo> | ||||
| <fail if="failfoo" message="failfoo"/> | |||||
| <fail if="failfoo" message="failfoo" /> | |||||
| </target> | </target> | ||||
| <target name="a" depends="foo"> | <target name="a" depends="foo"> | ||||
| <echo>a</echo> | <echo>a</echo> | ||||
| @@ -24,7 +24,7 @@ | |||||
| <property name="src" value="Foo.java"/> | <property name="src" value="Foo.java"/> | ||||
| <property name="taskdefs" value="tasks.properties"/> | <property name="taskdefs" value="tasks.properties"/> | ||||
| <target name="write"> | |||||
| <target name="write" > | |||||
| <echo file="${src}"> | <echo file="${src}"> | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| @@ -67,7 +67,7 @@ | |||||
| <fileset dir="${basedir}" | <fileset dir="${basedir}" | ||||
| includes="${src},*.class"/> | includes="${src},*.class"/> | ||||
| </delete> | </delete> | ||||
| <delete file="${taskdefs}"/> | |||||
| <delete file="${taskdefs}" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -56,19 +56,19 @@ | |||||
| <target name="test7"> | <target name="test7"> | ||||
| <property name="test" value="original"/> | <property name="test" value="original"/> | ||||
| <pathconvert targetos="unix" property="test"> | |||||
| <pathconvert targetos="unix" property="test" > | |||||
| <path> | <path> | ||||
| <pathelement location="/lib/weblogicaux.jar"/> | |||||
| <pathelement location="/classes"/> | |||||
| <pathelement location="/mssqlserver4/classes"/> | |||||
| <pathelement location="c:\winnt\System32"/> | |||||
| <pathelement location="/lib/weblogicaux.jar" /> | |||||
| <pathelement location="/classes" /> | |||||
| <pathelement location="/mssqlserver4/classes" /> | |||||
| <pathelement location="c:\winnt\System32" /> | |||||
| </path> | </path> | ||||
| </pathconvert> | </pathconvert> | ||||
| </target> | </target> | ||||
| <target name="test8"> | <target name="test8"> | ||||
| <antcall inheritAll="false" target="echo-target"> | <antcall inheritAll="false" target="echo-target"> | ||||
| <param name="echo.value" value="Meep meep!"/> | |||||
| <param name="echo.value" value="Meep meep!" /> | |||||
| </antcall> | </antcall> | ||||
| </target> | </target> | ||||
| @@ -36,7 +36,7 @@ This build file is intended to be used for testing Ant | |||||
| <javac srcdir="${src.dir}" destdir="${output}"/> | <javac srcdir="${src.dir}" destdir="${output}"/> | ||||
| </target> | </target> | ||||
| <target name="testbadref" depends="compile"> | |||||
| <target name="testbadref" depends="compile" > | |||||
| <taskdef loaderref="loaderref-test" | <taskdef loaderref="loaderref-test" | ||||
| name="test1" | name="test1" | ||||
| classname="Test1" | classname="Test1" | ||||
| @@ -37,11 +37,11 @@ | |||||
| <target name="define"> | <target name="define"> | ||||
| <property name="testclasses" | <property name="testclasses" | ||||
| location="../../../../build/testcases"/> | |||||
| location="../../../../build/testcases" /> | |||||
| <taskdef name="echoloc" | <taskdef name="echoloc" | ||||
| classname="org.apache.tools.ant.LocationTest$EchoLocation"> | classname="org.apache.tools.ant.LocationTest$EchoLocation"> | ||||
| <classpath> | <classpath> | ||||
| <pathelement location="${testclasses}"/> | |||||
| <pathelement location="${testclasses}" /> | |||||
| <pathelement path="${java.class.path}"/> | <pathelement path="${java.class.path}"/> | ||||
| </classpath> | </classpath> | ||||
| </taskdef> | </taskdef> | ||||
| @@ -71,4 +71,4 @@ | |||||
| <echoloc3/> | <echoloc3/> | ||||
| </target> | </target> | ||||
| </project> | |||||
| </project> | |||||
| @@ -18,11 +18,11 @@ | |||||
| <project default="dont-run-this"> | <project default="dont-run-this"> | ||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="dont-run-this"> | <target name="dont-run-this"> | ||||
| <fail>This build file is supposed to be run by a Unit test</fail> | <fail>This build file is supposed to be run by a Unit test</fail> | ||||
| </target> | </target> | ||||
| <target name="testPropertyExpansion"> | <target name="testPropertyExpansion"> | ||||
| <sequential> | <sequential> | ||||
| @@ -36,7 +36,7 @@ | |||||
| <mkdir dir="${output}"/> | <mkdir dir="${output}"/> | ||||
| <javac srcdir="containersrc" destdir="${output}" debug="on"/> | <javac srcdir="containersrc" destdir="${output}" debug="on"/> | ||||
| <sequential> | |||||
| <sequential> | |||||
| <taskdef name="sseq" classpath="${output}" classname="test.SpecialSeq"/> | <taskdef name="sseq" classpath="${output}" classname="test.SpecialSeq"/> | ||||
| <sseq> | <sseq> | ||||
| <fileset dir="."/> | <fileset dir="."/> | ||||
| @@ -49,14 +49,14 @@ | |||||
| </target> | </target> | ||||
| <target name="testCaseInsensitive"> | <target name="testCaseInsensitive"> | ||||
| <taskdef name="Prattle" classname="org.apache.tools.ant.taskdefs.Echo"/> | |||||
| <taskdef name="Seq" | |||||
| classname="org.apache.tools.ant.taskdefs.Sequential"/> | |||||
| <Prattle>hello</Prattle> | |||||
| <Seq> | |||||
| <Prattle> world</Prattle> | |||||
| </Seq> | |||||
| </target> | |||||
| <taskdef name="Prattle" classname="org.apache.tools.ant.taskdefs.Echo"/> | |||||
| <taskdef name="Seq" | |||||
| classname="org.apache.tools.ant.taskdefs.Sequential"/> | |||||
| <Prattle>hello</Prattle> | |||||
| <Seq> | |||||
| <Prattle> world</Prattle> | |||||
| </Seq> | |||||
| </target> | |||||
| </project> | </project> | ||||
| @@ -16,6 +16,6 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project default="foo"> | <project default="foo"> | ||||
| <echo message="Called"/> | |||||
| <target name="foo"/> | |||||
| <echo message="Called" /> | |||||
| <target name="foo" /> | |||||
| </project> | </project> | ||||
| @@ -17,6 +17,6 @@ | |||||
| --> | --> | ||||
| <project basedir="." default="foo"> | <project basedir="." default="foo"> | ||||
| <target name="foo"> | <target name="foo"> | ||||
| <ant antfile="notarget.xml"/> | |||||
| <ant antfile="notarget.xml" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -16,6 +16,6 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project basedir="." default="foo"> | <project basedir="." default="foo"> | ||||
| <ant antfile="notarget.xml"/> | |||||
| <target name="foo"/> | |||||
| <ant antfile="notarget.xml" /> | |||||
| <target name="foo" /> | |||||
| </project> | </project> | ||||
| @@ -17,7 +17,7 @@ | |||||
| --> | --> | ||||
| <project> | <project> | ||||
| <target name="testMaybeConfigure"> | <target name="testMaybeConfigure"> | ||||
| <taskdef name="parent" | |||||
| <taskdef name="parent" | |||||
| classname="org.apache.tools.ant.UnknownElementTest$Parent" | classname="org.apache.tools.ant.UnknownElementTest$Parent" | ||||
| loaderref="unknown.id"> | loaderref="unknown.id"> | ||||
| <classpath> | <classpath> | ||||
| @@ -18,7 +18,7 @@ | |||||
| <project default="tearDown" basedir="."> | <project default="tearDown" basedir="."> | ||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| @@ -34,7 +34,7 @@ | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="testNegateLineContains" depends="setUp"> | <target name="testNegateLineContains" depends="setUp"> | ||||
| <copy file="input/linecontains.test" | <copy file="input/linecontains.test" | ||||
| tofile="${output}/negatelinecontains.test"> | tofile="${output}/negatelinecontains.test"> | ||||
| @@ -49,12 +49,12 @@ | |||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <filesmatch file1="${output}/negatelinecontains.test" | <filesmatch file1="${output}/negatelinecontains.test" | ||||
| file2="expected/negatelinecontains.test"/> | |||||
| file2="expected/negatelinecontains.test" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="testEscapeUnicode" depends="setUp"> | <target name="testEscapeUnicode" depends="setUp"> | ||||
| <copy todir="${output}" encoding="UTF-8"> | <copy todir="${output}" encoding="UTF-8"> | ||||
| <fileset dir="input"> | <fileset dir="input"> | ||||
| @@ -71,16 +71,16 @@ | |||||
| <target name="testStripJavaComments" depends="setUp"> | <target name="testStripJavaComments" depends="setUp"> | ||||
| <copy todir="${output}"> | <copy todir="${output}"> | ||||
| <fileset dir="input" includes="stripjavacomments.test"/> | |||||
| <fileset dir="input" includes="stripjavacomments.test" /> | |||||
| <filterchain> | <filterchain> | ||||
| <filterreader classname="org.apache.tools.ant.filters.StripJavaComments"/> | |||||
| <filterreader classname="org.apache.tools.ant.filters.StripJavaComments" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="testReplaceTokens" depends="setUp"> | <target name="testReplaceTokens" depends="setUp"> | ||||
| <copy todir="${output}"> | <copy todir="${output}"> | ||||
| <fileset dir="input" includes="replacetokens.test"/> | |||||
| <fileset dir="input" includes="replacetokens.test" /> | |||||
| <filterchain> | <filterchain> | ||||
| <replacetokens> | <replacetokens> | ||||
| <token key="foo" value=""/> | <token key="foo" value=""/> | ||||
| @@ -91,18 +91,18 @@ | |||||
| <target name="testReplaceTokensPropertyFile" depends="setUp"> | <target name="testReplaceTokensPropertyFile" depends="setUp"> | ||||
| <copy tofile="${output}/replacetokensPropertyFile.test"> | <copy tofile="${output}/replacetokensPropertyFile.test"> | ||||
| <fileset dir="input" includes="replacetokens.test"/> | |||||
| <fileset dir="input" includes="replacetokens.test" /> | |||||
| <filterchain> | <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"/> | <param type="propertiesfile" value="${basedir}/input/sample.properties"/> | ||||
| </filterreader> | |||||
| </filterreader> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="testReplaceTokensDoubleEncoded" depends="setUp"> | <target name="testReplaceTokensDoubleEncoded" depends="setUp"> | ||||
| <copy todir="${output}"> | <copy todir="${output}"> | ||||
| <fileset dir="input" includes="replacetokens.double.test"/> | |||||
| <fileset dir="input" includes="replacetokens.double.test" /> | |||||
| <filterchain> | <filterchain> | ||||
| <replacetokens> | <replacetokens> | ||||
| <token key="foo" value=""/> | <token key="foo" value=""/> | ||||
| @@ -113,7 +113,7 @@ | |||||
| <target name="testReplaceTokensDoubleEncodedToSimple" depends="setUp"> | <target name="testReplaceTokensDoubleEncodedToSimple" depends="setUp"> | ||||
| <copy todir="${output}"> | <copy todir="${output}"> | ||||
| <fileset dir="input" includes="replacetokens.double.test"/> | |||||
| <fileset dir="input" includes="replacetokens.double.test" /> | |||||
| <filterchain> | <filterchain> | ||||
| <replacetokens begintoken="@@" endtoken="@@"> | <replacetokens begintoken="@@" endtoken="@@"> | ||||
| <token key="foo" value=""/> | <token key="foo" value=""/> | ||||
| @@ -124,7 +124,7 @@ | |||||
| <target name="testReplaceTokensMustacheStyle" depends="setUp"> | <target name="testReplaceTokensMustacheStyle" depends="setUp"> | ||||
| <copy todir="${output}"> | <copy todir="${output}"> | ||||
| <fileset dir="input" includes="replacetokens.mustache.test"/> | |||||
| <fileset dir="input" includes="replacetokens.mustache.test" /> | |||||
| <filterchain> | <filterchain> | ||||
| <replacetokens begintoken="{{" endtoken="}}"> | <replacetokens begintoken="{{" endtoken="}}"> | ||||
| <token key="foo" value=""/> | <token key="foo" value=""/> | ||||
| @@ -20,7 +20,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| <echo file="${output}/prepend.txt" message="this-should-be-the-first-line${line.separator}"/> | <echo file="${output}/prepend.txt" message="this-should-be-the-first-line${line.separator}"/> | ||||
| <echo file="${output}/append.txt" message="this-should-be-the-last-line${line.separator}"/> | <echo file="${output}/append.txt" message="this-should-be-the-last-line${line.separator}"/> | ||||
| <copy file="input/head-tail.test" tofile="${output}/concatfilter.test"/> | <copy file="input/head-tail.test" tofile="${output}/concatfilter.test"/> | ||||
| @@ -20,20 +20,20 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="dynamicfilter"> | <target name="dynamicfilter"> | ||||
| <path id="test-classes"> | <path id="test-classes"> | ||||
| <pathelement location="../../../../build/testcases"/> | |||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement location="../../../../build/testcases" /> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <typedef | |||||
| name="customfilter" | |||||
| <typedef | |||||
| name="customfilter" | |||||
| classname="org.apache.tools.ant.filters.DynamicFilterTest$CustomFilter"> | classname="org.apache.tools.ant.filters.DynamicFilterTest$CustomFilter"> | ||||
| <classpath refid="test-classes"/> | <classpath refid="test-classes"/> | ||||
| </typedef> | </typedef> | ||||
| <concat destfile="${output}/input"> | <concat destfile="${output}/input"> | ||||
| hello world | hello world | ||||
| </concat> | </concat> | ||||
| @@ -20,7 +20,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| @@ -59,7 +59,7 @@ | |||||
| </target> | </target> | ||||
| <target name="testFilterReaderHeadLinesSkip" depends="setUp"> | <target name="testFilterReaderHeadLinesSkip" depends="setUp"> | ||||
| <copy file="input/head-tail.test" | |||||
| <copy file="input/head-tail.test" | |||||
| tofile="${output}/head-tail.filterReaderHeadLinesSkip.test"> | tofile="${output}/head-tail.filterReaderHeadLinesSkip.test"> | ||||
| <filterchain> | <filterchain> | ||||
| <filterreader classname="org.apache.tools.ant.filters.HeadFilter"> | <filterreader classname="org.apache.tools.ant.filters.HeadFilter"> | ||||
| @@ -113,7 +113,7 @@ | |||||
| </target> | </target> | ||||
| <target name="testFilterReaderTailLinesSkip" depends="setUp"> | <target name="testFilterReaderTailLinesSkip" depends="setUp"> | ||||
| <copy file="input/head-tail.test" | |||||
| <copy file="input/head-tail.test" | |||||
| tofile="${output}/head-tail.filterReaderTailLinesSkip.test"> | tofile="${output}/head-tail.filterReaderTailLinesSkip.test"> | ||||
| <filterchain> | <filterchain> | ||||
| <filterreader classname="org.apache.tools.ant.filters.TailFilter"> | <filterreader classname="org.apache.tools.ant.filters.TailFilter"> | ||||
| @@ -20,7 +20,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="tokenfilter"> | <target name="tokenfilter"> | ||||
| @@ -34,7 +34,7 @@ | |||||
| <target name="trimignore"> | <target name="trimignore"> | ||||
| <concat destfile="${output}/input"> | <concat destfile="${output}/input"> | ||||
| Hello | Hello | ||||
| World | World | ||||
| </concat> | </concat> | ||||
| <copy file="${output}/input" tofile="${output}/output" overwrite="yes"> | <copy file="${output}/input" tofile="${output}/output" overwrite="yes"> | ||||
| @@ -314,17 +314,17 @@ | |||||
| <target name="customtokenfilter"> | <target name="customtokenfilter"> | ||||
| <path id="test-classes"> | <path id="test-classes"> | ||||
| <pathelement location="../../../../build/testcases"/> | |||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement location="../../../../build/testcases" /> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <typedef | |||||
| name="capitalize" | |||||
| <typedef | |||||
| name="capitalize" | |||||
| classname="org.apache.tools.ant.filters.TokenFilterTest$Capitalize"> | classname="org.apache.tools.ant.filters.TokenFilterTest$Capitalize"> | ||||
| <classpath refid="test-classes"/> | <classpath refid="test-classes"/> | ||||
| </typedef> | </typedef> | ||||
| <concat destfile="${output}/input"> | <concat destfile="${output}/input"> | ||||
| hello world | hello world | ||||
| </concat> | </concat> | ||||
| @@ -344,14 +344,14 @@ | |||||
| i = 1; | i = 1; | ||||
| </script> | </script> | ||||
| </target> | </target> | ||||
| <target name="hasregex"> | <target name="hasregex"> | ||||
| <concat destfile="${output}/replaceregexp"> | <concat destfile="${output}/replaceregexp"> | ||||
| hello world | hello world | ||||
| </concat> | </concat> | ||||
| <replaceregexp file="${output}/replaceregexp" | <replaceregexp file="${output}/replaceregexp" | ||||
| match="hello( )world" | |||||
| replace="bye\1world"/> | |||||
| match="hello( )world" | |||||
| replace="bye\1world"/> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -16,7 +16,7 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project name="abstractcvstask-test" basedir="../../../../" | |||||
| <project name="abstractcvstask-test" basedir="../../../../" | |||||
| default="tearDown"> | default="tearDown"> | ||||
| <import file="../buildfiletest-base.xml" optional="false"/> | <import file="../buildfiletest-base.xml" optional="false"/> | ||||
| @@ -29,7 +29,7 @@ | |||||
| <cvs cvsroot="anoncvs@anoncvs.ca.openbsd.org:/cvs" | <cvs cvsroot="anoncvs@anoncvs.ca.openbsd.org:/cvs" | ||||
| package="src/Makefile" | package="src/Makefile" | ||||
| dest="${output}" | dest="${output}" | ||||
| quiet="true"/> | |||||
| quiet="true" /> | |||||
| </target> | </target> | ||||
| <target name="tag-attribute"> | <target name="tag-attribute"> | ||||
| @@ -37,7 +37,7 @@ | |||||
| package="src/Makefile" | package="src/Makefile" | ||||
| dest="${output}" | dest="${output}" | ||||
| quiet="true" | quiet="true" | ||||
| tag="OPENBSD_5_3"/> | |||||
| tag="OPENBSD_5_3" /> | |||||
| <cvs cvsroot="anoncvs@anoncvs.ca.openbsd.org:/cvs" | <cvs cvsroot="anoncvs@anoncvs.ca.openbsd.org:/cvs" | ||||
| package="src/Makefile" | package="src/Makefile" | ||||
| dest="${output}" | dest="${output}" | ||||
| @@ -19,14 +19,14 @@ | |||||
| <project name="ant-test" basedir="." default="test1"> | <project name="ant-test" basedir="." default="test1"> | ||||
| <path id="inheritable"> | <path id="inheritable"> | ||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete file="test1.log"/> | |||||
| <delete file="test2.log"/> | |||||
| <delete file="ant/test3.log"/> | |||||
| <delete file="ant/test4.log"/> | |||||
| <delete file="test1.log" /> | |||||
| <delete file="test2.log" /> | |||||
| <delete file="ant/test3.log" /> | |||||
| <delete file="ant/test4.log" /> | |||||
| </target> | </target> | ||||
| <target name="all" depends="test1,test2,test3,test4"/> | <target name="all" depends="test1,test2,test3,test4"/> | ||||
| @@ -63,38 +63,38 @@ | |||||
| </target> | </target> | ||||
| <target name="inheritBasedir"> | <target name="inheritBasedir"> | ||||
| <ant antfile="ant/ant.xml" target="dummy" inheritAll="true"/> | |||||
| <ant antfile="ant/ant.xml" target="dummy" inheritAll="true" /> | |||||
| </target> | </target> | ||||
| <target name="doNotInheritBasedir"> | <target name="doNotInheritBasedir"> | ||||
| <ant antfile="ant/ant.xml" target="dummy" inheritAll="false"/> | |||||
| <ant antfile="ant/ant.xml" target="dummy" inheritAll="false" /> | |||||
| </target> | </target> | ||||
| <target name="explicitBasedir1"> | <target name="explicitBasedir1"> | ||||
| <ant antfile="taskdefs/ant/ant.xml" target="dummy" inheritAll="true" | |||||
| dir=".."/> | |||||
| <ant antfile="taskdefs/ant/ant.xml" target="dummy" inheritAll="true" | |||||
| dir=".." /> | |||||
| </target> | </target> | ||||
| <target name="explicitBasedir2"> | <target name="explicitBasedir2"> | ||||
| <ant antfile="taskdefs/ant/ant.xml" target="dummy" inheritAll="false" | |||||
| dir=".."/> | |||||
| <ant antfile="taskdefs/ant/ant.xml" target="dummy" inheritAll="false" | |||||
| dir=".." /> | |||||
| </target> | </target> | ||||
| <target name="tripleCall"> | <target name="tripleCall"> | ||||
| <ant antfile="ant/ant.xml" target="callback" inheritAll="false"/> | |||||
| <ant antfile="ant/ant.xml" target="callback" inheritAll="false" /> | |||||
| </target> | </target> | ||||
| <target name="testInherit"> | <target name="testInherit"> | ||||
| <ant antfile="ant/references.xml" inheritRefs="true" target="dummy"/> | |||||
| <ant antfile="ant/references.xml" inheritRefs="true" target="dummy" /> | |||||
| </target> | </target> | ||||
| <target name="testNoInherit"> | <target name="testNoInherit"> | ||||
| <ant antfile="ant/references.xml" inheritRefs="false" target="dummy"/> | |||||
| <ant antfile="ant/references.xml" inheritRefs="false" target="dummy" /> | |||||
| </target> | </target> | ||||
| <target name="testRename"> | <target name="testRename"> | ||||
| <ant antfile="ant/references.xml" inheritRefs="false" target="dummy"> | <ant antfile="ant/references.xml" inheritRefs="false" target="dummy"> | ||||
| <reference refid="path" torefid="newpath"/> | |||||
| <reference refid="path" torefid="newpath" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| @@ -107,71 +107,71 @@ | |||||
| <pathelement location="${rootdir}/test/testframework.jar"/> | <pathelement location="${rootdir}/test/testframework.jar"/> | ||||
| <path refid="project.classpath"/> | <path refid="project.classpath"/> | ||||
| </path> | </path> | ||||
| <ant antfile="ant/references.xml" target="testInheritPath"> | |||||
| <ant antfile="ant/references.xml" target="testInheritPath"> | |||||
| <reference refid="test.classpath"/> | <reference refid="test.classpath"/> | ||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="testLogfilePlacement"> | <target name="testLogfilePlacement"> | ||||
| <ant antfile="ant.xml" target="dummy" output="test1.log" | <ant antfile="ant.xml" target="dummy" output="test1.log" | ||||
| inheritall="false"/> | |||||
| <ant antfile="ant.xml" target="dummy" output="test2.log"/> | |||||
| inheritall="false" /> | |||||
| <ant antfile="ant.xml" target="dummy" output="test2.log" /> | |||||
| <ant antfile="ant.xml" target="dummy" output="test3.log" | <ant antfile="ant.xml" target="dummy" output="test3.log" | ||||
| inheritall="false" dir="ant"/> | |||||
| <ant antfile="ant.xml" target="dummy" output="test4.log" | |||||
| dir="ant"/> | |||||
| inheritall="false" dir="ant" /> | |||||
| <ant antfile="ant.xml" target="dummy" output="test4.log" | |||||
| dir="ant" /> | |||||
| </target> | </target> | ||||
| <target name="testRefid"> | <target name="testRefid"> | ||||
| <ant antfile="ant/references.xml" inheritRefs="false" target="dummy"> | <ant antfile="ant/references.xml" inheritRefs="false" target="dummy"> | ||||
| <property name="testprop" refid="inheritable"/> | |||||
| <property name="testprop" refid="inheritable" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="test-property-override-inheritall-start"> | <target name="test-property-override-inheritall-start"> | ||||
| <property name="test" value="1"/> | |||||
| <property name="test" value="1" /> | |||||
| <ant antfile="ant.xml" | <ant antfile="ant.xml" | ||||
| target="test-property-override-inheritall-level-2" | target="test-property-override-inheritall-level-2" | ||||
| inheritall="true"> | inheritall="true"> | ||||
| <property name="test" value="2"/> | |||||
| <property name="test" value="2" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="test-property-override-inheritall-level-2"> | <target name="test-property-override-inheritall-level-2"> | ||||
| <property name="test" value="3"/> | |||||
| <property name="test" value="3" /> | |||||
| <ant antfile="ant.xml" | <ant antfile="ant.xml" | ||||
| target="test-property-override-inheritall-level-3" | target="test-property-override-inheritall-level-3" | ||||
| inheritall="true"> | inheritall="true"> | ||||
| <property name="test" value="4"/> | |||||
| <property name="test" value="4" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="test-property-override-inheritall-level-3"> | <target name="test-property-override-inheritall-level-3"> | ||||
| <property name="test" value="5"/> | |||||
| <echo message="The value of test is ${test}"/> | |||||
| <property name="test" value="5" /> | |||||
| <echo message="The value of test is ${test}" /> | |||||
| </target> | </target> | ||||
| <target name="test-property-override-no-inheritall-start"> | <target name="test-property-override-no-inheritall-start"> | ||||
| <property name="test" value="1"/> | |||||
| <property name="test" value="1" /> | |||||
| <ant antfile="ant.xml" | <ant antfile="ant.xml" | ||||
| target="test-property-override-no-inheritall-level-2" | target="test-property-override-no-inheritall-level-2" | ||||
| inheritall="false"> | inheritall="false"> | ||||
| <property name="test" value="2"/> | |||||
| <property name="test" value="2" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="test-property-override-no-inheritall-level-2"> | <target name="test-property-override-no-inheritall-level-2"> | ||||
| <property name="test" value="3"/> | |||||
| <property name="test" value="3" /> | |||||
| <ant antfile="ant.xml" | <ant antfile="ant.xml" | ||||
| target="test-property-override-no-inheritall-level-3" | target="test-property-override-no-inheritall-level-3" | ||||
| inheritall="false"> | inheritall="false"> | ||||
| <property name="test" value="4"/> | |||||
| <property name="test" value="4" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="test-property-override-no-inheritall-level-3"> | <target name="test-property-override-no-inheritall-level-3"> | ||||
| <property name="test" value="5"/> | |||||
| <echo message="The value of test is ${test}"/> | |||||
| <property name="test" value="5" /> | |||||
| <echo message="The value of test is ${test}" /> | |||||
| </target> | </target> | ||||
| <target name="test-propertyset"> | <target name="test-propertyset"> | ||||
| @@ -181,7 +181,7 @@ | |||||
| <propertyref name="test1"/> | <propertyref name="test1"/> | ||||
| <mapper type="glob" from="*" to="*.x"/> | <mapper type="glob" from="*" to="*.x"/> | ||||
| </propertyset> | </propertyset> | ||||
| <ant antfile="ant.xml" target="echo-for-propertyset-test" | |||||
| <ant antfile="ant.xml" target="echo-for-propertyset-test" | |||||
| inheritall="false"> | inheritall="false"> | ||||
| <propertyset refid="set"/> | <propertyset refid="set"/> | ||||
| </ant> | </ant> | ||||
| @@ -199,7 +199,7 @@ | |||||
| <target name="middleman" depends="infinite-loop-via-depends"/> | <target name="middleman" depends="infinite-loop-via-depends"/> | ||||
| <target name="dependent" depends="middleman"/> | <target name="dependent" depends="middleman"/> | ||||
| <target name="multi-same-property"> | <target name="multi-same-property"> | ||||
| <ant antfile="ant.xml" target="echo-for-multi-same"> | <ant antfile="ant.xml" target="echo-for-multi-same"> | ||||
| <property name="prop" value="one"/> | <property name="prop" value="one"/> | ||||
| @@ -224,22 +224,22 @@ | |||||
| <target name="blank-target"> | <target name="blank-target"> | ||||
| <ant antfile="ant.topleveltest.xml"> | <ant antfile="ant.topleveltest.xml"> | ||||
| <target name=""/> | |||||
| <target name="" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="multiple-targets"> | <target name="multiple-targets"> | ||||
| <ant antfile="ant.xml"> | <ant antfile="ant.xml"> | ||||
| <target name="ta"/> | |||||
| <target name="tb"/> | |||||
| <target name="tc"/> | |||||
| <target name="ta" /> | |||||
| <target name="tb" /> | |||||
| <target name="tc" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="multiple-targets-2"> | <target name="multiple-targets-2"> | ||||
| <ant antfile="ant.xml"> | <ant antfile="ant.xml"> | ||||
| <target name="tb"/> | |||||
| <target name="da"/> | |||||
| <target name="tb" /> | |||||
| <target name="da" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| @@ -22,12 +22,12 @@ | |||||
| </target> | </target> | ||||
| <target name="dummy"> | <target name="dummy"> | ||||
| <echo message="${basedir}"/> | |||||
| <echo message="${basedir}" /> | |||||
| </target> | </target> | ||||
| <target name="callback"> | <target name="callback"> | ||||
| <ant antfile="../ant.xml" target="dummy" inheritAll="false"/> | |||||
| <ant antfile="../ant.xml" target="dummy" inheritAll="false" /> | |||||
| </target> | </target> | ||||
| </project> | |||||
| </project> | |||||
| @@ -17,13 +17,13 @@ | |||||
| --> | --> | ||||
| <project name="test" default="def" basedir="."> | <project name="test" default="def" basedir="."> | ||||
| <path id="no-override"/> | |||||
| <path id="no-override" /> | |||||
| <target name="def"> | <target name="def"> | ||||
| <fail>This build file should only be run from within the testcase</fail> | <fail>This build file should only be run from within the testcase</fail> | ||||
| </target> | </target> | ||||
| <target name="dummy"/> | |||||
| <target name="dummy" /> | |||||
| <target name="testInheritPath"> | <target name="testInheritPath"> | ||||
| <pathconvert refid="test.classpath" pathsep="${line.separator}" property="myprop"/> | <pathconvert refid="test.classpath" pathsep="${line.separator}" property="myprop"/> | ||||
| @@ -20,8 +20,8 @@ | |||||
| <property name="testcases.dir" location="../../../../build/testcases"/> | <property name="testcases.dir" location="../../../../build/testcases"/> | ||||
| <path id="testclasses"> | <path id="testclasses"> | ||||
| <pathelement location="${testcases.dir}"/> | |||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement location="${testcases.dir}" /> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <target name="antlib.file"> | <target name="antlib.file"> | ||||
| @@ -53,13 +53,13 @@ | |||||
| <x:p xmlns:x="abc">Hello from x:p</x:p> | <x:p xmlns:x="abc">Hello from x:p</x:p> | ||||
| </target> | </target> | ||||
| <target name="antlib_uri"> | |||||
| <target name="antlib_uri" > | |||||
| <typedef uri="antlib:org.example.tasks" onerror="failall"/> | <typedef uri="antlib:org.example.tasks" onerror="failall"/> | ||||
| </target> | </target> | ||||
| <target name="antlib_uri_auto" xmlns:ex="antlib:org.example.tasks"> | <target name="antlib_uri_auto" xmlns:ex="antlib:org.example.tasks"> | ||||
| <ex:simple> | <ex:simple> | ||||
| <echo message="inside simple"/> | |||||
| <echo message="inside simple" /> | |||||
| </ex:simple> | </ex:simple> | ||||
| </target> | </target> | ||||
| @@ -68,5 +68,5 @@ | |||||
| <echo message="inside simple"/> | <echo message="inside simple"/> | ||||
| </ex:simple> | </ex:simple> | ||||
| </target> | </target> | ||||
| </project> | |||||
| </project> | |||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| @@ -37,91 +37,91 @@ | |||||
| </target> | </target> | ||||
| <target name="test4"> | <target name="test4"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="src/etc/testcases/taskdefs/this_file_does_not_exist"/> | file="src/etc/testcases/taskdefs/this_file_does_not_exist"/> | ||||
| </target> | </target> | ||||
| <target name="test5"> | <target name="test5"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="available.xml"/> | file="available.xml"/> | ||||
| </target> | </target> | ||||
| <target name="test6"> | <target name="test6"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| resource="org/apache/tools/ant/taskdefs/this_resource_does_not_exist"/> | resource="org/apache/tools/ant/taskdefs/this_resource_does_not_exist"/> | ||||
| </target> | </target> | ||||
| <target name="test7"> | <target name="test7"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| resource="org/apache/tools/ant/taskdefs/defaults.properties"/> | resource="org/apache/tools/ant/taskdefs/defaults.properties"/> | ||||
| </target> | </target> | ||||
| <target name="test8"> | <target name="test8"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/> | classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/> | ||||
| </target> | </target> | ||||
| <target name="test9"> | <target name="test9"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| classname="org.apache.tools.ant.taskdefs.Ant"/> | classname="org.apache.tools.ant.taskdefs.Ant"/> | ||||
| </target> | </target> | ||||
| <target name="test10"> | <target name="test10"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="available.xml" | file="available.xml" | ||||
| resource="org/apache/tools/ant/taskdefs/defaults.properties" | resource="org/apache/tools/ant/taskdefs/defaults.properties" | ||||
| classname="org.apache.tools.ant.taskdefs.Ant"/> | classname="org.apache.tools.ant.taskdefs.Ant"/> | ||||
| </target> | </target> | ||||
| <target name="test11"> | <target name="test11"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="src/etc/testcases/taskdefs/available.xml" | file="src/etc/testcases/taskdefs/available.xml" | ||||
| resource="org/apache/tools/ant/taskdefs/defaults.properties" | resource="org/apache/tools/ant/taskdefs/defaults.properties" | ||||
| classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/> | classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/> | ||||
| </target> | |||||
| </target> | |||||
| <target name="test12"> | <target name="test12"> | ||||
| <available property="" | |||||
| <available property="" | |||||
| file="available.xml"/> | file="available.xml"/> | ||||
| </target> | </target> | ||||
| <target name="test13"> | <target name="test13"> | ||||
| <available property="test" | |||||
| file="" type="file"/> | |||||
| <available property="test" | |||||
| file="" type="file" /> | |||||
| </target> | </target> | ||||
| <target name="test13b"> | <target name="test13b"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file=""/> | file=""/> | ||||
| </target> | </target> | ||||
| <target name="test14"> | <target name="test14"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| resource=""/> | resource=""/> | ||||
| </target> | </target> | ||||
| <target name="test15"> | <target name="test15"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/> | classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/> | ||||
| </target> | </target> | ||||
| <target name="test16"> | <target name="test16"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="" type="dir"/> | file="" type="dir"/> | ||||
| </target> | </target> | ||||
| <target name="test17"> | <target name="test17"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="../taskdefs" type="dir"/> | file="../taskdefs" type="dir"/> | ||||
| </target> | </target> | ||||
| <target name="test18"> | <target name="test18"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="../this_dir_should_never_exist" type="dir"/> | file="../this_dir_should_never_exist" type="dir"/> | ||||
| </target> | </target> | ||||
| <target name="test19"> | <target name="test19"> | ||||
| <available property="test" | |||||
| <available property="test" | |||||
| file="available.xml" type="Foo"/> | file="available.xml" type="Foo"/> | ||||
| </target> | </target> | ||||
| @@ -134,7 +134,7 @@ | |||||
| <available property="test" ignoresystemclasses="true" | <available property="test" ignoresystemclasses="true" | ||||
| classname="org.apache.tools.ant.launch.AntMain"> | classname="org.apache.tools.ant.launch.AntMain"> | ||||
| <classpath> | <classpath> | ||||
| <pathelement location="${ant.home}/lib/ant-launcher.jar"/> | |||||
| <pathelement location="${ant.home}/lib/ant-launcher.jar" /> | |||||
| </classpath> | </classpath> | ||||
| </available> | </available> | ||||
| </target> | </target> | ||||
| @@ -161,29 +161,29 @@ | |||||
| <target name="searchInPathNotThere"> | <target name="searchInPathNotThere"> | ||||
| <available file="not_there" filepath="..:optional" | <available file="not_there" filepath="..:optional" | ||||
| property="test"/> | |||||
| property="test" /> | |||||
| </target> | </target> | ||||
| <target name="searchInPathIsThere"> | <target name="searchInPathIsThere"> | ||||
| <available file="pvcs.xml" filepath="..:optional" | <available file="pvcs.xml" filepath="..:optional" | ||||
| property="test"/> | |||||
| property="test" /> | |||||
| </target> | </target> | ||||
| <target name="testDoubleBasedir"> | <target name="testDoubleBasedir"> | ||||
| <echo>testing ${basedir}${file.separator}${ant.file}</echo> | <echo>testing ${basedir}${file.separator}${ant.file}</echo> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <available file="${basedir}${file.separator}${ant.file}"/> | |||||
| <available file="${basedir}${file.separator}${ant.file}" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="prep.parents"> | <target name="prep.parents"> | ||||
| <mkdir dir="${output}/greatgrandparent/grandparent/parent/dir"/> | |||||
| <touch file="${output}/greatgrandparent/a.txt"/> | |||||
| <touch file="${output}/greatgrandparent/grandparent/b.txt"/> | |||||
| <touch file="${output}/greatgrandparent/grandparent/parent/c.txt"/> | |||||
| <touch file="${output}/greatgrandparent/grandparent/parent/dir/d.txt"/> | |||||
| <mkdir dir="${output}/greatgrandparent/grandparent/parent/dir"/> | |||||
| <touch file="${output}/greatgrandparent/a.txt"/> | |||||
| <touch file="${output}/greatgrandparent/grandparent/b.txt"/> | |||||
| <touch file="${output}/greatgrandparent/grandparent/parent/c.txt"/> | |||||
| <touch file="${output}/greatgrandparent/grandparent/parent/dir/d.txt"/> | |||||
| <property name="available.test.dir" | <property name="available.test.dir" | ||||
| value="${output}/greatgrandparent/grandparent/parent/dir"/> | value="${output}/greatgrandparent/grandparent/parent/dir"/> | ||||
| </target> | </target> | ||||
| @@ -45,7 +45,7 @@ | |||||
| <target name="testNoDots"> | <target name="testNoDots"> | ||||
| <basename property="file.wo.suf" file="foo.bartxt" suffix="txt"/> | <basename property="file.wo.suf" file="foo.bartxt" suffix="txt"/> | ||||
| </target> | </target> | ||||
| <target name="testValueEqualsSuffixWithDot"> | <target name="testValueEqualsSuffixWithDot"> | ||||
| <basename property="file.wo.suf" file=".txt" suffix=".txt"/> | <basename property="file.wo.suf" file=".txt" suffix=".txt"/> | ||||
| </target> | </target> | ||||
| @@ -53,5 +53,5 @@ | |||||
| <target name="testValueEqualsSuffixWithoutDot"> | <target name="testValueEqualsSuffixWithoutDot"> | ||||
| <basename property="file.wo.suf" file=".txt" suffix="txt"/> | <basename property="file.wo.suf" file=".txt" suffix="txt"/> | ||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -27,7 +27,7 @@ | |||||
| </target> | </target> | ||||
| <target name="realTest"> | <target name="realTest"> | ||||
| <bunzip2 src="expected/asf-logo-huge.tar.bz2" dest="${output}/asf-logo-huge.tar"/> | |||||
| <bunzip2 src="expected/asf-logo-huge.tar.bz2" dest="${output}/asf-logo-huge.tar" /> | |||||
| </target> | </target> | ||||
| <target name="realTestWithResource"> | <target name="realTestWithResource"> | ||||
| @@ -22,7 +22,7 @@ | |||||
| <target name="realTest"> | <target name="realTest"> | ||||
| <bzip2 src="${output}/asf-logo-huge-from-gzip.tar" | <bzip2 src="${output}/asf-logo-huge-from-gzip.tar" | ||||
| zipfile="${output}/asf-logo-huge.tar.bz2"/> | |||||
| zipfile="${output}/asf-logo-huge.tar.bz2" /> | |||||
| </target> | </target> | ||||
| <target name="realTestWithResource"> | <target name="realTestWithResource"> | ||||
| @@ -33,7 +33,7 @@ | |||||
| <target name="testDateCheck"> | <target name="testDateCheck"> | ||||
| <touch file="${output}/asf-logo.gif.bz2"/> | <touch file="${output}/asf-logo.gif.bz2"/> | ||||
| <bzip2 src="../asf-logo.gif" zipfile="${output}/asf-logo.gif.bz2"/> | |||||
| <bzip2 src="../asf-logo.gif" zipfile="${output}/asf-logo.gif.bz2" /> | |||||
| </target> | </target> | ||||
| <target name="prepare"> | <target name="prepare"> | ||||
| @@ -18,19 +18,19 @@ | |||||
| <project default="cleanup" basedir="."> | <project default="cleanup" basedir="."> | ||||
| <macrodef name="compare"> | <macrodef name="compare"> | ||||
| <attribute name="expected"/> | |||||
| <attribute name="output"/> | |||||
| <attribute name="expected" /> | |||||
| <attribute name="output" /> | |||||
| <sequential> | <sequential> | ||||
| <loadfile property="expected" srcfile="@{expected}"> | <loadfile property="expected" srcfile="@{expected}"> | ||||
| <filterchain><striplinebreaks/></filterchain> | |||||
| <filterchain><striplinebreaks /></filterchain> | |||||
| </loadfile> | </loadfile> | ||||
| <loadfile property="output" srcfile="@{output}"> | <loadfile property="output" srcfile="@{output}"> | ||||
| <filterchain><striplinebreaks/></filterchain> | |||||
| <filterchain><striplinebreaks /></filterchain> | |||||
| </loadfile> | </loadfile> | ||||
| <fail message="${output} not = ${expected}"> | <fail message="${output} not = ${expected}"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="${output}" arg2="${expected}"/> | |||||
| <equals arg1="${output}" arg2="${expected}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -38,31 +38,31 @@ | |||||
| </macrodef> | </macrodef> | ||||
| <macrodef name="testverify"> | <macrodef name="testverify"> | ||||
| <attribute name="checknologo" default="false"/> | |||||
| <element name="stuff" implicit="true"/> | |||||
| <attribute name="checknologo" default="false" /> | |||||
| <element name="stuff" implicit="true" /> | |||||
| <sequential> | <sequential> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <isset property="logo.MD5"/> | |||||
| <isset property="no.logo.MD5"/> | |||||
| <isset property="logo.MD5" /> | |||||
| <isset property="no.logo.MD5" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <stuff/> | |||||
| <stuff /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <istrue value="${logo.MD5}"/> | |||||
| <istrue value="${logo.MD5}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <and> | <and> | ||||
| <istrue value="@{checknologo}"/> | |||||
| <istrue value="@{checknologo}" /> | |||||
| <not> | <not> | ||||
| <isfalse value="${no.logo.MD5}"/> | |||||
| <isfalse value="${no.logo.MD5}" /> | |||||
| </not> | </not> | ||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| @@ -70,8 +70,8 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <and> | <and> | ||||
| <isfalse value="@{checknologo}"/> | |||||
| <isset property="no.logo.MD5"/> | |||||
| <isfalse value="@{checknologo}" /> | |||||
| <isset property="no.logo.MD5" /> | |||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -79,52 +79,52 @@ | |||||
| </macrodef> | </macrodef> | ||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete file="../asf-logo.gif.MD5"/> | |||||
| <delete file="../asf-logo.gif.md5"/> | |||||
| <delete file="../asf-logo.gif.MD5SUM"/> | |||||
| <delete file="../asf-logo.gif.md5sum"/> | |||||
| <delete file="../asf-logo.gif.SVF"/> | |||||
| <delete file="../asf-logo.gif.svf"/> | |||||
| <delete file="../asf-logo.gif.pattern"/> | |||||
| <delete file="../asf-logo.gif.PATTERN"/> | |||||
| <delete file="../asf-logo.gif.MD5" /> | |||||
| <delete file="../asf-logo.gif.md5" /> | |||||
| <delete file="../asf-logo.gif.MD5SUM" /> | |||||
| <delete file="../asf-logo.gif.md5sum" /> | |||||
| <delete file="../asf-logo.gif.SVF" /> | |||||
| <delete file="../asf-logo.gif.svf" /> | |||||
| <delete file="../asf-logo.gif.pattern" /> | |||||
| <delete file="../asf-logo.gif.PATTERN" /> | |||||
| <delete> | <delete> | ||||
| <fileset dir="checksum"> | <fileset dir="checksum"> | ||||
| <include name="**/*.MD5"/> | <include name="**/*.MD5"/> | ||||
| </fileset> | </fileset> | ||||
| </delete> | </delete> | ||||
| <delete dir="checksum/checksums"/> | |||||
| <delete dir="checksum/checksums" /> | |||||
| </target> | </target> | ||||
| <target name="createMd5"> | <target name="createMd5"> | ||||
| <checksum file="../asf-logo.gif" fileext=".MD5"/> | |||||
| <compare expected="expected/asf-logo.gif.md5" output="../asf-logo.gif.MD5"/> | |||||
| <checksum file="../asf-logo.gif" fileext=".MD5" /> | |||||
| <compare expected="expected/asf-logo.gif.md5" output="../asf-logo.gif.MD5" /> | |||||
| </target> | </target> | ||||
| <target name="createMD5SUMformat"> | <target name="createMD5SUMformat"> | ||||
| <checksum file="../asf-logo.gif" format="MD5SUM" fileext=".MD5SUM"/> | |||||
| <compare expected="expected/asf-logo.gif.md5sum" output="../asf-logo.gif.MD5SUM"/> | |||||
| <checksum file="../asf-logo.gif" format="MD5SUM" fileext=".MD5SUM" /> | |||||
| <compare expected="expected/asf-logo.gif.md5sum" output="../asf-logo.gif.MD5SUM" /> | |||||
| </target> | </target> | ||||
| <target name="createSVFformat"> | <target name="createSVFformat"> | ||||
| <checksum file="../asf-logo.gif" format="SVF" fileext=".SVF"/> | |||||
| <compare expected="expected/asf-logo.gif.svf" output="../asf-logo.gif.SVF"/> | |||||
| <checksum file="../asf-logo.gif" format="SVF" fileext=".SVF" /> | |||||
| <compare expected="expected/asf-logo.gif.svf" output="../asf-logo.gif.SVF" /> | |||||
| </target> | </target> | ||||
| <target name="createPattern"> | <target name="createPattern"> | ||||
| <checksum file="../asf-logo.gif" pattern="foo{0}bar" fileext=".PATTERN"/> | |||||
| <compare expected="expected/asf-logo.gif.pattern" output="../asf-logo.gif.PATTERN"/> | |||||
| <checksum file="../asf-logo.gif" pattern="foo{0}bar" fileext=".PATTERN" /> | |||||
| <compare expected="expected/asf-logo.gif.pattern" output="../asf-logo.gif.PATTERN" /> | |||||
| </target> | </target> | ||||
| <target name="setProperty"> | <target name="setProperty"> | ||||
| <checksum file="../asf-logo.gif" property="logo.MD5"/> | |||||
| <checksum file="../asf-logo.gif" property="logo.MD5" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <not> | <not> | ||||
| <equals arg1="0541d3df42520911f268abc730f3afe0" | <equals arg1="0541d3df42520911f268abc730f3afe0" | ||||
| arg2="${logo.MD5}"/> | |||||
| arg2="${logo.MD5}" /> | |||||
| </not> | </not> | ||||
| <available file="../asf-logo.gif.MD5"/> | |||||
| <available file="../asf-logo.gif.MD5" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -132,25 +132,25 @@ | |||||
| <target name="verifyAsTask"> | <target name="verifyAsTask"> | ||||
| <testverify checknologo="true"> | <testverify checknologo="true"> | ||||
| <copy file="expected/asf-logo.gif.md5" todir=".."/> | |||||
| <copy file="expected/asf-logo.gif.md5" todir=".." /> | |||||
| <checksum file="../asf-logo.gif" fileext=".md5" | <checksum file="../asf-logo.gif" fileext=".md5" | ||||
| verifyproperty="logo.MD5"/> | |||||
| verifyproperty="logo.MD5" /> | |||||
| <copy file="checksum.xml" tofile="../asf-logo.gif.MD5" | <copy file="checksum.xml" tofile="../asf-logo.gif.MD5" | ||||
| overwrite="true"/> | |||||
| overwrite="true" /> | |||||
| <checksum file="../asf-logo.gif" fileext=".MD5" | <checksum file="../asf-logo.gif" fileext=".MD5" | ||||
| verifyproperty="no.logo.MD5"/> | |||||
| verifyproperty="no.logo.MD5" /> | |||||
| </testverify> | </testverify> | ||||
| </target> | </target> | ||||
| <target name="verifyMD5SUMAsTask"> | <target name="verifyMD5SUMAsTask"> | ||||
| <testverify checknologo="true"> | <testverify checknologo="true"> | ||||
| <copy file="expected/asf-logo.gif.md5sum" todir=".."/> | |||||
| <copy file="expected/asf-logo.gif.md5sum" todir=".." /> | |||||
| <checksum file="../asf-logo.gif" fileext=".md5sum" | <checksum file="../asf-logo.gif" fileext=".md5sum" | ||||
| verifyproperty="logo.MD5" format="MD5SUM"/> | verifyproperty="logo.MD5" format="MD5SUM"/> | ||||
| <copy file="checksum.xml" tofile="../asf-logo.gif.MD5SUM" | <copy file="checksum.xml" tofile="../asf-logo.gif.MD5SUM" | ||||
| overwrite="true"/> | |||||
| overwrite="true" /> | |||||
| <checksum file="../asf-logo.gif" fileext=".MD5SUM" | <checksum file="../asf-logo.gif" fileext=".MD5SUM" | ||||
| verifyproperty="no.logo.MD5" format="MD5SUM"/> | verifyproperty="no.logo.MD5" format="MD5SUM"/> | ||||
| </testverify> | </testverify> | ||||
| @@ -158,15 +158,15 @@ | |||||
| <target name="verifyAsCondition"> | <target name="verifyAsCondition"> | ||||
| <testverify> | <testverify> | ||||
| <copy file="expected/asf-logo.gif.md5" todir=".."/> | |||||
| <copy file="expected/asf-logo.gif.md5" todir=".." /> | |||||
| <condition property="logo.MD5"> | <condition property="logo.MD5"> | ||||
| <checksum file="../asf-logo.gif" fileext=".md5"/> | |||||
| <checksum file="../asf-logo.gif" fileext=".md5" /> | |||||
| </condition> | </condition> | ||||
| <copy file="checksum.xml" tofile="../asf-logo.gif.MD5" | <copy file="checksum.xml" tofile="../asf-logo.gif.MD5" | ||||
| overwrite="true"/> | |||||
| overwrite="true" /> | |||||
| <condition property="no.logo.MD5"> | <condition property="no.logo.MD5"> | ||||
| <checksum file="../asf-logo.gif" fileext=".MD5"/> | |||||
| <checksum file="../asf-logo.gif" fileext=".MD5" /> | |||||
| </condition> | </condition> | ||||
| </testverify> | </testverify> | ||||
| </target> | </target> | ||||
| @@ -174,7 +174,7 @@ | |||||
| <target name="verifyFromProperty"> | <target name="verifyFromProperty"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <isset property="verify"/> | |||||
| <isset property="verify" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <checksum property="checksum" file="checksum.xml"/> | <checksum property="checksum" file="checksum.xml"/> | ||||
| @@ -183,7 +183,7 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <istrue value="${verify}"/> | |||||
| <istrue value="${verify}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -198,7 +198,7 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="ef8f1477fcc9bf93832c1a74f629c626" arg2="${total}"/> | |||||
| <equals arg1="ef8f1477fcc9bf93832c1a74f629c626" arg2="${total}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -215,7 +215,7 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="ef8f1477fcc9bf93832c1a74f629c626" arg2="${total}"/> | |||||
| <equals arg1="ef8f1477fcc9bf93832c1a74f629c626" arg2="${total}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -230,26 +230,26 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="ef8f1477fcc9bf93832c1a74f629c626" arg2="${total}"/> | |||||
| <equals arg1="ef8f1477fcc9bf93832c1a74f629c626" arg2="${total}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <pathconvert property="srcdirfile"> | <pathconvert property="srcdirfile"> | ||||
| <file file="checksum/foo/zap/Eenie.MD5"/> | |||||
| <file file="checksum/foo/zap/Eenie.MD5" /> | |||||
| </pathconvert> | </pathconvert> | ||||
| <pathconvert property="destdirfile"> | <pathconvert property="destdirfile"> | ||||
| <file file="checksum/checksums/foo/zap/Eenie.MD5"/> | |||||
| <file file="checksum/checksums/foo/zap/Eenie.MD5" /> | |||||
| </pathconvert> | </pathconvert> | ||||
| <fail message="Checksums should be written to ${destdirfile}"> | <fail message="Checksums should be written to ${destdirfile}"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${destdirfile}"/> | |||||
| <available file="${destdirfile}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <fail message="Checksums should not be written to ${srcdirfile}"> | <fail message="Checksums should not be written to ${srcdirfile}"> | ||||
| <condition> | <condition> | ||||
| <available file="${srcdirfile}"/> | |||||
| <available file="${srcdirfile}" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -19,22 +19,22 @@ | |||||
| <target name="init"> | <target name="init"> | ||||
| <path id="myJars"> | |||||
| <path id="myJars" > | |||||
| <!-- both ant-junit.jar and junit.jar must be loaded from the same path --> | <!-- both ant-junit.jar and junit.jar must be loaded from the same path --> | ||||
| <pathelement path="${ant.home}/lib/ant-junit.jar"/> | |||||
| <pathelement path="${junit.jar}"/> | |||||
| <pathelement path="${ant.home}/lib/ant-junit.jar" /> | |||||
| <pathelement path="${junit.jar}" /> | |||||
| </path> | </path> | ||||
| <classloader classpathRef="myJars" | |||||
| reverse="true"> | |||||
| <classloader classpathRef="myJars" | |||||
| reverse="true" > | |||||
| </classloader> | </classloader> | ||||
| <junit/> | |||||
| <junit /> | |||||
| </target> | </target> | ||||
| <target name="main" depends="init"> | <target name="main" depends="init"> | ||||
| <echo message="Found JUNIT"/> | |||||
| <echo message="Found JUNIT" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -18,10 +18,10 @@ | |||||
| <project name="concat-test" basedir="." default="test1"> | <project name="concat-test" basedir="." default="test1"> | ||||
| <property name="tmp.file" value="concat.tmp"/> | |||||
| <property name="tmp.file.2" value="concat.tmp.2"/> | |||||
| <property name="tmp.file" value="concat.tmp" /> | |||||
| <property name="tmp.file.2" value="concat.tmp.2" /> | |||||
| <property name="world" value="World"/> | |||||
| <property name="world" value="World" /> | |||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete file="TESTDEST"/> | <delete file="TESTDEST"/> | ||||
| @@ -49,8 +49,8 @@ | |||||
| <target name="test4"> | <target name="test4"> | ||||
| <concat destfile="${tmp.file.2}"> | <concat destfile="${tmp.file.2}"> | ||||
| <fileset dir="${basedir}" includes="${tmp.file}"/> | |||||
| <filelist dir="${basedir}" files="${tmp.file},${tmp.file}"/> | |||||
| <fileset dir="${basedir}" includes="${tmp.file}" /> | |||||
| <filelist dir="${basedir}" files="${tmp.file},${tmp.file}" /> | |||||
| </concat> | </concat> | ||||
| </target> | </target> | ||||
| @@ -158,7 +158,7 @@ | |||||
| </filterchain> | </filterchain> | ||||
| </concat> | </concat> | ||||
| </target> | </target> | ||||
| <target name="testmultireader"> | <target name="testmultireader"> | ||||
| <concat destfile="${tmp.file}">Hello, World | <concat destfile="${tmp.file}">Hello, World | ||||
| </concat> | </concat> | ||||
| @@ -183,7 +183,7 @@ | |||||
| </filterchain> | </filterchain> | ||||
| </concat> | </concat> | ||||
| </target> | </target> | ||||
| <target name="create-noel"> | <target name="create-noel"> | ||||
| <concat destfile="concat.noeol">This has no end of line</concat> | <concat destfile="concat.noeol">This has no end of line</concat> | ||||
| </target> | </target> | ||||
| @@ -21,14 +21,14 @@ | |||||
| <target name="basic"> | <target name="basic"> | ||||
| <condition property="basic"> | <condition property="basic"> | ||||
| <equals arg1="a" arg2="a"/> | |||||
| <equals arg1="a" arg2="a" /> | |||||
| </condition> | </condition> | ||||
| <echo>${basic}</echo> | <echo>${basic}</echo> | ||||
| </target> | </target> | ||||
| <target name="condition-incomplete"> | <target name="condition-incomplete"> | ||||
| <condition> | |||||
| <equals arg1="a" arg2="a"/> | |||||
| <condition > | |||||
| <equals arg1="a" arg2="a" /> | |||||
| </condition> | </condition> | ||||
| </target> | </target> | ||||
| @@ -40,21 +40,21 @@ | |||||
| <target name="shortcut"> | <target name="shortcut"> | ||||
| <property name="shortcut" value="set"/> | <property name="shortcut" value="set"/> | ||||
| <condition property="shortcut"> | <condition property="shortcut"> | ||||
| <equals arg1="a" arg2="a"/> | |||||
| <equals arg1="a" arg2="a" /> | |||||
| </condition> | </condition> | ||||
| <echo>${shortcut}</echo> | <echo>${shortcut}</echo> | ||||
| </target> | </target> | ||||
| <target name="dontset"> | <target name="dontset"> | ||||
| <condition property="dontset"> | <condition property="dontset"> | ||||
| <equals arg1="a" arg2="b"/> | |||||
| <equals arg1="a" arg2="b" /> | |||||
| </condition> | </condition> | ||||
| <echo>${dontset}</echo> | <echo>${dontset}</echo> | ||||
| </target> | </target> | ||||
| <target name="setvalue"> | <target name="setvalue"> | ||||
| <condition property="setvalue" value="woowoo"> | |||||
| <equals arg1="a" arg2="a"/> | |||||
| <condition property="setvalue" value="woowoo" > | |||||
| <equals arg1="a" arg2="a" /> | |||||
| </condition> | </condition> | ||||
| <echo>${setvalue}</echo> | <echo>${setvalue}</echo> | ||||
| </target> | </target> | ||||
| @@ -62,7 +62,7 @@ | |||||
| <target name="negation"> | <target name="negation"> | ||||
| <condition property="negation"> | <condition property="negation"> | ||||
| <not> | <not> | ||||
| <equals arg1="a" arg2="B"/> | |||||
| <equals arg1="a" arg2="B" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| <echo>${negation}</echo> | <echo>${negation}</echo> | ||||
| @@ -71,7 +71,7 @@ | |||||
| <target name="negationfalse"> | <target name="negationfalse"> | ||||
| <condition property="negationfalse"> | <condition property="negationfalse"> | ||||
| <not> | <not> | ||||
| <equals arg1="a" arg2="a"/> | |||||
| <equals arg1="a" arg2="a" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| <echo>${negationfalse}</echo> | <echo>${negationfalse}</echo> | ||||
| @@ -79,7 +79,7 @@ | |||||
| <target name="negationincomplete"> | <target name="negationincomplete"> | ||||
| <condition property="negationincomplete"> | <condition property="negationincomplete"> | ||||
| <not/> | |||||
| <not /> | |||||
| </condition> | </condition> | ||||
| <echo>${negationincomplete}</echo> | <echo>${negationincomplete}</echo> | ||||
| </target> | </target> | ||||
| @@ -87,8 +87,8 @@ | |||||
| <target name="and"> | <target name="and"> | ||||
| <condition property="and"> | <condition property="and"> | ||||
| <and> | <and> | ||||
| <equals arg1="a" arg2="a"/> | |||||
| <equals arg1="B" arg2="B"/> | |||||
| <equals arg1="a" arg2="a" /> | |||||
| <equals arg1="B" arg2="B" /> | |||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| <echo>${and}</echo> | <echo>${and}</echo> | ||||
| @@ -97,8 +97,8 @@ | |||||
| <target name="andfails"> | <target name="andfails"> | ||||
| <condition property="andfails"> | <condition property="andfails"> | ||||
| <and> | <and> | ||||
| <equals arg1="a" arg2="B"/> | |||||
| <equals arg1="B" arg2="a"/> | |||||
| <equals arg1="a" arg2="B" /> | |||||
| <equals arg1="B" arg2="a" /> | |||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| <echo>${andfails}</echo> | <echo>${andfails}</echo> | ||||
| @@ -107,7 +107,7 @@ | |||||
| <target name="andincomplete"> | <target name="andincomplete"> | ||||
| <condition property="andincomplete"> | <condition property="andincomplete"> | ||||
| <and> | <and> | ||||
| <equals arg1="a" arg2="B"/> | |||||
| <equals arg1="a" arg2="B" /> | |||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| <echo>${andincomplete}</echo> | <echo>${andincomplete}</echo> | ||||
| @@ -123,8 +123,8 @@ | |||||
| <target name="or"> | <target name="or"> | ||||
| <condition property="or"> | <condition property="or"> | ||||
| <or> | <or> | ||||
| <equals arg1="a" arg2="B"/> | |||||
| <equals arg1="B" arg2="B"/> | |||||
| <equals arg1="a" arg2="B" /> | |||||
| <equals arg1="B" arg2="B" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| <echo>${or}</echo> | <echo>${or}</echo> | ||||
| @@ -133,7 +133,7 @@ | |||||
| <target name="orincomplete"> | <target name="orincomplete"> | ||||
| <condition property="orincomplete"> | <condition property="orincomplete"> | ||||
| <or> | <or> | ||||
| <equals arg1="a" arg2="a"/> | |||||
| <equals arg1="a" arg2="a" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| <echo>${orincomplete}</echo> | <echo>${orincomplete}</echo> | ||||
| @@ -149,8 +149,8 @@ | |||||
| <target name="orfails"> | <target name="orfails"> | ||||
| <condition property="orfails"> | <condition property="orfails"> | ||||
| <or> | <or> | ||||
| <equals arg1="a" arg2="B"/> | |||||
| <equals arg1="B" arg2="a"/> | |||||
| <equals arg1="a" arg2="B" /> | |||||
| <equals arg1="B" arg2="a" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| <echo>${orfails}</echo> | <echo>${orfails}</echo> | ||||
| @@ -159,23 +159,23 @@ | |||||
| <target name="orboth"> | <target name="orboth"> | ||||
| <condition property="orboth"> | <condition property="orboth"> | ||||
| <or> | <or> | ||||
| <equals arg1="a" arg2="a"/> | |||||
| <equals arg1="B" arg2="B"/> | |||||
| <equals arg1="a" arg2="a" /> | |||||
| <equals arg1="B" arg2="B" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| <echo>${orboth}</echo> | <echo>${orboth}</echo> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-identical"> | |||||
| <target name="filesmatch-identical" > | |||||
| <condition property="filesmatch-identical"> | <condition property="filesmatch-identical"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="condition.xml" | file1="condition.xml" | ||||
| file2="condition.xml"/> | |||||
| file2="condition.xml" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-identical}</echo> | <echo>${filesmatch-identical}</echo> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-incomplete"> | |||||
| <target name="filesmatch-incomplete" > | |||||
| <condition property="filesmatch-incomplete"> | <condition property="filesmatch-incomplete"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="condition.xml"/> | file1="condition.xml"/> | ||||
| @@ -183,20 +183,20 @@ | |||||
| <echo>${filesmatch-incomplete}</echo> | <echo>${filesmatch-incomplete}</echo> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-oddsizes"> | |||||
| <target name="filesmatch-oddsizes" > | |||||
| <condition property="filesmatch-oddsizes"> | <condition property="filesmatch-oddsizes"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="condition.xml" | file1="condition.xml" | ||||
| file2="property.xml"/> | |||||
| file2="property.xml" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-oddsizes}</echo> | <echo>${filesmatch-oddsizes}</echo> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-existence"> | |||||
| <target name="filesmatch-existence" > | |||||
| <condition property="filesmatch-existence"> | <condition property="filesmatch-existence"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="condition.xml" | file1="condition.xml" | ||||
| file2="this-file-doesnt-exist.xml"/> | |||||
| file2="this-file-doesnt-exist.xml" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-existence}</echo> | <echo>${filesmatch-existence}</echo> | ||||
| </target> | </target> | ||||
| @@ -205,67 +205,67 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <filesmatch file1="idonotexist" file2="andneitherdoi"/> | |||||
| <filesmatch file1="idonotexist" file2="andneitherdoi" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-different"> | <target name="filesmatch-different"> | ||||
| <echo file="match1.txt" message="012345676890"/> | |||||
| <echo file="match2.txt" message="012345676889"/> | |||||
| <echo file="match1.txt" message="012345676890" /> | |||||
| <echo file="match2.txt" message="012345676889" /> | |||||
| <condition property="filesmatch-different"> | <condition property="filesmatch-different"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="match1.txt" | file1="match1.txt" | ||||
| file2="match2.txt"/> | |||||
| file2="match2.txt" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-different}</echo> | <echo>${filesmatch-different}</echo> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-match"> | |||||
| <echo file="match3.txt" message="012345676890"/> | |||||
| <echo file="match4.txt" message="012345676890"/> | |||||
| <target name="filesmatch-match" > | |||||
| <echo file="match3.txt" message="012345676890" /> | |||||
| <echo file="match4.txt" message="012345676890" /> | |||||
| <condition property="filesmatch-match"> | <condition property="filesmatch-match"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="match3.txt" | file1="match3.txt" | ||||
| file2="match4.txt"/> | |||||
| file2="match4.txt" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-match}</echo> | <echo>${filesmatch-match}</echo> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-different-eol"> | |||||
| <echo file="match7.txt" message="012345676890"/> | |||||
| <echo file="match8.txt" message="012345676890"/> | |||||
| <fixcrlf file="match7.txt" eol="cr" fixlast="true"/> | |||||
| <fixcrlf file="match8.txt" eol="lf" fixlast="true"/> | |||||
| <target name="filesmatch-different-eol" > | |||||
| <echo file="match7.txt" message="012345676890" /> | |||||
| <echo file="match8.txt" message="012345676890" /> | |||||
| <fixcrlf file="match7.txt" eol="cr" fixlast="true" /> | |||||
| <fixcrlf file="match8.txt" eol="lf" fixlast="true" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <filesmatch file1="match7.txt" file2="match8.txt"/> | |||||
| <filesmatch file1="match7.txt" file2="match8.txt" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-same-eol"> | |||||
| <echo file="match9.txt" message="012345676890"/> | |||||
| <echo file="match10.txt" message="012345676890"/> | |||||
| <fixcrlf file="match9.txt" eol="crlf" fixlast="true"/> | |||||
| <fixcrlf file="match10.txt" eol="lf" fixlast="true"/> | |||||
| <target name="filesmatch-same-eol" > | |||||
| <echo file="match9.txt" message="012345676890" /> | |||||
| <echo file="match10.txt" message="012345676890" /> | |||||
| <fixcrlf file="match9.txt" eol="crlf" fixlast="true" /> | |||||
| <fixcrlf file="match10.txt" eol="lf" fixlast="true" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <filesmatch file1="match9.txt" file2="match10.txt" textfile="true"/> | |||||
| <filesmatch file1="match9.txt" file2="match10.txt" textfile="true" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="filesmatch-different-sizes"> | <target name="filesmatch-different-sizes"> | ||||
| <echo file="match5.txt" message="012345676890"/> | |||||
| <echo file="match6.txt" message="0123456768"/> | |||||
| <echo file="match5.txt" message="012345676890" /> | |||||
| <echo file="match6.txt" message="0123456768" /> | |||||
| <condition property="filesmatch-different-sizes"> | <condition property="filesmatch-different-sizes"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="match5.txt" | file1="match5.txt" | ||||
| file2="match6.txt"/> | |||||
| file2="match6.txt" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-different-sizes}</echo> | <echo>${filesmatch-different-sizes}</echo> | ||||
| </target> | </target> | ||||
| @@ -274,146 +274,146 @@ | |||||
| <condition property="filesmatch-different-sizes"> | <condition property="filesmatch-different-sizes"> | ||||
| <filesmatch | <filesmatch | ||||
| file1="condition.xml" | file1="condition.xml" | ||||
| file2="missing-file.txt"/> | |||||
| file2="missing-file.txt" /> | |||||
| </condition> | </condition> | ||||
| <echo>${filesmatch-different-onemissing}</echo> | <echo>${filesmatch-different-onemissing}</echo> | ||||
| </target> | </target> | ||||
| <target name="contains"> | |||||
| <target name="contains" > | |||||
| <condition property="contains"> | <condition property="contains"> | ||||
| <contains | <contains | ||||
| string="abcd" | string="abcd" | ||||
| substring="cd"/> | |||||
| substring="cd" /> | |||||
| </condition> | </condition> | ||||
| <echo>${contains}</echo> | <echo>${contains}</echo> | ||||
| </target> | </target> | ||||
| <target name="contains-doesnt"> | |||||
| <target name="contains-doesnt" > | |||||
| <condition property="contains-doesnt"> | <condition property="contains-doesnt"> | ||||
| <contains | <contains | ||||
| string="abcd" | string="abcd" | ||||
| substring="CD"/> | |||||
| substring="CD" /> | |||||
| </condition> | </condition> | ||||
| <echo>${contains-doesnt}</echo> | <echo>${contains-doesnt}</echo> | ||||
| </target> | </target> | ||||
| <target name="contains-anycase"> | |||||
| <target name="contains-anycase" > | |||||
| <condition property="contains-anycase"> | <condition property="contains-anycase"> | ||||
| <contains casesensitive="false" | <contains casesensitive="false" | ||||
| string="abcd" | string="abcd" | ||||
| substring="CD"/> | |||||
| substring="CD" /> | |||||
| </condition> | </condition> | ||||
| <echo>${contains-anycase}</echo> | <echo>${contains-anycase}</echo> | ||||
| </target> | </target> | ||||
| <target name="contains-incomplete1"> | |||||
| <target name="contains-incomplete1" > | |||||
| <condition property="contains-incomplete1"> | <condition property="contains-incomplete1"> | ||||
| <contains | <contains | ||||
| string="abcd"/> | |||||
| string="abcd" /> | |||||
| </condition> | </condition> | ||||
| <echo>${contains-incomplete1}</echo> | <echo>${contains-incomplete1}</echo> | ||||
| </target> | </target> | ||||
| <target name="contains-incomplete2"> | |||||
| <target name="contains-incomplete2" > | |||||
| <condition property="contains-incomplete2"> | <condition property="contains-incomplete2"> | ||||
| <contains | <contains | ||||
| substring="CD"/> | |||||
| substring="CD" /> | |||||
| </condition> | </condition> | ||||
| <echo>${contains-incomplete2}</echo> | <echo>${contains-incomplete2}</echo> | ||||
| </target> | </target> | ||||
| <target name="istrue"> | |||||
| <property name="t" value="true"/> | |||||
| <property name="o" value="o"/> | |||||
| <property name="n" value="n"/> | |||||
| <target name="istrue" > | |||||
| <property name="t" value="true" /> | |||||
| <property name="o" value="o" /> | |||||
| <property name="n" value="n" /> | |||||
| <condition property="istrue"> | <condition property="istrue"> | ||||
| <and> | <and> | ||||
| <istrue value="${t}"/> | |||||
| <istrue value="TRUE"/> | |||||
| <istrue value="yes"/> | |||||
| <istrue value="YeS"/> | |||||
| <istrue value="on"/> | |||||
| <istrue value="${o}${n}"/> | |||||
| <istrue value="${t}" /> | |||||
| <istrue value="TRUE" /> | |||||
| <istrue value="yes" /> | |||||
| <istrue value="YeS" /> | |||||
| <istrue value="on" /> | |||||
| <istrue value="${o}${n}" /> | |||||
| </and> | </and> | ||||
| </condition> | </condition> | ||||
| <echo>${istrue}</echo> | <echo>${istrue}</echo> | ||||
| </target> | </target> | ||||
| <target name="istrue-not"> | |||||
| <target name="istrue-not" > | |||||
| <condition property="istrue-not"> | <condition property="istrue-not"> | ||||
| <istrue | <istrue | ||||
| value="this sentence is true"/> | |||||
| value="this sentence is true" /> | |||||
| </condition> | </condition> | ||||
| <echo>${istrue-not}</echo> | <echo>${istrue-not}</echo> | ||||
| </target> | </target> | ||||
| <target name="istrue-false"> | |||||
| <target name="istrue-false" > | |||||
| <condition property="istrue-false"> | <condition property="istrue-false"> | ||||
| <or> | <or> | ||||
| <istrue value="false"/> | |||||
| <istrue value=""/> | |||||
| <istrue value="false" /> | |||||
| <istrue value="" /> | |||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| <echo>${istrue-false}</echo> | <echo>${istrue-false}</echo> | ||||
| </target> | </target> | ||||
| <target name="istrue-incomplete"> | |||||
| <target name="istrue-incomplete" > | |||||
| <condition property="istrue-incomplete"> | <condition property="istrue-incomplete"> | ||||
| <istrue/> | |||||
| <istrue /> | |||||
| </condition> | </condition> | ||||
| <echo>${istrue-incomplete}</echo> | <echo>${istrue-incomplete}</echo> | ||||
| </target> | </target> | ||||
| <target name="isfalse-true"> | |||||
| <property name="t" value="true"/> | |||||
| <target name="isfalse-true" > | |||||
| <property name="t" value="true" /> | |||||
| <condition property="isfalse-true"> | <condition property="isfalse-true"> | ||||
| <isfalse | <isfalse | ||||
| value="${t}"/> | |||||
| value="${t}" /> | |||||
| </condition> | </condition> | ||||
| <echo>${isfalse-true}</echo> | <echo>${isfalse-true}</echo> | ||||
| </target> | </target> | ||||
| <target name="isfalse-not"> | |||||
| <target name="isfalse-not" > | |||||
| <condition property="isfalse-not"> | <condition property="isfalse-not"> | ||||
| <isfalse | <isfalse | ||||
| value="this sentence is true"/> | |||||
| value="this sentence is true" /> | |||||
| </condition> | </condition> | ||||
| <echo>${isfalse-not}</echo> | <echo>${isfalse-not}</echo> | ||||
| </target> | </target> | ||||
| <target name="isfalse-false"> | |||||
| <target name="isfalse-false" > | |||||
| <condition property="isfalse-false"> | <condition property="isfalse-false"> | ||||
| <isfalse | <isfalse | ||||
| value="false"/> | |||||
| value="false" /> | |||||
| </condition> | </condition> | ||||
| <echo>${isfalse-false}</echo> | <echo>${isfalse-false}</echo> | ||||
| </target> | </target> | ||||
| <target name="isfalse-incomplete"> | |||||
| <target name="isfalse-incomplete" > | |||||
| <condition property="isfalse-incomplete"> | <condition property="isfalse-incomplete"> | ||||
| <isfalse/> | |||||
| <isfalse /> | |||||
| </condition> | </condition> | ||||
| <echo>${isfalse-incomplete}</echo> | <echo>${isfalse-incomplete}</echo> | ||||
| </target> | </target> | ||||
| <target name="testElse"> | <target name="testElse"> | ||||
| <condition property="unset" value="foo"> | <condition property="unset" value="foo"> | ||||
| <or/> | |||||
| <or /> | |||||
| </condition> | </condition> | ||||
| <condition property="value" value="foo" else="bar"> | <condition property="value" value="foo" else="bar"> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| <condition property="else" value="foo" else="bar"> | <condition property="else" value="foo" else="bar"> | ||||
| <or/> | |||||
| <or /> | |||||
| </condition> | </condition> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <isset property="unset"/> | |||||
| <isset property="unset" /> | |||||
| <not> | <not> | ||||
| <and> | <and> | ||||
| <equals arg1="${value}" arg2="foo"/> | |||||
| <equals arg1="${else}" arg2="bar"/> | |||||
| <equals arg1="${value}" arg2="foo" /> | |||||
| <equals arg1="${else}" arg2="bar" /> | |||||
| </and> | </and> | ||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| @@ -423,14 +423,14 @@ | |||||
| <target name="resourcesmatch-error"> | <target name="resourcesmatch-error"> | ||||
| <condition property="errorexpected"> | <condition property="errorexpected"> | ||||
| <resourcesmatch/> | |||||
| <resourcesmatch /> | |||||
| </condition> | </condition> | ||||
| </target> | </target> | ||||
| <target name="resourcesmatch-match-empty"> | <target name="resourcesmatch-match-empty"> | ||||
| <condition property="errorexpected"> | <condition property="errorexpected"> | ||||
| <resourcesmatch> | <resourcesmatch> | ||||
| <resources/> | |||||
| <resources /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </condition> | </condition> | ||||
| </target> | </target> | ||||
| @@ -438,7 +438,7 @@ | |||||
| <target name="resourcesmatch-match-one"> | <target name="resourcesmatch-match-one"> | ||||
| <condition property="errorexpected"> | <condition property="errorexpected"> | ||||
| <resourcesmatch> | <resourcesmatch> | ||||
| <string value="foo"/> | |||||
| <string value="foo" /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </condition> | </condition> | ||||
| </target> | </target> | ||||
| @@ -448,8 +448,8 @@ | |||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <resourcesmatch> | <resourcesmatch> | ||||
| <string value="foo"/> | |||||
| <string value="foo"/> | |||||
| <string value="foo" /> | |||||
| <string value="foo" /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| @@ -461,9 +461,9 @@ | |||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <resourcesmatch> | <resourcesmatch> | ||||
| <string value="foo"/> | |||||
| <string value="foo"/> | |||||
| <string value="foo"/> | |||||
| <string value="foo" /> | |||||
| <string value="foo" /> | |||||
| <string value="foo" /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| @@ -471,27 +471,27 @@ | |||||
| </target> | </target> | ||||
| <target name="resourcesmatch-differ"> | <target name="resourcesmatch-differ"> | ||||
| <echo file="match11.txt" message="foo"/> | |||||
| <fixcrlf file="match11.txt" eol="crlf" fixlast="true"/> | |||||
| <echo file="match11.txt" message="foo" /> | |||||
| <fixcrlf file="match11.txt" eol="crlf" fixlast="true" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <resourcesmatch> | <resourcesmatch> | ||||
| <file file="match11.txt"/> | |||||
| <string value="foo"/> | |||||
| <file file="match11.txt" /> | |||||
| <string value="foo" /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="resourcesmatch-match-text"> | <target name="resourcesmatch-match-text"> | ||||
| <echo file="match11.txt" message="foo"/> | |||||
| <fixcrlf file="match11.txt" eol="crlf"/> | |||||
| <echo file="match11.txt" message="foo" /> | |||||
| <fixcrlf file="match11.txt" eol="crlf" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <resourcesmatch astext="true"> | <resourcesmatch astext="true"> | ||||
| <file file="match11.txt"/> | |||||
| <string value="foo"/> | |||||
| <file file="match11.txt" /> | |||||
| <string value="foo" /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| @@ -503,18 +503,18 @@ | |||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <resourcesmatch> | <resourcesmatch> | ||||
| <resource name="foo" exists="false"/> | |||||
| <resource name="bar" exists="false"/> | |||||
| <resource name="baz" exists="false"/> | |||||
| <resource name="foo" exists="false" /> | |||||
| <resource name="bar" exists="false" /> | |||||
| <resource name="baz" exists="false" /> | |||||
| </resourcesmatch> | </resourcesmatch> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="cleanup"> | |||||
| <target name="cleanup" > | |||||
| <delete> | <delete> | ||||
| <fileset dir="." includes="match?.txt,match??.txt"/> | |||||
| <fileset dir="." includes="match?.txt,match??.txt" /> | |||||
| </delete> | </delete> | ||||
| </target> | </target> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <antversion atleast="1.7"/> | |||||
| <antversion atleast="1.7" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| Should be at least 1.7 | Should be at least 1.7 | ||||
| @@ -32,7 +32,7 @@ | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <antversion exactly="1.9.13"/> | |||||
| <antversion exactly="1.9.13" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| Should be exactly 1.9.13 | Should be exactly 1.9.13 | ||||
| @@ -41,11 +41,11 @@ | |||||
| </target> | </target> | ||||
| <target name="testatleastfail"> | <target name="testatleastfail"> | ||||
| <property name="version" value="1.8.9"/> | |||||
| <property name="version" value="1.8.9" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <antversion atleast="1.9.13"/> | |||||
| <antversion atleast="1.9.13" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| Should be at least 1.9.13 | Should be at least 1.9.13 | ||||
| @@ -53,11 +53,11 @@ | |||||
| </target> | </target> | ||||
| <target name="testexactlyfail"> | <target name="testexactlyfail"> | ||||
| <property name="version" value="1.8.0"/> | |||||
| <property name="version" value="1.8.0" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <antversion exactly="1.9.13"/> | |||||
| <antversion exactly="1.9.13" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| Should be exactly 1.9.13 | Should be exactly 1.9.13 | ||||
| @@ -22,37 +22,37 @@ | |||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <and> | <and> | ||||
| <os family="openvms"/> | |||||
| <os family="openvms" /> | |||||
| <or> | <or> | ||||
| <isfailure code="1"/> | |||||
| <isfailure code="3"/> | |||||
| <isfailure code="5"/> | |||||
| <isfailure code="7"/> | |||||
| <isfailure code="9"/> | |||||
| <isfailure code="1" /> | |||||
| <isfailure code="3" /> | |||||
| <isfailure code="5" /> | |||||
| <isfailure code="7" /> | |||||
| <isfailure code="9" /> | |||||
| <not> | <not> | ||||
| <and> | <and> | ||||
| <isfailure code="0"/> | |||||
| <isfailure code="2"/> | |||||
| <isfailure code="4"/> | |||||
| <isfailure code="6"/> | |||||
| <isfailure code="8"/> | |||||
| <isfailure code="0" /> | |||||
| <isfailure code="2" /> | |||||
| <isfailure code="4" /> | |||||
| <isfailure code="6" /> | |||||
| <isfailure code="8" /> | |||||
| </and> | </and> | ||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| </and> | </and> | ||||
| <and> | <and> | ||||
| <not> | <not> | ||||
| <os family="openvms"/> | |||||
| <os family="openvms" /> | |||||
| </not> | </not> | ||||
| <or> | <or> | ||||
| <isfailure code="0"/> | |||||
| <isfailure code="0" /> | |||||
| <not> | <not> | ||||
| <and> | <and> | ||||
| <isfailure code="1"/> | |||||
| <isfailure code="10"/> | |||||
| <isfailure code="50"/> | |||||
| <isfailure code="100"/> | |||||
| <isfailure code="255"/> | |||||
| <isfailure code="1" /> | |||||
| <isfailure code="10" /> | |||||
| <isfailure code="50" /> | |||||
| <isfailure code="100" /> | |||||
| <isfailure code="255" /> | |||||
| </and> | </and> | ||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| @@ -16,7 +16,7 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project default="all"> | <project default="all"> | ||||
| <target name="pass" description="check if a name of pass is ok"> | <target name="pass" description="check if a name of pass is ok"> | ||||
| <fail message="name of pass not seen in the signed pass.jar"> | <fail message="name of pass not seen in the signed pass.jar"> | ||||
| <condition> | <condition> | ||||
| @@ -1,5 +1,5 @@ | |||||
| <?xml version="1.0"?> | <?xml version="1.0"?> | ||||
| <project name="parsersupports"> | |||||
| <project name="parsersupports" > | |||||
| <!-- | <!-- | ||||
| * Licensed to the Apache Software Foundation (ASF) under one or more | * Licensed to the Apache Software Foundation (ASF) under one or more | ||||
| * contributor license agreements. See the NOTICE file distributed with | * contributor license agreements. See the NOTICE file distributed with | ||||
| @@ -20,7 +20,7 @@ | |||||
| <target name="testEmpty"> | <target name="testEmpty"> | ||||
| <condition property="empty"> | <condition property="empty"> | ||||
| <parsersupports/> | |||||
| <parsersupports /> | |||||
| </condition> | </condition> | ||||
| <fail>Expected failure before here</fail> | <fail>Expected failure before here</fail> | ||||
| </target> | </target> | ||||
| @@ -34,7 +34,7 @@ | |||||
| <target name="testNamespaces"> | <target name="testNamespaces"> | ||||
| <fail> | <fail> | ||||
| <condition> | |||||
| <condition > | |||||
| <not> | <not> | ||||
| <parsersupports feature="http://xml.org/sax/features/namespaces"/> | <parsersupports feature="http://xml.org/sax/features/namespaces"/> | ||||
| </not> | </not> | ||||
| @@ -61,13 +61,14 @@ | |||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <parsersupports | <parsersupports | ||||
| property="http://xml.org/sax/properties/declaration-handler"/> | |||||
| property="http://xml.org/sax/properties/declaration-handler" | |||||
| /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| Expected no property | Expected no property | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="testUnknownProperty"> | <target name="testUnknownProperty"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| @@ -77,7 +78,7 @@ | |||||
| Expected unsupported property. | Expected unsupported property. | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="testXercesProperty"> | <target name="testXercesProperty"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| @@ -90,5 +91,5 @@ | |||||
| Expected XSD support on Xerces. | Expected XSD support on Xerces. | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| </project> | |||||
| </project> | |||||
| @@ -27,7 +27,7 @@ | |||||
| <target name="testUndefined"> | <target name="testUndefined"> | ||||
| <condition property="testUndefined"> | <condition property="testUndefined"> | ||||
| <typefound/> | |||||
| <typefound /> | |||||
| </condition> | </condition> | ||||
| </target> | </target> | ||||
| @@ -72,4 +72,4 @@ | |||||
| </condition> | </condition> | ||||
| </target> | </target> | ||||
| </project> | |||||
| </project> | |||||
| @@ -17,9 +17,9 @@ | |||||
| --> | --> | ||||
| <project default="all"> | <project default="all"> | ||||
| <!-- | |||||
| <!-- | |||||
| Xor semantics | Xor semantics | ||||
| in out | in out | ||||
| == === | == === | ||||
| 00 0 | 00 0 | ||||
| @@ -29,7 +29,7 @@ | |||||
| --> | --> | ||||
| <target name="testEmpty"> | |||||
| <target name="testEmpty" > | |||||
| <fail message="empty test"> | <fail message="empty test"> | ||||
| <condition> | <condition> | ||||
| <xor/> | <xor/> | ||||
| @@ -37,76 +37,76 @@ | |||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="test1"> | |||||
| <target name="test1" > | |||||
| <fail message="testTrue"> | <fail message="testTrue"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <xor> | <xor> | ||||
| <istrue value="true"/> | |||||
| <istrue value="true" /> | |||||
| </xor> | </xor> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="test0"> | |||||
| <target name="test0" > | |||||
| <fail message="testFalse"> | <fail message="testFalse"> | ||||
| <condition> | <condition> | ||||
| <xor> | <xor> | ||||
| <istrue value=""/> | |||||
| <istrue value="" /> | |||||
| </xor> | </xor> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="test10"> | |||||
| <target name="test10" > | |||||
| <fail message="test10"> | <fail message="test10"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <xor> | <xor> | ||||
| <istrue value="true"/> | |||||
| <istrue value=""/> | |||||
| <istrue value="true" /> | |||||
| <istrue value="" /> | |||||
| </xor> | </xor> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="test01"> | |||||
| <target name="test01" > | |||||
| <fail message="test01"> | <fail message="test01"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <xor> | <xor> | ||||
| <istrue value=""/> | |||||
| <istrue value="true"/> | |||||
| <istrue value="" /> | |||||
| <istrue value="true" /> | |||||
| </xor> | </xor> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="test00"> | |||||
| <target name="test00" > | |||||
| <fail message="test10"> | <fail message="test10"> | ||||
| <condition> | <condition> | ||||
| <xor> | <xor> | ||||
| <istrue value=""/> | |||||
| <istrue value=""/> | |||||
| <istrue value="" /> | |||||
| <istrue value="" /> | |||||
| </xor> | </xor> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="test11"> | |||||
| <target name="test11" > | |||||
| <fail message="test11"> | <fail message="test11"> | ||||
| <condition> | <condition> | ||||
| <xor> | <xor> | ||||
| <istrue value=""/> | |||||
| <istrue value=""/> | |||||
| <istrue value="" /> | |||||
| <istrue value="" /> | |||||
| </xor> | </xor> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -21,11 +21,11 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| <copy file="copy.xml" tofile="${output}/copytest1.tmp"/> | |||||
| <copy file="copy.xml" tofile="${output}/copytest1.tmp" /> | |||||
| </target> | </target> | ||||
| <target name="test2"> | <target name="test2"> | ||||
| @@ -42,7 +42,7 @@ PRODUCT_BUILD=6.5 (BLD_65036) | |||||
| </concat> | </concat> | ||||
| <copy file="${output}/copy.filter.inp" tofile="${output}/copy.filter.out"> | <copy file="${output}/copy.filter.inp" tofile="${output}/copy.filter.out"> | ||||
| <filterset begintoken="6" endtoken="4"> | <filterset begintoken="6" endtoken="4"> | ||||
| <filter token=".2.1." value="2.6.4"/> | |||||
| <filter token=".2.1." value="2.6.4" /> | |||||
| </filterset> | </filterset> | ||||
| </copy> | </copy> | ||||
| <concat><path path="${output}/copy.filter.out"/></concat> | <concat><path path="${output}/copy.filter.out"/></concat> | ||||
| @@ -68,14 +68,14 @@ a=b= | |||||
| <copy file="copy.xml" tofile="${output}/copytest3b.tmp" overwrite="true"/> | <copy file="copy.xml" tofile="${output}/copytest3b.tmp" overwrite="true"/> | ||||
| </target><target name="test3Part2"> | </target><target name="test3Part2"> | ||||
| <!-- copy an old file onto a newer file (should not work) --> | <!-- copy an old file onto a newer file (should not work) --> | ||||
| <copy file="${output}/copytest3.tmp" tofile="${output}/copytest3b.tmp"/> | |||||
| <copy file="${output}/copytest3.tmp" tofile="${output}/copytest3b.tmp" /> | |||||
| <!-- copy an older file onto a new one, should succeed --> | <!-- copy an older file onto a new one, should succeed --> | ||||
| <copy file="${output}/copytest3.tmp" tofile="${output}/copytest3c.tmp" | <copy file="${output}/copytest3.tmp" tofile="${output}/copytest3c.tmp" | ||||
| overwrite="true" | overwrite="true" | ||||
| preservelastmodified="true"/> | |||||
| preservelastmodified="true" /> | |||||
| <!-- copy a newer file onto an older one (should work) --> | <!-- copy a newer file onto an older one (should work) --> | ||||
| <copy file="${output}/copytest3a.tmp" tofile="${output}/copytest3.tmp" | <copy file="${output}/copytest3a.tmp" tofile="${output}/copytest3.tmp" | ||||
| preservelastmodified="true"/> | |||||
| preservelastmodified="true" /> | |||||
| <!-- expected state : | <!-- expected state : | ||||
| 3a.tmp==3.tmp==copy.xml | 3a.tmp==3.tmp==copy.xml | ||||
| timeof(3a.tmp)==timeof(3.tmp)==now()-4 | timeof(3a.tmp)==timeof(3.tmp)==now()-4 | ||||
| @@ -219,46 +219,46 @@ a=b= | |||||
| <target name="prepareDirset"> | <target name="prepareDirset"> | ||||
| <touch mkdirs="true"> | <touch mkdirs="true"> | ||||
| <filelist dir="${from.dir}/dirset"> | <filelist dir="${from.dir}/dirset"> | ||||
| <file name="a/x/foo"/> | |||||
| <file name="a/y/foo"/> | |||||
| <file name="a/z/foo"/> | |||||
| <file name="b/x/foo"/> | |||||
| <file name="b/y/foo"/> | |||||
| <file name="b/z/foo"/> | |||||
| <file name="a/x/foo" /> | |||||
| <file name="a/y/foo" /> | |||||
| <file name="a/z/foo" /> | |||||
| <file name="b/x/foo" /> | |||||
| <file name="b/y/foo" /> | |||||
| <file name="b/z/foo" /> | |||||
| </filelist> | </filelist> | ||||
| </touch> | </touch> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <resourcecount when="ne" count="9"> | <resourcecount when="ne" count="9"> | ||||
| <dirset id="dirset" dir="${from.dir}/dirset"/> | |||||
| <dirset id="dirset" dir="${from.dir}/dirset" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| <resourcecount when="ne" count="6"> | <resourcecount when="ne" count="6"> | ||||
| <fileset dir="${from.dir}/dirset"/> | |||||
| <fileset dir="${from.dir}/dirset" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <delete dir="${to.dir}/dirset"/> | |||||
| <delete dir="${to.dir}/dirset" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <available file="${to.dir}/dirset"/> | |||||
| <available file="${to.dir}/dirset" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="testDirset" depends="prepareDirset"> | <target name="testDirset" depends="prepareDirset"> | ||||
| <copy todir="${to.dir}/dirset"> | <copy todir="${to.dir}/dirset"> | ||||
| <resources refid="dirset"/> | |||||
| <resources refid="dirset" /> | |||||
| </copy> | </copy> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <resourcecount when="ne" count="9"> | <resourcecount when="ne" count="9"> | ||||
| <dirset dir="${to.dir}/dirset"/> | |||||
| <dirset dir="${to.dir}/dirset" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| <resourcecount when="ne" count="0"> | <resourcecount when="ne" count="0"> | ||||
| <fileset dir="${to.dir}/dirset"/> | |||||
| <fileset dir="${to.dir}/dirset" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| @@ -37,18 +37,18 @@ | |||||
| </target> | </target> | ||||
| <target name="test4"> | <target name="test4"> | ||||
| <copydir src="." | |||||
| <copydir src="." | |||||
| dest="."/> | dest="."/> | ||||
| </target> | </target> | ||||
| <target name="test5"> | <target name="test5"> | ||||
| <mkdir dir="${output}/taskdefs.tmp"/> | |||||
| <copydir src="." | |||||
| <mkdir dir="${output}/taskdefs.tmp" /> | |||||
| <copydir src="." | |||||
| dest="${output}/taskdefs.tmp"/> | dest="${output}/taskdefs.tmp"/> | ||||
| </target> | </target> | ||||
| <target name="test6"> | <target name="test6"> | ||||
| <copydir src="." | |||||
| <copydir src="." | |||||
| dest="template.xml"/> | dest="template.xml"/> | ||||
| </target> | </target> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| @@ -37,12 +37,12 @@ | |||||
| </target> | </target> | ||||
| <target name="test4"> | <target name="test4"> | ||||
| <copyfile src="template.xml" | |||||
| <copyfile src="template.xml" | |||||
| dest="template.xml"/> | dest="template.xml"/> | ||||
| </target> | </target> | ||||
| <target name="test5"> | <target name="test5"> | ||||
| <copyfile src="copyfile.xml" | |||||
| <copyfile src="copyfile.xml" | |||||
| dest="${output}/copyfile.tmp"/> | dest="${output}/copyfile.tmp"/> | ||||
| </target> | </target> | ||||
| @@ -50,7 +50,7 @@ | |||||
| <mkdir dir="${output}/testdir"/> | <mkdir dir="${output}/testdir"/> | ||||
| <copyfile src="copyfile.xml" | <copyfile src="copyfile.xml" | ||||
| dest="${output}/testdir" | dest="${output}/testdir" | ||||
| forceoverwrite="true"/> | |||||
| forceoverwrite="true" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -21,21 +21,23 @@ | |||||
| <taskdef name="cvspass" classname="org.apache.tools.ant.taskdefs.CVSPass"/> | <taskdef name="cvspass" classname="org.apache.tools.ant.taskdefs.CVSPass"/> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| <cvspass/> | |||||
| <cvspass /> | |||||
| </target> | </target> | ||||
| <target name="test2"> | <target name="test2"> | ||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| </target> | </target> | ||||
| <!-- testPassFile --> | <!-- testPassFile --> | ||||
| <target name="test3"> | <target name="test3"> | ||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | ||||
| password="anoncvs" | password="anoncvs" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| </target> | </target> | ||||
| <!-- testPassFileDuplicateEntry --> | <!-- testPassFileDuplicateEntry --> | ||||
| @@ -43,15 +45,18 @@ | |||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | ||||
| password="anoncvs" | password="anoncvs" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | ||||
| password="anoncvs" | password="anoncvs" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:guest@cvs.tigris.org:/cvs" | cvsroot=":pserver:guest@cvs.tigris.org:/cvs" | ||||
| password="guest" | password="guest" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| </target> | </target> | ||||
| <!-- testPassFileMultipleEntry --> | <!-- testPassFileMultipleEntry --> | ||||
| @@ -59,18 +64,21 @@ | |||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic" | ||||
| password="anoncvs" | password="anoncvs" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:anoncvs@xml.apache.org:/home/cvspublic" | cvsroot=":pserver:anoncvs@xml.apache.org:/home/cvspublic" | ||||
| password="anoncvs" | password="anoncvs" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| <cvspass | <cvspass | ||||
| cvsroot=":pserver:guest@cvs.tigris.org:/cvs" | cvsroot=":pserver:guest@cvs.tigris.org:/cvs" | ||||
| password="guest" | password="guest" | ||||
| passfile="testpassfile.tmp"/> | |||||
| passfile="testpassfile.tmp" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="cleanup"> | |||||
| <target name="cleanup"> | |||||
| <delete file="testpassfile.tmp"/> | <delete file="testpassfile.tmp"/> | ||||
| </target> | </target> | ||||
| @@ -20,7 +20,8 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <property name="dir" location="${output}"/> | |||||
| <property name="dir" location="${output}" /> | |||||
| <basename property="dirname" file="${output}"/> | <basename property="dirname" file="${output}"/> | ||||
| <macrodef name="expectabsent"> | <macrodef name="expectabsent"> | ||||
| @@ -29,7 +30,7 @@ | |||||
| <fileset id="detritus" dir="@{target}" erroronmissingdir="false"/> | <fileset id="detritus" dir="@{target}" erroronmissingdir="false"/> | ||||
| <fail message="@{target} still has: ${toString:detritus}"> | <fail message="@{target} still has: ${toString:detritus}"> | ||||
| <condition> | <condition> | ||||
| <available file="@{target}"/> | |||||
| <available file="@{target}" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </sequential> | </sequential> | ||||
| @@ -41,11 +42,11 @@ | |||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <resourcecount when="greater" count="0"> | <resourcecount when="greater" count="0"> | ||||
| <fileset dir="${dir}"/> | |||||
| <fileset dir="${dir}" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| <not> | <not> | ||||
| <resourcecount count="${srcdirs}"> | <resourcecount count="${srcdirs}"> | ||||
| <dirset dir="${dir}"/> | |||||
| <dirset dir="${dir}" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| @@ -56,31 +57,31 @@ | |||||
| <target name="init"> | <target name="init"> | ||||
| <resourcecount property="srcdirs"> | <resourcecount property="srcdirs"> | ||||
| <dirset dir="${basedir}"/> | |||||
| <dirset dir="${basedir}" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| <resourcecount property="srcsize"> | <resourcecount property="srcsize"> | ||||
| <files includes="${basedir}/"/> | |||||
| <files includes="${basedir}/" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| <mkdir dir="${dir}"/> | |||||
| <mkdir dir="${dir}" /> | |||||
| <copy todir="${dir}"> | <copy todir="${dir}"> | ||||
| <fileset dir="${basedir}" excludes="${dirname},${dirname}/**"/> | |||||
| <fileset dir="${basedir}" excludes="${dirname},${dirname}/**" /> | |||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| <delete/> | |||||
| <delete /> | |||||
| </target> | </target> | ||||
| <target name="test2" depends="init"> | <target name="test2" depends="init"> | ||||
| <delete file="${dir}"/> | |||||
| <delete file="${dir}" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <resourcecount count="${srcsize}"> | <resourcecount count="${srcsize}"> | ||||
| <files includes="${dir}/"/> | |||||
| <files includes="${dir}/" /> | |||||
| </resourcecount> | </resourcecount> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| @@ -88,81 +89,81 @@ | |||||
| </target> | </target> | ||||
| <target name="test4" depends="init"> | <target name="test4" depends="init"> | ||||
| <delete dir="${dir}"/> | |||||
| <expectabsent/> | |||||
| <delete dir="${dir}" /> | |||||
| <expectabsent /> | |||||
| </target> | </target> | ||||
| <target name="test5" depends="init"> | <target name="test5" depends="init"> | ||||
| <delete dir="${dir}" includes="**"/> | |||||
| <expectdirsonly/> | |||||
| <delete dir="${dir}" includes="**" /> | |||||
| <expectdirsonly /> | |||||
| </target> | </target> | ||||
| <target name="test6" depends="init"> | <target name="test6" depends="init"> | ||||
| <delete dir="${dir}" includes="**" includeemptydirs="true"/> | |||||
| <expectabsent/> | |||||
| <delete dir="${dir}" includes="**" includeemptydirs="true" /> | |||||
| <expectabsent /> | |||||
| </target> | </target> | ||||
| <target name="test7" depends="init"> | <target name="test7" depends="init"> | ||||
| <delete> | <delete> | ||||
| <fileset id="fs" dir="${dir}"/> | |||||
| <fileset id="fs" dir="${dir}" /> | |||||
| </delete> | </delete> | ||||
| <expectdirsonly/> | |||||
| <expectdirsonly /> | |||||
| </target> | </target> | ||||
| <target name="test8" depends="init"> | <target name="test8" depends="init"> | ||||
| <delete includeemptydirs="true"> | <delete includeemptydirs="true"> | ||||
| <fileset dir="${dir}"/> | |||||
| <fileset dir="${dir}" /> | |||||
| </delete> | </delete> | ||||
| <expectabsent/> | |||||
| <expectabsent /> | |||||
| </target> | </target> | ||||
| <target name="test9" depends="init"> | <target name="test9" depends="init"> | ||||
| <delete> | <delete> | ||||
| <files> | <files> | ||||
| <include name="${dir}/**"/> | |||||
| <include name="${dir}/**"/> | |||||
| </files> | </files> | ||||
| </delete> | </delete> | ||||
| <expectabsent/> | |||||
| <expectabsent /> | |||||
| </target> | </target> | ||||
| <target name="test10"> | <target name="test10"> | ||||
| <delete> | <delete> | ||||
| <filelist dir="${dir}" files="test10absentfile"/> | |||||
| <filelist dir="${dir}" files="test10absentfile" /> | |||||
| </delete> | </delete> | ||||
| </target> | </target> | ||||
| <target name="test11"> | <target name="test11"> | ||||
| <delete failonerror="false"> | <delete failonerror="false"> | ||||
| <fileset dir="thisdenotesadirectorythatwillneverexistblah"/> | |||||
| <fileset dir="thisdenotesadirectorythatwillneverexistblah" /> | |||||
| </delete> | </delete> | ||||
| </target> | </target> | ||||
| <target name="test12"> | <target name="test12"> | ||||
| <delete failonerror="false" includeemptydirs="true"> | <delete failonerror="false" includeemptydirs="true"> | ||||
| <fileset dir="thisdenotesadirectorythatwillneverexistblah"/> | |||||
| <fileset dir="thisdenotesadirectorythatwillneverexistblah" /> | |||||
| </delete> | </delete> | ||||
| </target> | </target> | ||||
| <target name="test13" depends="init"> | <target name="test13" depends="init"> | ||||
| <delete includeemptydirs="true"> | <delete includeemptydirs="true"> | ||||
| <fileset dir="${dir}"/> | |||||
| <fileset dir="${dir}"/> | |||||
| <fileset dir="${dir}" /> | |||||
| <fileset dir="${dir}" /> | |||||
| </delete> | </delete> | ||||
| <expectabsent/> | |||||
| <expectabsent /> | |||||
| </target> | </target> | ||||
| <target name="test14" depends="init"> | <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> | ||||
| <target name="test15" depends="init"> | <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> | </target> | ||||
| <!-- Bugzilla 40313 --> | <!-- Bugzilla 40313 --> | ||||
| <target name="test16.init"> | <target name="test16.init"> | ||||
| @@ -188,4 +189,6 @@ | |||||
| <expectabsent target="${dir}/subdir"/> | <expectabsent target="${dir}/subdir"/> | ||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -19,14 +19,14 @@ | |||||
| <project name="dynamic-test" default="simple"> | <project name="dynamic-test" default="simple"> | ||||
| <path id="testclasses"> | <path id="testclasses"> | ||||
| <pathelement location="../../../../build/testcases"/> | |||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement location="../../../../build/testcases" /> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <target name="simple"> | <target name="simple"> | ||||
| <taskdef name="dyna" | <taskdef name="dyna" | ||||
| classname="org.apache.tools.ant.taskdefs.DynamicTask"> | classname="org.apache.tools.ant.taskdefs.DynamicTask"> | ||||
| <classpath refid="testclasses"/> | |||||
| <classpath refid="testclasses" /> | |||||
| </taskdef> | </taskdef> | ||||
| <dyna prop1="1" prop2="2"> | <dyna prop1="1" prop2="2"> | ||||
| <sub prop3="3"/> | <sub prop3="3"/> | ||||
| @@ -16,31 +16,31 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project> | <project> | ||||
| <property name="file" location="echoed.xml"/> | |||||
| <property name="file" location="echoed.xml" /> | |||||
| <target name="init"> | <target name="init"> | ||||
| <echoxml file="${file}"> | <echoxml file="${file}"> | ||||
| <project> | <project> | ||||
| <property name="foo" value="bar"/> | |||||
| <property name="foo" value="bar" /> | |||||
| <fail message="$$$${foo}=$${foo}"> | <fail message="$$$${foo}=$${foo}"> | ||||
| <condition> | <condition> | ||||
| <istrue value="${mustfail}"/> | |||||
| <istrue value="${mustfail}" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </project> | </project> | ||||
| </echoxml> | </echoxml> | ||||
| </target> | </target> | ||||
| <target name="tearDown"> | <target name="tearDown"> | ||||
| <delete file="${file}"/> | |||||
| <delete file="${file}" /> | |||||
| </target> | </target> | ||||
| <target name="testPass" depends="init"> | <target name="testPass" depends="init"> | ||||
| <ant antfile="${file}"/> | |||||
| <ant antfile="${file}" /> | |||||
| </target> | </target> | ||||
| <target name="testFail" depends="init"> | <target name="testFail" depends="init"> | ||||
| <ant antfile="${file}"> | <ant antfile="${file}"> | ||||
| <property name="mustfail" value="true"/> | |||||
| <property name="mustfail" value="true" /> | |||||
| </ant> | </ant> | ||||
| </target> | </target> | ||||
| <target name="testEmpty"> | <target name="testEmpty"> | ||||
| <echoxml/> | |||||
| <echoxml /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -21,18 +21,20 @@ | |||||
| <target name="test1"> | <target name="test1"> | ||||
| <!-- this test is supposed to bring a build exception because user and password is not allowed with plain encoding --> | <!-- this test is supposed to bring a build exception because user and password is not allowed with plain encoding --> | ||||
| <mail host="localhost" port="25" from="joe@abc.com" to="laura@xyz.com" subject="hello" encoding="plain" user="joe" password="secret"> | <mail host="localhost" port="25" from="joe@abc.com" to="laura@xyz.com" subject="hello" encoding="plain" user="joe" password="secret"> | ||||
| <message> | |||||
| <message> | |||||
| Hi Laura, how are you doing ? | Hi Laura, how are you doing ? | ||||
| </message> | |||||
| </message> | |||||
| </mail> | </mail> | ||||
| </target> | </target> | ||||
| <target name="test2"> | <target name="test2"> | ||||
| <!-- this test is supposed to bring a build exception because SSL is not allowed with plain encoding --> | |||||
| <mail host="localhost" port="465" from="joe@abc.com" to="laura@xyz.com" subject="hello" encoding="plain" ssl="true"> | |||||
| <message> | |||||
| <!-- this test is supposed to bring a build exception because SSL is not allowed with plain encoding --> | |||||
| <mail host="localhost" port="465" from="joe@abc.com" to="laura@xyz.com" subject="hello" encoding="plain" ssl="true"> | |||||
| <message> | |||||
| Hi Laura, how are you doing ? | Hi Laura, how are you doing ? | ||||
| </message> | |||||
| </mail> | |||||
| </target> | |||||
| </message> | |||||
| </mail> | |||||
| </target> | |||||
| </project> | </project> | ||||
| @@ -1,7 +1,7 @@ | |||||
| <project name="blabla" default="doit"> | <project name="blabla" default="doit"> | ||||
| <target name="blabla"> | <target name="blabla"> | ||||
| <exec executable="sh"> | <exec executable="sh"> | ||||
| <arg value="blabla.sh"/> | |||||
| <arg value="blabla.sh" /> | |||||
| </exec> | </exec> | ||||
| </target> | </target> | ||||
| <target name="doit"> | <target name="doit"> | ||||
| @@ -29,23 +29,23 @@ | |||||
| <target name="testText"> | <target name="testText"> | ||||
| <fail>testText</fail> | <fail>testText</fail> | ||||
| </target> | </target> | ||||
| <target name="testIf"> | <target name="testIf"> | ||||
| <fail if="foo"/> | |||||
| <fail if="foo" /> | |||||
| </target> | </target> | ||||
| <target name="testUnless"> | <target name="testUnless"> | ||||
| <fail unless="foo"/> | |||||
| <fail unless="foo" /> | |||||
| </target> | </target> | ||||
| <target name="testIfAndUnless"> | <target name="testIfAndUnless"> | ||||
| <fail unless="unless" if="if"/> | <fail unless="unless" if="if"/> | ||||
| </target> | </target> | ||||
| <target name="testNested1" description="should fail with default message"> | <target name="testNested1" description="should fail with default message"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -53,7 +53,7 @@ | |||||
| <target name="testNested2" description="should pass"> | <target name="testNested2" description="should pass"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or/> | |||||
| <or /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -61,7 +61,7 @@ | |||||
| <target name="testNested3" description="should fail"> | <target name="testNested3" description="should fail"> | ||||
| <fail message="testNested3"> | <fail message="testNested3"> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -69,7 +69,7 @@ | |||||
| <target name="testNested4a" description="should error"> | <target name="testNested4a" description="should error"> | ||||
| <fail if="if"> | <fail if="if"> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -77,7 +77,7 @@ | |||||
| <target name="testNested4b" description="should error"> | <target name="testNested4b" description="should error"> | ||||
| <fail unless="unless"> | <fail unless="unless"> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -85,7 +85,7 @@ | |||||
| <target name="testNested4c" description="should error"> | <target name="testNested4c" description="should error"> | ||||
| <fail if="if" unless="unless"> | <fail if="if" unless="unless"> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -93,10 +93,10 @@ | |||||
| <target name="testNested5" description="should error"> | <target name="testNested5" description="should error"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <or/> | |||||
| <or /> | |||||
| </condition> | </condition> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -104,7 +104,7 @@ | |||||
| <target name="testNested6" description="should fail with message"> | <target name="testNested6" description="should fail with message"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| testNested6 | testNested6 | ||||
| testNested6 | testNested6 | ||||
| @@ -114,15 +114,15 @@ testNested6 | |||||
| <target name="testNested7a" description="should error"> | <target name="testNested7a" description="should error"> | ||||
| <fail> | <fail> | ||||
| <condition/> | |||||
| <condition /> | |||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| <target name="testNested7b" description="should error"> | <target name="testNested7b" description="should error"> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <and/> | |||||
| <and/> | |||||
| <and /> | |||||
| <and /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </target> | </target> | ||||
| @@ -35,38 +35,38 @@ | |||||
| </target> | </target> | ||||
| <target name="test5"> | <target name="test5"> | ||||
| <filter token="year" value="2000"/> | |||||
| <copy file="filter1.txt" tofile="filtered.tmp" filtering="yes" overwrite="yes"/> | |||||
| <filter token="year" value="2000" /> | |||||
| <copy file="filter1.txt" tofile="filtered.tmp" filtering="yes" overwrite="yes" /> | |||||
| </target> | </target> | ||||
| <target name="test6"> | <target name="test6"> | ||||
| <filter token="year" value="2000"/> | |||||
| <filter token="year" value="2000" /> | |||||
| <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> | <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> | ||||
| <fileset dir="." includes="filter1.txt"/> | |||||
| <fileset dir="." includes="filter1.txt" /> | |||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="test7"> | <target name="test7"> | ||||
| <filter token="ROOT" value="root"/> | |||||
| <copy file="filter2.txt" tofile="filtered.tmp" filtering="yes" overwrite="yes"/> | |||||
| <filter token="ROOT" value="root" /> | |||||
| <copy file="filter2.txt" tofile="filtered.tmp" filtering="yes" overwrite="yes" /> | |||||
| </target> | </target> | ||||
| <target name="test8"> | <target name="test8"> | ||||
| <filter token="ROOT" value="root"/> | |||||
| <filter token="ROOT" value="root" /> | |||||
| <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> | <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> | ||||
| <fileset dir="." includes="filter2.txt"/> | <fileset dir="." includes="filter2.txt"/> | ||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="test9"> | <target name="test9"> | ||||
| <filter filtersfile="filterdefs.properties"/> | |||||
| <filter filtersfile="filterdefs.properties" /> | |||||
| <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> | <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> | ||||
| <fileset dir="." includes="filter3.txt"/> | <fileset dir="." includes="filter3.txt"/> | ||||
| </copy> | </copy> | ||||
| </target> | </target> | ||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete dir="taskdefs.tmp"/> | |||||
| <delete dir="taskdefs.tmp" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -19,23 +19,23 @@ | |||||
| <import file="../../buildfiletest-base.xml"/> | <import file="../../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${input}"/> | |||||
| <mkdir dir="${input}" /> | |||||
| <unzip src="input.zip" dest="${input}"/> | <unzip src="input.zip" dest="${input}"/> | ||||
| <unzip src="expected.zip" dest="${input}"/> | <unzip src="expected.zip" dest="${input}"/> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <macrodef name="assertequal"> | <macrodef name="assertequal"> | ||||
| <attribute name="junk" default=""/> | |||||
| <attribute name="name" default="Junk@{junk}.java"/> | |||||
| <attribute name="file1" default="${output}/@{name}"/> | |||||
| <attribute name="file2" default="${input}/expected/@{name}"/> | |||||
| <attribute name="junk" default="" /> | |||||
| <attribute name="name" default="Junk@{junk}.java" /> | |||||
| <attribute name="file1" default="${output}/@{name}" /> | |||||
| <attribute name="file2" default="${input}/expected/@{name}" /> | |||||
| <sequential> | <sequential> | ||||
| <fail message="@{file1} and @{file2} are different"> | <fail message="@{file1} and @{file2} are different"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <filesmatch file1="@{file1}" file2="@{file2}"/> | |||||
| <filesmatch file1="@{file1}" file2="@{file2}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -45,82 +45,82 @@ | |||||
| <target name="test1" depends="setUp"> | <target name="test1" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk1.java" | includes="Junk1.java" | ||||
| javafiles="true" tab="add" eol="crlf" eof="asis"/> | |||||
| <assertequal junk="1"/> | |||||
| javafiles="true" tab="add" eol="crlf" eof="asis" /> | |||||
| <assertequal junk="1" /> | |||||
| </target> | </target> | ||||
| <target name="test2" depends="setUp"> | <target name="test2" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk2.java" | includes="Junk2.java" | ||||
| javafiles="true" tab="add" cr="add" eol="crlf" eof="asis"/> | |||||
| <assertequal junk="2"/> | |||||
| javafiles="true" tab="add" cr="add" eol="crlf" eof="asis" /> | |||||
| <assertequal junk="2" /> | |||||
| </target> | </target> | ||||
| <target name="test3" depends="setUp"> | <target name="test3" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk3.java" | includes="Junk3.java" | ||||
| javafiles="true" tab="remove" eol="lf" eof="asis"/> | |||||
| <assertequal junk="3"/> | |||||
| javafiles="true" tab="remove" eol="lf" eof="asis" /> | |||||
| <assertequal junk="3" /> | |||||
| </target> | </target> | ||||
| <target name="test4" depends="setUp"> | <target name="test4" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk4.java" | includes="Junk4.java" | ||||
| javafiles="true" tab="remove" eol="lf" eof="asis"/> | |||||
| <assertequal junk="4"/> | |||||
| javafiles="true" tab="remove" eol="lf" eof="asis" /> | |||||
| <assertequal junk="4" /> | |||||
| </target> | </target> | ||||
| <target name="test5" depends="setUp"> | <target name="test5" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk5.java" | includes="Junk5.java" | ||||
| tab="remove" eol="lf" eof="asis"/> | |||||
| <assertequal junk="5"/> | |||||
| tab="remove" eol="lf" eof="asis" /> | |||||
| <assertequal junk="5" /> | |||||
| </target> | </target> | ||||
| <target name="test6" depends="setUp"> | <target name="test6" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk6.java" | includes="Junk6.java" | ||||
| tab="add" cr="remove" eol="crlf" eof="asis"/> | |||||
| <assertequal junk="6"/> | |||||
| tab="add" cr="remove" eol="crlf" eof="asis" /> | |||||
| <assertequal junk="6" /> | |||||
| </target> | </target> | ||||
| <target name="test7" depends="setUp"> | <target name="test7" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk7.java" | includes="Junk7.java" | ||||
| tab="add" cr="add" eof="asis"/> | |||||
| <assertequal junk="7"/> | |||||
| tab="add" cr="add" eof="asis" /> | |||||
| <assertequal junk="7" /> | |||||
| </target> | </target> | ||||
| <target name="test8" depends="setUp"> | <target name="test8" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk8.java" | includes="Junk8.java" | ||||
| javafiles="true" tab="add" cr="add" eof="add"/> | |||||
| <assertequal junk="8"/> | |||||
| javafiles="true" tab="add" cr="add" eof="add" /> | |||||
| <assertequal junk="8" /> | |||||
| </target> | </target> | ||||
| <target name="test9" depends="setUp"> | <target name="test9" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk9.java" | includes="Junk9.java" | ||||
| javafiles="true" tab="remove" cr="remove" eof="remove"/> | |||||
| <assertequal junk="9"/> | |||||
| javafiles="true" tab="remove" cr="remove" eof="remove" /> | |||||
| <assertequal junk="9" /> | |||||
| </target> | </target> | ||||
| <target name="testMacLines" depends="setUp"> | <target name="testMacLines" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Mac2Unix" eol="lf"/> | |||||
| <assertequal name="Mac2Unix"/> | |||||
| includes="Mac2Unix" eol="lf" /> | |||||
| <assertequal name="Mac2Unix" /> | |||||
| </target> | </target> | ||||
| <target name="testNoOverwrite" depends="test1"> | <target name="testNoOverwrite" depends="test1"> | ||||
| <touch file="${output}/Junk1.java" millis="0"/> | |||||
| <touch file="${output}/Junk1.java" millis="0" /> | |||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="Junk1.java" preservelastmodified="false" | includes="Junk1.java" preservelastmodified="false" | ||||
| javafiles="true" tab="add" eol="crlf" eof="asis"/> | |||||
| javafiles="true" tab="add" eol="crlf" eof="asis" /> | |||||
| <fail message="overwrote unchanged output file">Q | <fail message="overwrote unchanged output file">Q | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <isfileselected file="${output}/Junk1.java"> | <isfileselected file="${output}/Junk1.java"> | ||||
| <date when="equal" millis="0"/> | |||||
| <date when="equal" millis="0" /> | |||||
| </isfileselected> | </isfileselected> | ||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| @@ -130,74 +130,74 @@ | |||||
| <target name="testEncoding" depends="setUp"> | <target name="testEncoding" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="input.crlf.utf16" | includes="input.crlf.utf16" | ||||
| javafiles="false" cr="remove" encoding="UnicodeBig"/> | |||||
| javafiles="false" cr="remove" encoding="UnicodeBig" /> | |||||
| <assertequal file1="${output}/input.crlf.utf16" | <assertequal file1="${output}/input.crlf.utf16" | ||||
| file2="${input}/expected/input.lf.utf16"/> | |||||
| file2="${input}/expected/input.lf.utf16" /> | |||||
| </target> | </target> | ||||
| <target name="testOutputEncoding" depends="setUp"> | <target name="testOutputEncoding" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="input.crlf.utf16" | includes="input.crlf.utf16" | ||||
| javafiles="false" eol="lf" encoding="UnicodeBig" | javafiles="false" eol="lf" encoding="UnicodeBig" | ||||
| outputencoding="ascii"/> | |||||
| outputencoding="ascii" /> | |||||
| <assertequal file1="${output}/input.crlf.utf16" | <assertequal file1="${output}/input.crlf.utf16" | ||||
| file2="${input}/expected/input.lf.ascii"/> | |||||
| file2="${input}/expected/input.lf.ascii" /> | |||||
| </target> | </target> | ||||
| <target name="testLongLines" depends="setUp"> | <target name="testLongLines" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="longlines.crlf" | includes="longlines.crlf" | ||||
| javafiles="false" cr="remove"/> | |||||
| javafiles="false" cr="remove" /> | |||||
| <assertequal file1="${output}/longlines.crlf" | <assertequal file1="${output}/longlines.crlf" | ||||
| file2="${input}/expected/longlines.lf"/> | |||||
| file2="${input}/expected/longlines.lf" /> | |||||
| </target> | </target> | ||||
| <target name="testCrCrLfSequence-unix" depends="setUp"> | <target name="testCrCrLfSequence-unix" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="crcrlf" eol="lf"/> | |||||
| includes="crcrlf" eol="lf" /> | |||||
| <assertequal file1="${output}/crcrlf" | <assertequal file1="${output}/crcrlf" | ||||
| file2="${input}/expected/crcrlf.unix"/> | |||||
| file2="${input}/expected/crcrlf.unix" /> | |||||
| </target> | </target> | ||||
| <target name="testCrCrLfSequence-dos" depends="setUp"> | <target name="testCrCrLfSequence-dos" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="crcrlf" eol="crlf"/> | |||||
| includes="crcrlf" eol="crlf" /> | |||||
| <assertequal file1="${output}/crcrlf" | <assertequal file1="${output}/crcrlf" | ||||
| file2="${input}/expected/crcrlf.dos"/> | |||||
| file2="${input}/expected/crcrlf.dos" /> | |||||
| </target> | </target> | ||||
| <target name="testCrCrLfSequence-mac" depends="setUp"> | <target name="testCrCrLfSequence-mac" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="crcrlf" eol="cr"/> | |||||
| includes="crcrlf" eol="cr" /> | |||||
| <assertequal file1="${output}/crcrlf" | <assertequal file1="${output}/crcrlf" | ||||
| file2="${input}/expected/crcrlf.mac"/> | |||||
| file2="${input}/expected/crcrlf.mac" /> | |||||
| </target> | </target> | ||||
| <target name="testFixlastDos" depends="setUp"> | <target name="testFixlastDos" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="fixlastfalse.lf" eol="crlf"/> | |||||
| includes="fixlastfalse.lf" eol="crlf" /> | |||||
| <assertequal file1="${output}/fixlastfalse.lf" | <assertequal file1="${output}/fixlastfalse.lf" | ||||
| file2="${input}/expected/fixlast.dos"/> | |||||
| file2="${input}/expected/fixlast.dos" /> | |||||
| </target> | </target> | ||||
| <target name="testFixlastFalseMac" depends="setUp"> | <target name="testFixlastFalseMac" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}/input" destdir="${output}" | <fixcrlf srcdir="${input}/input" destdir="${output}" | ||||
| includes="fixlastfalse.lf" eol="cr" fixlast="false"/> | |||||
| includes="fixlastfalse.lf" eol="cr" fixlast="false" /> | |||||
| <assertequal file1="${output}/fixlastfalse.lf" | <assertequal file1="${output}/fixlastfalse.lf" | ||||
| file2="${input}/expected/fixlastfalse.mac"/> | |||||
| file2="${input}/expected/fixlastfalse.mac" /> | |||||
| </target> | </target> | ||||
| <!-- Bugzilla Report 20840 --> | <!-- Bugzilla Report 20840 --> | ||||
| <target name="createParentDirs" depends="setUp"> | <target name="createParentDirs" depends="setUp"> | ||||
| <fixcrlf srcdir="${input}" destdir="${output}" includes="input/Junk1.java"/> | |||||
| <fixcrlf srcdir="${input}" destdir="${output}" includes="input/Junk1.java" /> | |||||
| </target> | </target> | ||||
| <target name="testFixFile" depends="setUp"> | <target name="testFixFile" depends="setUp"> | ||||
| <fixcrlf file="${input}/input/longlines.crlf" destdir="${output}"/> | |||||
| <fixcrlf file="${input}/input/longlines.crlf" destdir="${output}" /> | |||||
| <fail message="didn't create output file"> | <fail message="didn't create output file"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${output}/longlines.crlf"/> | |||||
| <available file="${output}/longlines.crlf" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -209,123 +209,123 @@ | |||||
| <target name="testPreserveLastModified" depends="setUp"> | <target name="testPreserveLastModified" depends="setUp"> | ||||
| <fixcrlf file="${input}/input/longlines.crlf" destdir="${output}" | <fixcrlf file="${input}/input/longlines.crlf" destdir="${output}" | ||||
| preservelastmodified="true"/> | |||||
| preservelastmodified="true" /> | |||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <uptodate srcfile="${output}/longlines.crlf" | <uptodate srcfile="${output}/longlines.crlf" | ||||
| targetfile="${input}/input/longlines.crlf"/> | |||||
| targetfile="${input}/input/longlines.crlf" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <touch file="${output}/longlines.crlf" millis="0"/> | |||||
| <touch file="${output}/longlines.crlf" millis="0" /> | |||||
| <fixcrlf file="${output}/longlines.crlf" destdir="${output}" eol="lf" | <fixcrlf file="${output}/longlines.crlf" destdir="${output}" eol="lf" | ||||
| preservelastmodified="true"/> | |||||
| preservelastmodified="true" /> | |||||
| <fileset id="fs" file="${output}/longlines.crlf"> | <fileset id="fs" file="${output}/longlines.crlf"> | ||||
| <date when="equal" millis="0"/> | |||||
| <date when="equal" millis="0" /> | |||||
| </fileset> | </fileset> | ||||
| <property name="fs" refid="fs"/> | |||||
| <fail unless="fs"/> | |||||
| <property name="fs" refid="fs" /> | |||||
| <fail unless="fs" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter1" depends="setUp"> | <target name="testFilter1" depends="setUp"> | ||||
| <copy file="${input}/input/Junk1.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk1.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="add" | <fixcrlf javafiles="true" tab="add" | ||||
| eol="crlf" eof="asis"/> | |||||
| eol="crlf" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="1"/> | |||||
| <assertequal junk="1" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter2" depends="setUp"> | <target name="testFilter2" depends="setUp"> | ||||
| <copy file="${input}/input/Junk2.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk2.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="add" cr="add" eol="crlf" eof="asis"/> | |||||
| <fixcrlf javafiles="true" tab="add" cr="add" eol="crlf" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="2"/> | |||||
| <assertequal junk="2" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter3" depends="setUp"> | <target name="testFilter3" depends="setUp"> | ||||
| <copy file="${input}/input/Junk3.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk3.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="remove" eol="lf" eof="asis"/> | |||||
| <fixcrlf javafiles="true" tab="remove" eol="lf" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="3"/> | |||||
| <assertequal junk="3" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter4" depends="setUp"> | <target name="testFilter4" depends="setUp"> | ||||
| <copy file="${input}/input/Junk4.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk4.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="remove" eol="lf" eof="asis"/> | |||||
| <fixcrlf javafiles="true" tab="remove" eol="lf" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="4"/> | |||||
| <assertequal junk="4" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter5" depends="setUp"> | <target name="testFilter5" depends="setUp"> | ||||
| <copy file="${input}/input/Junk5.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk5.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf tab="remove" eol="lf" eof="asis"/> | |||||
| <fixcrlf tab="remove" eol="lf" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="5"/> | |||||
| <assertequal junk="5" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter6" depends="setUp"> | <target name="testFilter6" depends="setUp"> | ||||
| <copy file="${input}/input/Junk6.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk6.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf tab="add" cr="remove" eol="crlf" eof="asis"/> | |||||
| <fixcrlf tab="add" cr="remove" eol="crlf" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="6"/> | |||||
| <assertequal junk="6" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter7" depends="setUp"> | <target name="testFilter7" depends="setUp"> | ||||
| <copy file="${input}/input/Junk7.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk7.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf tab="add" cr="add" eof="asis"/> | |||||
| <fixcrlf tab="add" cr="add" eof="asis" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="7"/> | |||||
| <assertequal junk="7" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter8" depends="setUp"> | <target name="testFilter8" depends="setUp"> | ||||
| <copy file="${input}/input/Junk8.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk8.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="add" cr="add" eof="add"/> | |||||
| <fixcrlf javafiles="true" tab="add" cr="add" eof="add" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="8"/> | |||||
| <assertequal junk="8" /> | |||||
| </target> | </target> | ||||
| <target name="testFilter9" depends="setUp"> | <target name="testFilter9" depends="setUp"> | ||||
| <copy file="${input}/input/Junk9.java" todir="${output}" overwrite="true"> | <copy file="${input}/input/Junk9.java" todir="${output}" overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="remove" cr="remove" eof="remove"/> | |||||
| <fixcrlf javafiles="true" tab="remove" cr="remove" eof="remove" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal junk="9"/> | |||||
| <assertequal junk="9" /> | |||||
| </target> | </target> | ||||
| <target name="testCannotDoubleEof" depends="test8"> | <target name="testCannotDoubleEof" depends="test8"> | ||||
| <fixcrlf file="${output}/Junk8.java" | <fixcrlf file="${output}/Junk8.java" | ||||
| javafiles="true" tab="add" cr="add" eof="add"/> | |||||
| <assertequal junk="8"/> | |||||
| javafiles="true" tab="add" cr="add" eof="add" /> | |||||
| <assertequal junk="8" /> | |||||
| </target> | </target> | ||||
| <target name="testTabInLiteralInComment" depends="setUp"> | <target name="testTabInLiteralInComment" depends="setUp"> | ||||
| <copy file="${input}/input/tab_in_literal_in_comment" todir="${output}" | <copy file="${input}/input/tab_in_literal_in_comment" todir="${output}" | ||||
| overwrite="true"> | overwrite="true"> | ||||
| <filterchain> | <filterchain> | ||||
| <fixcrlf javafiles="true" tab="remove" eol="lf" fixlast="false"/> | |||||
| <fixcrlf javafiles="true" tab="remove" eol="lf" fixlast="false" /> | |||||
| </filterchain> | </filterchain> | ||||
| </copy> | </copy> | ||||
| <assertequal name="tab_in_literal_in_comment"/> | |||||
| <assertequal name="tab_in_literal_in_comment" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -41,13 +41,13 @@ | |||||
| <target name="test6"> | <target name="test6"> | ||||
| <get src="http://www.apache.org/" dest="get.tmp" userAgent="Apache Ant/test"/> | <get src="http://www.apache.org/" dest="get.tmp" userAgent="Apache Ant/test"/> | ||||
| <fileset id="t6" file="get.tmp"/> | |||||
| <pathconvert property="t6" refid="t6" setonempty="false"/> | |||||
| <fileset id="t6" file="get.tmp" /> | |||||
| <pathconvert property="t6" refid="t6" setonempty="false" /> | |||||
| <fail message="get failed"> | <fail message="get failed"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <isset property="t6"/> | |||||
| <isset property="t6" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -57,42 +57,42 @@ | |||||
| <get src="" dest="" userAgent=""/> | <get src="" dest="" userAgent=""/> | ||||
| </target> | </target> | ||||
| <target name="testUseTimestamp" depends="-90s,-timestamp"/> | |||||
| <target name="testUseTimestamp" depends="-90s,-timestamp" /> | |||||
| <target name="-90s"> | <target name="-90s"> | ||||
| <property name="off" value="-90"/> | |||||
| <property name="unit" value="second"/> | |||||
| <property name="off" value="-90" /> | |||||
| <property name="unit" value="second" /> | |||||
| </target> | </target> | ||||
| <target name="testUseTomorrow" depends="+1d,-timestamp"/> | |||||
| <target name="testUseTomorrow" depends="+1d,-timestamp" /> | |||||
| <target name="+1d"> | <target name="+1d"> | ||||
| <property name="off" value="1"/> | |||||
| <property name="unit" value="day"/> | |||||
| <property name="off" value="1" /> | |||||
| <property name="unit" value="day" /> | |||||
| </target> | </target> | ||||
| <target name="-timestamp"> | <target name="-timestamp"> | ||||
| <property name="pat" value="yyyyMMddHHmm"/> | |||||
| <property name="pat" value="yyyyMMddHHmm" /> | |||||
| <tstamp> | <tstamp> | ||||
| <format property="dt" pattern="${pat}" offset="${off}" unit="${unit}"/> | |||||
| <format property="dt" pattern="${pat}" offset="${off}" unit="${unit}" /> | |||||
| </tstamp> | </tstamp> | ||||
| <touch file="get.tmp" datetime="${dt}" pattern="${pat}"/> | |||||
| <touch file="get.tmp" datetime="${dt}" pattern="${pat}" /> | |||||
| <get src="http://www.w3.org/MarkUp" dest="get.tmp" | <get src="http://www.w3.org/MarkUp" dest="get.tmp" | ||||
| usetimestamp="true" verbose="true"/> | |||||
| usetimestamp="true" verbose="true" /> | |||||
| <fileset id="ts" file="get.tmp"> | <fileset id="ts" file="get.tmp"> | ||||
| <date when="equal" datetime="${dt}" pattern="${pat}"/> | |||||
| <date when="equal" datetime="${dt}" pattern="${pat}" /> | |||||
| </fileset> | </fileset> | ||||
| <pathconvert property="ts" refid="ts" setonempty="false"/> | |||||
| <pathconvert property="ts" refid="ts" setonempty="false" /> | |||||
| <fail message="get w/ timestamp should have failed."> | <fail message="get w/ timestamp should have failed."> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <isset property="ts"/> | |||||
| <isset property="ts" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -100,7 +100,7 @@ | |||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete> | <delete> | ||||
| <fileset dir="${basedir}" includes="get.tmp"/> | |||||
| <fileset dir="${basedir}" includes="get.tmp" /> | |||||
| </delete> | </delete> | ||||
| </target> | </target> | ||||
| @@ -27,17 +27,17 @@ | |||||
| </target> | </target> | ||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete file="asf-logo.gif"/> | |||||
| <delete file="asf-logo.gif" /> | |||||
| </target> | </target> | ||||
| <target name="testGzipTask"> | <target name="testGzipTask"> | ||||
| <ant antfile="gzip.xml" target="realTest"/> | |||||
| <gunzip src="asf-logo.gif.gz" dest="asf-logo.gif"/> | |||||
| <ant antfile="gzip.xml" target="cleanup"/> | |||||
| <ant antfile="gzip.xml" target="realTest" /> | |||||
| <gunzip src="asf-logo.gif.gz" dest="asf-logo.gif" /> | |||||
| <ant antfile="gzip.xml" target="cleanup" /> | |||||
| </target> | </target> | ||||
| <target name="realTest"> | <target name="realTest"> | ||||
| <gunzip src="expected/asf-logo.gif.gz" dest="asf-logo.gif"/> | |||||
| <gunzip src="expected/asf-logo.gif.gz" dest="asf-logo.gif" /> | |||||
| </target> | </target> | ||||
| <target name="realTestWithResource"> | <target name="realTestWithResource"> | ||||
| @@ -31,26 +31,26 @@ | |||||
| </target> | </target> | ||||
| <target name="test4"> | <target name="test4"> | ||||
| <gzip src="gzip.xml" zipfile="."/> | |||||
| <gzip src="gzip.xml" zipfile="." /> | |||||
| </target> | </target> | ||||
| <target name="realTest"> | <target name="realTest"> | ||||
| <gzip src="../asf-logo.gif" zipfile="asf-logo.gif.gz"/> | |||||
| <gzip src="../asf-logo.gif" zipfile="asf-logo.gif.gz" /> | |||||
| </target> | </target> | ||||
| <target name="realTestWithResource"> | <target name="realTestWithResource"> | ||||
| <gzip zipfile="asf-logo.gif.gz"> | <gzip zipfile="asf-logo.gif.gz"> | ||||
| <file file="../asf-logo.gif"/> | <file file="../asf-logo.gif"/> | ||||
| </gzip> | |||||
| </gzip> | |||||
| </target> | </target> | ||||
| <target name="testDateCheck"> | <target name="testDateCheck"> | ||||
| <touch file="asf-logo.gif.gz"/> | <touch file="asf-logo.gif.gz"/> | ||||
| <gzip src="../asf-logo.gif" zipfile="asf-logo.gif.gz"/> | |||||
| <gzip src="../asf-logo.gif" zipfile="asf-logo.gif.gz" /> | |||||
| </target> | </target> | ||||
| <target name="cleanup"> | <target name="cleanup"> | ||||
| <delete file="asf-logo.gif.gz"/> | |||||
| <delete file="asf-logo.gif.gz" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -16,14 +16,14 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project name="import-test" default="main" basedir="."> | <project name="import-test" default="main" basedir="."> | ||||
| <echo>Before import</echo> | |||||
| <echo>Before import</echo> | |||||
| <import file="imported.xml"/> | <import file="imported.xml"/> | ||||
| <echo message="After import"/> | <echo message="After import"/> | ||||
| <target name="import-init"> | <target name="import-init"> | ||||
| <echo message="In import-init"/> | |||||
| <echo message="In import-init" /> | |||||
| </target> | </target> | ||||
| <target name="main" depends="imported"> | <target name="main" depends="imported"> | ||||
| @@ -18,9 +18,9 @@ | |||||
| <project name="imported-test" default="imported" basedir="."> | <project name="imported-test" default="imported" basedir="."> | ||||
| <echo message="In imported top"/> | <echo message="In imported top"/> | ||||
| <target name="imported" depends="import-init"> | |||||
| <echo message="In imported target"/> | |||||
| <target name="imported" depends="import-init" > | |||||
| <echo message="In imported target" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -19,3 +19,4 @@ | |||||
| <import file="../unnamed1.xml"/> | <import file="../unnamed1.xml"/> | ||||
| <import file="../unnamed2.xml"/> | <import file="../unnamed2.xml"/> | ||||
| </project> | </project> | ||||
| @@ -25,7 +25,7 @@ | |||||
| <classpath> | <classpath> | ||||
| <pathelement path="../../../../build/testcases"/> | <pathelement path="../../../../build/testcases"/> | ||||
| <pathelement location="${java.home}/lib/classes.zip"/> | |||||
| <pathelement location="${java.home}/lib/classes.zip" /> | |||||
| </classpath> | </classpath> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| @@ -34,7 +34,7 @@ | |||||
| <java className="org.apache.tools.ant.taskdefs.dir1.B"> | <java className="org.apache.tools.ant.taskdefs.dir1.B"> | ||||
| <classpath> | <classpath> | ||||
| <pathelement path="../../../../build/testcases"/> | <pathelement path="../../../../build/testcases"/> | ||||
| <pathelement location="${java.home}/lib/classes.zip"/> | |||||
| <pathelement location="${java.home}/lib/classes.zip" /> | |||||
| </classpath> | </classpath> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| @@ -23,32 +23,35 @@ | |||||
| </target> | </target> | ||||
| <target name="test2"> | <target name="test2"> | ||||
| <input message="Press Return key to continue..."/> | |||||
| <input message="Press Return key to continue..." /> | |||||
| </target> | </target> | ||||
| <target name="test3"> | <target name="test3"> | ||||
| <input message="All data is going to be deleted from DB continue?" | <input message="All data is going to be deleted from DB continue?" | ||||
| validargs="y,n"/> | |||||
| validargs="y,n" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="test5"> | <target name="test5"> | ||||
| <input message="All data is going to be deleted from db continue (y/n)?" | <input message="All data is going to be deleted from db continue (y/n)?" | ||||
| validargs="y,n"/> | |||||
| validargs="y,n" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="test6"> | <target name="test6"> | ||||
| <input message="Please enter db-username:" | <input message="Please enter db-username:" | ||||
| addproperty="db.user"/> | |||||
| addproperty="db.user" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testPropertyFileInlineHandler"> | <target name="testPropertyFileInlineHandler"> | ||||
| <input message="Press Return key to continue..." addproperty="test"> | <input message="Press Return key to continue..." addproperty="test"> | ||||
| <handler type="propertyfile"/> | |||||
| <handler type="propertyfile" /> | |||||
| </input> | </input> | ||||
| <fail> | <fail> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="${test}" arg2="test"/> | |||||
| <equals arg1="${test}" arg2="test" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -56,12 +59,12 @@ | |||||
| <target name="testDefaultInlineHandler"> | <target name="testDefaultInlineHandler"> | ||||
| <input message="Press Return key to continue..." addproperty="test"> | <input message="Press Return key to continue..." addproperty="test"> | ||||
| <handler type="default"/> | |||||
| <handler type="default" /> | |||||
| </input> | </input> | ||||
| <fail message="$${test} = ${test}"> | <fail message="$${test} = ${test}"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="${test}" arg2="foo"/> | |||||
| <equals arg1="${test}" arg2="foo" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -69,13 +72,13 @@ | |||||
| <target name="testGreedyInlineHandler"> | <target name="testGreedyInlineHandler"> | ||||
| <input message="Press Return key to continue..." addproperty="test"> | <input message="Press Return key to continue..." addproperty="test"> | ||||
| <handler type="greedy"/> | |||||
| <handler type="greedy" /> | |||||
| </input> | </input> | ||||
| <loadfile srcFile="input.stdin" property="input"/> | |||||
| <loadfile srcFile="input.stdin" property="input" /> | |||||
| <fail message="$${test} = ${test}"> | <fail message="$${test} = ${test}"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="${test}" arg2="${input}"/> | |||||
| <equals arg1="${test}" arg2="${input}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -83,13 +86,13 @@ | |||||
| <target name="testGreedyInlineHandlerClassname"> | <target name="testGreedyInlineHandlerClassname"> | ||||
| <input message="Press Return key to continue..." addproperty="test"> | <input message="Press Return key to continue..." addproperty="test"> | ||||
| <handler classname="org.apache.tools.ant.input.GreedyInputHandler"/> | |||||
| <handler classname="org.apache.tools.ant.input.GreedyInputHandler" /> | |||||
| </input> | </input> | ||||
| <loadfile srcFile="input.stdin" property="input"/> | |||||
| <loadfile srcFile="input.stdin" property="input" /> | |||||
| <fail message="$${test} = ${test}"> | <fail message="$${test} = ${test}"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="${test}" arg2="${input}"/> | |||||
| <equals arg1="${test}" arg2="${input}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -97,17 +100,17 @@ | |||||
| <target name="testGreedyInlineHandlerRefid"> | <target name="testGreedyInlineHandlerRefid"> | ||||
| <typedef name="greedy" | <typedef name="greedy" | ||||
| classname="org.apache.tools.ant.input.GreedyInputHandler"/> | |||||
| <greedy id="greedy"/> | |||||
| classname="org.apache.tools.ant.input.GreedyInputHandler" /> | |||||
| <greedy id="greedy" /> | |||||
| <input message="Press Return key to continue..." addproperty="test"> | <input message="Press Return key to continue..." addproperty="test"> | ||||
| <handler refid="greedy"/> | |||||
| <handler refid="greedy" /> | |||||
| </input> | </input> | ||||
| <loadfile srcFile="input.stdin" property="input"/> | |||||
| <loadfile srcFile="input.stdin" property="input" /> | |||||
| <fail message="$${test} = ${test}"> | <fail message="$${test} = ${test}"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <equals arg1="${test}" arg2="${input}"/> | |||||
| <equals arg1="${test}" arg2="${input}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <property name="tmp.jar" location="${output}/tmp.jar"/> | <property name="tmp.jar" location="${output}/tmp.jar"/> | ||||
| @@ -35,26 +35,34 @@ | |||||
| </target> | </target> | ||||
| <target name="test2"> | <target name="test2"> | ||||
| <jar jarfile="jar.tmp" | |||||
| manifest="none"/> | |||||
| <jar | |||||
| jarfile="jar.tmp" | |||||
| manifest="none" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="test3"> | <target name="test3"> | ||||
| <jar destfile="jar.tmp" | |||||
| whenempty="format C: /y"/> | |||||
| <jar | |||||
| destfile="jar.tmp" | |||||
| whenempty="format C: /y" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="test4"> | <target name="test4"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| basedir="." | |||||
| includes="jar.xml"/> | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | |||||
| includes="jar.xml" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testNoRecreateWithUpdate"> | <target name="testNoRecreateWithUpdate"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | basedir="." | ||||
| includes="jar.xml" | includes="jar.xml" | ||||
| update="true"/> | |||||
| update="true" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testRecreateNewerFileSetup" depends="test4"> | <target name="testRecreateNewerFileSetup" depends="test4"> | ||||
| @@ -62,29 +70,37 @@ | |||||
| </target> | </target> | ||||
| <target name="testRecreateWithoutUpdateAdditionalFiles"> | <target name="testRecreateWithoutUpdateAdditionalFiles"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| includes="*.xml" | includes="*.xml" | ||||
| basedir="."/> | |||||
| basedir="." | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testRecreateWithUpdateAdditionalFiles"> | <target name="testRecreateWithUpdateAdditionalFiles"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | basedir="." | ||||
| includes="*.xml" | includes="*.xml" | ||||
| update="true"/> | |||||
| update="true" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testRecreateWithoutUpdateNewerFile"> | <target name="testRecreateWithoutUpdateNewerFile"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | basedir="." | ||||
| includes="jar.xml"/> | |||||
| includes="jar.xml" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testRecreateWithUpdateNewerFile"> | <target name="testRecreateWithUpdateNewerFile"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | basedir="." | ||||
| includes="jar.xml" | includes="jar.xml" | ||||
| update="true"/> | |||||
| update="true" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testManifestStaysIntact"> | <target name="testManifestStaysIntact"> | ||||
| @@ -98,21 +114,25 @@ | |||||
| <jar destfile="${tmp.jar}" basedir="." includes="jar.xml" | <jar destfile="${tmp.jar}" basedir="." includes="jar.xml" | ||||
| update="true"/> | update="true"/> | ||||
| <unjar src="${tmp.jar}" dest="${tmp.dir}"/> | <unjar src="${tmp.jar}" dest="${tmp.dir}"/> | ||||
| </target> | |||||
| </target> | |||||
| <target name="testNoRecreateBasedirExcludesWithUpdate"> | <target name="testNoRecreateBasedirExcludesWithUpdate"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | basedir="." | ||||
| includes="j*.xml" | includes="j*.xml" | ||||
| excludes="java.xml" | excludes="java.xml" | ||||
| update="true"/> | |||||
| update="true" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="testNoRecreateBasedirExcludesWithoutUpdate"> | <target name="testNoRecreateBasedirExcludesWithoutUpdate"> | ||||
| <jar destfile="${tmp.jar}" | |||||
| <jar | |||||
| destfile="${tmp.jar}" | |||||
| basedir="." | basedir="." | ||||
| includes="j*.xml" | includes="j*.xml" | ||||
| excludes="java.xml"/> | |||||
| excludes="java.xml" | |||||
| /> | |||||
| </target> | </target> | ||||
| <target name="makezip"> | <target name="makezip"> | ||||
| @@ -205,7 +225,7 @@ | |||||
| </target> | </target> | ||||
| <!-- bug 32802 --> | <!-- bug 32802 --> | ||||
| <target name="testManifestOnlyJar"> | <target name="testManifestOnlyJar"> | ||||
| <mkdir dir="${tmp.dir}"/> | |||||
| <mkdir dir="${tmp.dir}"/> | |||||
| <jar destfile="${tmp.jar}" duplicate="preserve"> | <jar destfile="${tmp.jar}" duplicate="preserve"> | ||||
| <manifest> | <manifest> | ||||
| <attribute name="Foo" value="bar"/> | <attribute name="Foo" value="bar"/> | ||||
| @@ -228,28 +248,28 @@ | |||||
| </indexjars> | </indexjars> | ||||
| </jar> | </jar> | ||||
| </target> | </target> | ||||
| <target name="testNoVersionInfoNoStrict"> | <target name="testNoVersionInfoNoStrict"> | ||||
| <mkdir dir="${tmp.dir}"/> | <mkdir dir="${tmp.dir}"/> | ||||
| <jar destfile="${tmp.jar}" basedir="${tmp.dir}"/> | <jar destfile="${tmp.jar}" basedir="${tmp.dir}"/> | ||||
| </target> | |||||
| </target> | |||||
| <target name="testNoVersionInfoFail"> | <target name="testNoVersionInfoFail"> | ||||
| <mkdir dir="${tmp.dir}"/> | <mkdir dir="${tmp.dir}"/> | ||||
| <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="fail"/> | <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="fail"/> | ||||
| </target> | |||||
| </target> | |||||
| <target name="testNoVersionInfoIgnore"> | <target name="testNoVersionInfoIgnore"> | ||||
| <mkdir dir="${tmp.dir}"/> | <mkdir dir="${tmp.dir}"/> | ||||
| <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="ignore"/> | <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="ignore"/> | ||||
| </target> | |||||
| </target> | |||||
| <target name="testNoVersionInfoWarn"> | <target name="testNoVersionInfoWarn"> | ||||
| <mkdir dir="${tmp.dir}"/> | <mkdir dir="${tmp.dir}"/> | ||||
| <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="warn"/> | <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="warn"/> | ||||
| </target> | |||||
| <!-- see http://java.sun.com/j2se/1.3/docs/guide/versioning/spec/VersioningSpecification.html#PackageVersioning --> | |||||
| </target> | |||||
| <!-- see http://java.sun.com/j2se/1.3/docs/guide/versioning/spec/VersioningSpecification.html#PackageVersioning --> | |||||
| <target name="testHasVersionInfo"> | <target name="testHasVersionInfo"> | ||||
| <mkdir dir="${tmp.dir}"/> | <mkdir dir="${tmp.dir}"/> | ||||
| <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="fail"> | <jar destfile="${tmp.jar}" basedir="${tmp.dir}" strict="fail"> | ||||
| @@ -259,6 +279,7 @@ | |||||
| <attribute name="Implementation-Vendor" value="Apache Software Foundation"/> | <attribute name="Implementation-Vendor" value="Apache Software Foundation"/> | ||||
| </manifest> | </manifest> | ||||
| </jar> | </jar> | ||||
| </target> | |||||
| </target> | |||||
| </project> | </project> | ||||
| @@ -19,11 +19,11 @@ | |||||
| <project name="java-test" basedir="." default="foo"> | <project name="java-test" basedir="." default="foo"> | ||||
| <property name="tests-classpath.value" value="${java.class.path}"/> | <property name="tests-classpath.value" value="${java.class.path}"/> | ||||
| <fail unless="tests-classpath.value" | <fail unless="tests-classpath.value" | ||||
| message="the property tests-classpath.value is required by this test"/> | |||||
| message="the property tests-classpath.value is required by this test" /> | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <!-- this property gets overridden programmatically--> | <!-- this property gets overridden programmatically--> | ||||
| @@ -33,19 +33,19 @@ | |||||
| <property name="tmp" location="${output}/ant.tmp.java-test"/> | <property name="tmp" location="${output}/ant.tmp.java-test"/> | ||||
| <mkdir dir="${tmp}" description="The directory must exist"/> | <mkdir dir="${tmp}" description="The directory must exist"/> | ||||
| <property name="app" | <property name="app" | ||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$EntryPoint"/> | |||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$EntryPoint" /> | |||||
| <property name="app2" | <property name="app2" | ||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$ExceptingEntryPoint"/> | |||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$ExceptingEntryPoint" /> | |||||
| <property name="spawnapp" | <property name="spawnapp" | ||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$SpawnEntryPoint"/> | |||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$SpawnEntryPoint" /> | |||||
| <property name="pipeapp" | <property name="pipeapp" | ||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$PipeEntryPoint"/> | |||||
| value="org.apache.tools.ant.taskdefs.JavaTest$$PipeEntryPoint" /> | |||||
| <property name="module" | <property name="module" | ||||
| value="TestModule"/> | |||||
| value="TestModule" /> | |||||
| <target name="testNoJarNoClassname"> | <target name="testNoJarNoClassname"> | ||||
| <java/> | <java/> | ||||
| @@ -57,19 +57,19 @@ | |||||
| <target name="testJarAndClassName"> | <target name="testJarAndClassName"> | ||||
| <java jar="test.jar" classname="${app}"/> | |||||
| <java jar="test.jar" classname="${app}" /> | |||||
| </target> | </target> | ||||
| <target name="testClassnameAndJar"> | <target name="testClassnameAndJar"> | ||||
| <java classname="${app}" jar="test.jar"/> | |||||
| <java classname="${app}" jar="test.jar" /> | |||||
| </target> | </target> | ||||
| <target name="testModuleAndJar"> | <target name="testModuleAndJar"> | ||||
| <java module="${module}" jar="test.jar"/> | |||||
| <java module="${module}" jar="test.jar" /> | |||||
| </target> | </target> | ||||
| <target name="testJarAndModule"> | <target name="testJarAndModule"> | ||||
| <java jar="test.jar" module="${module}"/> | |||||
| <java jar="test.jar" module="${module}" /> | |||||
| </target> | </target> | ||||
| <target name="testClassnameAndModule"> | <target name="testClassnameAndModule"> | ||||
| @@ -85,38 +85,40 @@ | |||||
| </target> | </target> | ||||
| <target name="testRun"> | <target name="testRun"> | ||||
| <fail unless="tests-classpath.value"/> | |||||
| <fail unless="tests-classpath.value" /> | |||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}"/> | |||||
| classpath="${tests-classpath.value}"/> | |||||
| </target> | </target> | ||||
| <target name="testRunFail"> | <target name="testRunFail"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}"> | |||||
| classpath="${tests-classpath.value}" | |||||
| > | |||||
| <arg value="2"/> | <arg value="2"/> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| <target name="testRunFailFoe"> | <target name="testRunFailFoe"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true"> | |||||
| <arg value="2"/> | <arg value="2"/> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| <target name="testRunFailFoeFork"> | <target name="testRunFailFoeFork"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true" | |||||
| fork="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true" | |||||
| fork="true"> | |||||
| <arg value="2"/> | <arg value="2"/> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| <target name="testExcepting"> | <target name="testExcepting"> | ||||
| <java classname="${app2}" | <java classname="${app2}" | ||||
| classpath="${tests-classpath.value}"> | |||||
| classpath="${tests-classpath.value}" | |||||
| > | |||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| @@ -129,34 +131,36 @@ | |||||
| <target name="testExceptingFoe"> | <target name="testExceptingFoe"> | ||||
| <java classname="${app2}" | <java classname="${app2}" | ||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true"> | |||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| <target name="testExceptingFoeFork"> | <target name="testExceptingFoeFork"> | ||||
| <java classname="${app2}" | <java classname="${app2}" | ||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true" | |||||
| fork="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true" | |||||
| fork="true"> | |||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| <target name="testResultPropertyZero"> | <target name="testResultPropertyZero"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| resultproperty="exitcode" | |||||
| fork="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| resultproperty="exitcode" | |||||
| fork="true" | |||||
| > | |||||
| </java> | </java> | ||||
| <echo message="exitcode = ${exitcode}"/> | <echo message="exitcode = ${exitcode}"/> | ||||
| </target> | </target> | ||||
| <target name="testResultPropertyNonZero"> | <target name="testResultPropertyNonZero"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| resultproperty="exitcode" | |||||
| failonerror="false" | |||||
| fork="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| resultproperty="exitcode" | |||||
| failonerror="false" | |||||
| fork="true" | |||||
| > | |||||
| <arg value="2"/> | <arg value="2"/> | ||||
| </java> | </java> | ||||
| <echo message="exitcode = ${exitcode}"/> | <echo message="exitcode = ${exitcode}"/> | ||||
| @@ -164,14 +168,15 @@ | |||||
| <target name="testResultPropertyZeroNoFork"> | <target name="testResultPropertyZeroNoFork"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| resultproperty="exitcode" | |||||
| fork="false"> | |||||
| classpath="${tests-classpath.value}" | |||||
| resultproperty="exitcode" | |||||
| fork="false" | |||||
| > | |||||
| <permissions/> | <permissions/> | ||||
| </java> | </java> | ||||
| <echo message="exitcode = ${exitcode}"/> | <echo message="exitcode = ${exitcode}"/> | ||||
| </target> | </target> | ||||
| <target name="testResultPropertyNonZeroNoFork"> | <target name="testResultPropertyNonZeroNoFork"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | classpath="${tests-classpath.value}" | ||||
| @@ -186,16 +191,18 @@ | |||||
| <target name="testRunFailWithFailOnError"> | <target name="testRunFailWithFailOnError"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true" | |||||
| > | |||||
| <arg value="2"/> | <arg value="2"/> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| <target name="testRunSuccessWithFailOnError"> | <target name="testRunSuccessWithFailOnError"> | ||||
| <java classname="${app}" | <java classname="${app}" | ||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true"> | |||||
| classpath="${tests-classpath.value}" | |||||
| failonerror="true" | |||||
| > | |||||
| <arg value="0"/> | <arg value="0"/> | ||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| @@ -203,7 +210,7 @@ | |||||
| <target name="testSpawn"> | <target name="testSpawn"> | ||||
| <java classname="${spawnapp}" fork="true" spawn="true" classpath="${tests-classpath.value}"> | <java classname="${spawnapp}" fork="true" spawn="true" classpath="${tests-classpath.value}"> | ||||
| <arg value="${timeToWait}"/> | <arg value="${timeToWait}"/> | ||||
| <arg value="${logFile}"/> | |||||
| <arg value="${logFile}" /> | |||||
| </java> | </java> | ||||
| </target> | </target> | ||||
| @@ -217,28 +224,28 @@ | |||||
| fork="true" | fork="true" | ||||
| output="${outfile}" | output="${outfile}" | ||||
| errorproperty="redirect.err"> | errorproperty="redirect.err"> | ||||
| <arg value="out"/> | |||||
| <arg value="out" /> | |||||
| </java> | </java> | ||||
| <!-- let dumb Windows catch up --> | <!-- let dumb Windows catch up --> | ||||
| <waitfor maxwait="30000"> | <waitfor maxwait="30000"> | ||||
| <available file="${outfile}"/> | |||||
| <available file="${outfile}" /> | |||||
| </waitfor> | </waitfor> | ||||
| <waitfor maxwait="30000"> | <waitfor maxwait="30000"> | ||||
| <length file="${outfile}" length="1" when="greater"/> | |||||
| <length file="${outfile}" length="1" when="greater" /> | |||||
| </waitfor> | </waitfor> | ||||
| <loadfile property="redirect.out.contents" srcfile="${outfile}"/> | |||||
| <loadfile property="redirect.out.contents" srcfile="${outfile}" /> | |||||
| <condition property="r1file"> | <condition property="r1file"> | ||||
| <equals arg1="${redirect.out.contents}" arg2="foo"/> | |||||
| <equals arg1="${redirect.out.contents}" arg2="foo" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="r1file">${outfile}: | <fail unless="r1file">${outfile}: | ||||
| "${redirect.out.contents}" expected "foo"</fail> | "${redirect.out.contents}" expected "foo"</fail> | ||||
| <condition property="r1prop"> | <condition property="r1prop"> | ||||
| <equals arg1="${redirect.err}" arg2=""/> | |||||
| <equals arg1="${redirect.err}" arg2="" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="r1prop"> | <fail unless="r1prop"> | ||||
| @@ -256,22 +263,22 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| fork="true" | fork="true" | ||||
| output="${outfile}" | output="${outfile}" | ||||
| errorproperty="redirect.err"> | errorproperty="redirect.err"> | ||||
| <arg value="both"/> | |||||
| <arg value="both" /> | |||||
| </java> | </java> | ||||
| <!-- let dumb Windows catch up --> | <!-- let dumb Windows catch up --> | ||||
| <waitfor maxwait="30000"> | <waitfor maxwait="30000"> | ||||
| <available file="${outfile}"/> | |||||
| <available file="${outfile}" /> | |||||
| </waitfor> | </waitfor> | ||||
| <waitfor maxwait="30000"> | <waitfor maxwait="30000"> | ||||
| <length file="${outfile}" length="1" when="greater"/> | |||||
| <length file="${outfile}" length="1" when="greater" /> | |||||
| </waitfor> | </waitfor> | ||||
| <loadfile property="redirect.out.contents2" srcfile="${outfile}"/> | |||||
| <loadfile property="redirect.out.contents2" srcfile="${outfile}" /> | |||||
| <condition property="r2file"> | <condition property="r2file"> | ||||
| <equals arg1="${redirect.out.contents2}" arg2="foobar"/> | |||||
| <equals arg1="${redirect.out.contents2}" arg2="foobar" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="r2file">${outfile}: | <fail unless="r2file">${outfile}: | ||||
| @@ -279,7 +286,7 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| <condition property="r2prop"> | <condition property="r2prop"> | ||||
| <!-- property should not change --> | <!-- property should not change --> | ||||
| <equals arg1="${redirect.err}" arg2=""/> | |||||
| <equals arg1="${redirect.err}" arg2="" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="r2prop"> | <fail unless="r2prop"> | ||||
| @@ -297,28 +304,28 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| fork="true" | fork="true" | ||||
| output="${outfile}" | output="${outfile}" | ||||
| error="${errfile}"> | error="${errfile}"> | ||||
| <arg value="both"/> | |||||
| <arg value="both" /> | |||||
| </java> | </java> | ||||
| <!-- let dumb Windows catch up --> | <!-- let dumb Windows catch up --> | ||||
| <waitfor> | <waitfor> | ||||
| <and> | <and> | ||||
| <available file="${outfile}"/> | |||||
| <available file="${errfile}"/> | |||||
| <available file="${outfile}" /> | |||||
| <available file="${errfile}" /> | |||||
| </and> | </and> | ||||
| </waitfor> | </waitfor> | ||||
| <loadfile property="redirect.out.contents" srcfile="${outfile}"/> | |||||
| <loadfile property="redirect.out.contents" srcfile="${outfile}" /> | |||||
| <condition property="r3file"> | <condition property="r3file"> | ||||
| <equals arg1="${redirect.out.contents}" arg2="foo"/> | |||||
| <equals arg1="${redirect.out.contents}" arg2="foo" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="r3file">${outfile}: | <fail unless="r3file">${outfile}: | ||||
| "${redirect.out.contents}" expected "foo"</fail> | "${redirect.out.contents}" expected "foo"</fail> | ||||
| <condition property="r3match"> | <condition property="r3match"> | ||||
| <filesmatch file1="${outfile}" file2="${errfile}"/> | |||||
| <filesmatch file1="${outfile}" file2="${errfile}" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="r3file">${errfile} differs from ${outfile}</fail> | <fail unless="r3file">${errfile} differs from ${outfile}</fail> | ||||
| @@ -334,19 +341,19 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| <redirector inputstring="foo" | <redirector inputstring="foo" | ||||
| output="${outfile}" | output="${outfile}" | ||||
| error="${errfile}" | error="${errfile}" | ||||
| createemptyfiles="false"/> | |||||
| <arg value="out"/> | |||||
| createemptyfiles="false" /> | |||||
| <arg value="out" /> | |||||
| </java> | </java> | ||||
| <!-- let dumb Windows catch up --> | <!-- let dumb Windows catch up --> | ||||
| <waitfor> | <waitfor> | ||||
| <available file="${outfile}"/> | |||||
| <available file="${outfile}" /> | |||||
| </waitfor> | </waitfor> | ||||
| <loadfile property="redirector.out.contents" srcfile="${outfile}"/> | |||||
| <loadfile property="redirector.out.contents" srcfile="${outfile}" /> | |||||
| <condition property="ror1out"> | <condition property="ror1out"> | ||||
| <equals arg1="${redirector.out.contents}" arg2="foo"/> | |||||
| <equals arg1="${redirector.out.contents}" arg2="foo" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="ror1out">${outfile}: | <fail unless="ror1out">${outfile}: | ||||
| @@ -354,7 +361,7 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| <condition property="ror1noerr"> | <condition property="ror1noerr"> | ||||
| <not> | <not> | ||||
| <available file="${errfile}"/> | |||||
| <available file="${errfile}" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| <fail unless="ror1noerr">${errfile} exists but should not</fail> | <fail unless="ror1noerr">${errfile} exists but should not</fail> | ||||
| @@ -374,35 +381,35 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| error="${errfile}" | error="${errfile}" | ||||
| createemptyfiles="false"> | createemptyfiles="false"> | ||||
| <errorfilterchain> | <errorfilterchain> | ||||
| <replacestring from="foo" to="bar"/> | |||||
| <replacestring from="foo" to="bar" /> | |||||
| </errorfilterchain> | </errorfilterchain> | ||||
| </redirector> | </redirector> | ||||
| <arg value="both"/> | |||||
| <arg value="both" /> | |||||
| </java> | </java> | ||||
| <!-- let dumb Windows catch up --> | <!-- let dumb Windows catch up --> | ||||
| <waitfor> | <waitfor> | ||||
| <and> | <and> | ||||
| <available file="${outfile}"/> | |||||
| <available file="${errfile}"/> | |||||
| <available file="${outfile}" /> | |||||
| <available file="${errfile}" /> | |||||
| </and> | </and> | ||||
| </waitfor> | </waitfor> | ||||
| <loadfile property="redirector.out.contents2" | <loadfile property="redirector.out.contents2" | ||||
| srcfile="${outfile}"/> | |||||
| srcfile="${outfile}" /> | |||||
| <loadfile property="redirector.err.contents" | <loadfile property="redirector.err.contents" | ||||
| srcfile="${errfile}"/> | |||||
| srcfile="${errfile}" /> | |||||
| <condition property="ror2out"> | <condition property="ror2out"> | ||||
| <equals arg1="${redirector.out.contents2}" arg2="foofoo"/> | |||||
| <equals arg1="${redirector.out.contents2}" arg2="foofoo" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="ror1out">${outfile}: | <fail unless="ror1out">${outfile}: | ||||
| "${redirector.out.contents}" expected "foofoo"</fail> | "${redirector.out.contents}" expected "foofoo"</fail> | ||||
| <condition property="ror2err"> | <condition property="ror2err"> | ||||
| <equals arg1="${redirector.err.contents}" arg2="bar"/> | |||||
| <equals arg1="${redirector.err.contents}" arg2="bar" /> | |||||
| </condition> | </condition> | ||||
| <fail unless="ror1out">${errfile}: | <fail unless="ror1out">${errfile}: | ||||
| @@ -412,9 +419,9 @@ redirect.err="${redirect.err}" should be empty</fail> | |||||
| <target name="flushedInput"> | <target name="flushedInput"> | ||||
| <java classname="org.apache.tools.ant.taskdefs.JavaTest$$ReadPoint" fork="true" | <java classname="org.apache.tools.ant.taskdefs.JavaTest$$ReadPoint" fork="true" | ||||
| classpath="${tests-classpath.value}" failonerror="true" timeout="2000"/> | |||||
| classpath="${tests-classpath.value}" failonerror="true" timeout="2000" /> | |||||
| </target> | </target> | ||||
| <target name="foo"/> | |||||
| <target name="foo" /> | |||||
| </project> | </project> | ||||
| @@ -24,44 +24,44 @@ | |||||
| </target> | </target> | ||||
| <path id="path.dirset"> | <path id="path.dirset"> | ||||
| <dirset dir="."/> | |||||
| <dirset dir="." /> | |||||
| </path> | </path> | ||||
| <target name="dirsetPath"> | <target name="dirsetPath"> | ||||
| <javadoc sourcepathref="path.dirset" packagenames="*" destdir="${output}"/> | |||||
| <javadoc sourcepathref="path.dirset" packagenames="*" destdir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="dirsetPathWithoutPackagenames"> | <target name="dirsetPathWithoutPackagenames"> | ||||
| <javadoc sourcepathref="path.dirset" destdir="${output}"/> | |||||
| <javadoc sourcepathref="path.dirset" destdir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="nestedDirsetPath"> | <target name="nestedDirsetPath"> | ||||
| <javadoc packagenames="*" destdir="${output}"> | <javadoc packagenames="*" destdir="${output}"> | ||||
| <sourcepath refid="path.dirset"/> | |||||
| <sourcepath refid="path.dirset" /> | |||||
| </javadoc> | </javadoc> | ||||
| </target> | </target> | ||||
| <path id="path.fileset"> | <path id="path.fileset"> | ||||
| <pathelement location="."/> | <pathelement location="."/> | ||||
| <fileset dir="java/" id="fileset.inpath"> | <fileset dir="java/" id="fileset.inpath"> | ||||
| <include name="**/*.java"/> | |||||
| <include name="**/*.java" /> | |||||
| </fileset> | </fileset> | ||||
| </path> | </path> | ||||
| <target name="filesetPath"> | <target name="filesetPath"> | ||||
| <javadoc sourcepathref="path.fileset" packagenames="*" destdir="${output}"/> | |||||
| <javadoc sourcepathref="path.fileset" packagenames="*" destdir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="nestedFilesetPath"> | <target name="nestedFilesetPath"> | ||||
| <javadoc packagenames="*" destdir="${output}"> | <javadoc packagenames="*" destdir="${output}"> | ||||
| <sourcepath refid="path.fileset"/> | |||||
| <sourcepath refid="path.fileset" /> | |||||
| </javadoc> | </javadoc> | ||||
| </target> | </target> | ||||
| <target name="nestedFilesetRefInPath"> | <target name="nestedFilesetRefInPath"> | ||||
| <javadoc packagenames="*" destdir="${output}"> | <javadoc packagenames="*" destdir="${output}"> | ||||
| <fileset refid="fileset.inpath"/> | |||||
| <fileset refid="fileset.inpath" /> | |||||
| </javadoc> | </javadoc> | ||||
| </target> | </target> | ||||
| @@ -90,18 +90,18 @@ | |||||
| <path id="path.filelist"> | <path id="path.filelist"> | ||||
| <pathelement location="."/> | <pathelement location="."/> | ||||
| <filelist dir="java/"> | <filelist dir="java/"> | ||||
| <file name="ClassToJavadoc.java"/> | |||||
| <file name="ClassToJavadoc.java" /> | |||||
| </filelist> | </filelist> | ||||
| </path> | </path> | ||||
| <target name="filelistPath"> | <target name="filelistPath"> | ||||
| <javadoc sourcepathref="path.filelist" packagenames="*" | <javadoc sourcepathref="path.filelist" packagenames="*" | ||||
| destdir="${output}"/> | |||||
| destdir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="nestedFilelistPath"> | <target name="nestedFilelistPath"> | ||||
| <javadoc packagenames="*" destdir="${output}"> | <javadoc packagenames="*" destdir="${output}"> | ||||
| <sourcepath refid="path.filelist"/> | |||||
| <sourcepath refid="path.filelist" /> | |||||
| </javadoc> | </javadoc> | ||||
| </target> | </target> | ||||
| @@ -109,37 +109,37 @@ | |||||
| <property name="root" location="../../../../.."/> | <property name="root" location="../../../../.."/> | ||||
| <path id="path.pathelement.path"> | <path id="path.pathelement.path"> | ||||
| <pathelement path="${root}/src"/> | |||||
| <pathelement path="${root}/src" /> | |||||
| </path> | </path> | ||||
| <target name="pathelementPath"> | <target name="pathelementPath"> | ||||
| <javadoc sourcepathref="path.pathelement.path" | <javadoc sourcepathref="path.pathelement.path" | ||||
| packagenames="etc.testcases.taskdefs.javadoc.*" destdir="${output}"/> | |||||
| packagenames="etc.testcases.taskdefs.javadoc.*" destdir="${output}" /> | |||||
| </target> | </target> | ||||
| <path id="path.pathelement.location"> | <path id="path.pathelement.location"> | ||||
| <pathelement location="."/> | <pathelement location="."/> | ||||
| <pathelement path="java/ClassToJavadoc.java"/> | |||||
| <pathelement path="java/ClassToJavadoc.java" /> | |||||
| </path> | </path> | ||||
| <target name="pathelementLocationPath"> | <target name="pathelementLocationPath"> | ||||
| <javadoc sourcepathref="path.pathelement.location" | <javadoc sourcepathref="path.pathelement.location" | ||||
| packagenames="*" destdir="${output}"/> | |||||
| packagenames="*" destdir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="nestedSource"> | <target name="nestedSource"> | ||||
| <javadoc destdir="${output}"> | <javadoc destdir="${output}"> | ||||
| <source file="java/ClassToJavadoc.java"/> | |||||
| <source file="java/ClassToJavadoc.java" /> | |||||
| </javadoc> | </javadoc> | ||||
| </target> | </target> | ||||
| <fileset dir="java/" id="fileset.simple"> | <fileset dir="java/" id="fileset.simple"> | ||||
| <include name="**/*.java"/> | |||||
| <include name="**/*.java" /> | |||||
| </fileset> | </fileset> | ||||
| <target name="nestedFilesetRef"> | <target name="nestedFilesetRef"> | ||||
| <javadoc destdir="${output}"> | <javadoc destdir="${output}"> | ||||
| <fileset refid="fileset.simple"/> | |||||
| <fileset refid="fileset.simple" /> | |||||
| </javadoc> | </javadoc> | ||||
| </target> | </target> | ||||
| @@ -22,18 +22,18 @@ | |||||
| </target> | </target> | ||||
| <target name="testNoSourcefileDefined" depends="init"> | <target name="testNoSourcefileDefined" depends="init"> | ||||
| <loadfile property="foo"/> | |||||
| <loadfile property="foo" /> | |||||
| </target> | </target> | ||||
| <target name="testNoPropertyDefined" | <target name="testNoPropertyDefined" | ||||
| depends="init"> | depends="init"> | ||||
| <loadfile srcFile="somefile"/> | |||||
| <loadfile srcFile="somefile" /> | |||||
| </target> | </target> | ||||
| <target name="testNoSourcefilefound" | <target name="testNoSourcefilefound" | ||||
| depends="init"> | depends="init"> | ||||
| <loadfile property="missing" srcFile="somefile"/> | |||||
| <loadfile property="missing" srcFile="somefile" /> | |||||
| </target> | </target> | ||||
| <target name="testFailOnError" | <target name="testFailOnError" | ||||
| @@ -48,8 +48,9 @@ | |||||
| depends="init"> | depends="init"> | ||||
| <echo | <echo | ||||
| message="What's it going to be then, eh?" | message="What's it going to be then, eh?" | ||||
| file="loadfile1.tmp"/> | |||||
| <loadfile property="testLoadAFile" srcFile="loadfile1.tmp"/> | |||||
| file="loadfile1.tmp" | |||||
| /> | |||||
| <loadfile property="testLoadAFile" srcFile="loadfile1.tmp" /> | |||||
| <echo>${testLoadAFile}</echo> | <echo>${testLoadAFile}</echo> | ||||
| </target> | </target> | ||||
| @@ -62,10 +63,11 @@ | |||||
| <target name="testEvalProps" | <target name="testEvalProps" | ||||
| depends="init"> | depends="init"> | ||||
| <property name="weather" value="rain"/> | |||||
| <property name="weather" value="rain" /> | |||||
| <echo | <echo | ||||
| message="All these moments will be lost in time, like teardrops in the ${weather}" | message="All these moments will be lost in time, like teardrops in the ${weather}" | ||||
| file="loadfile1.tmp"/> | |||||
| file="loadfile1.tmp" | |||||
| /> | |||||
| <loadfile property="testEvalProps" | <loadfile property="testEvalProps" | ||||
| srcFile="loadfile1.tmp"> | srcFile="loadfile1.tmp"> | ||||
| <filterchain> | <filterchain> | ||||
| @@ -82,7 +84,7 @@ REM Line 2 | |||||
| --Line 3 | --Line 3 | ||||
| Line 4 | Line 4 | ||||
| Hello World!</echo> | Hello World!</echo> | ||||
| <loadfile srcFile="loadfile1.tmp" | |||||
| <loadfile srcFile="loadfile1.tmp" | |||||
| property="testFilterChain"> | property="testFilterChain"> | ||||
| <filterchain> | <filterchain> | ||||
| <headfilter lines="5"/> | <headfilter lines="5"/> | ||||
| @@ -113,7 +115,7 @@ public class test1 { | |||||
| private static final String GREETING="*/Hello/*"; | private static final String GREETING="*/Hello/*"; | ||||
| private static final String GREETING1="/*Hello*/"; | private static final String GREETING1="/*Hello*/"; | ||||
| public static void main(String args[]) { | |||||
| public static void main( String args[] ) { | |||||
| } | } | ||||
| }</echo> | }</echo> | ||||
| <echo file="nocomments.tmp"> | <echo file="nocomments.tmp"> | ||||
| @@ -124,16 +126,16 @@ public class test1 { | |||||
| private static final String GREETING="*/Hello/*"; | private static final String GREETING="*/Hello/*"; | ||||
| private static final String GREETING1="/*Hello*/"; | private static final String GREETING1="/*Hello*/"; | ||||
| public static void main(String args[]) { | |||||
| public static void main( String args[] ) { | |||||
| } | } | ||||
| }</echo> | }</echo> | ||||
| <loadfile srcFile="loadfile1.tmp" | |||||
| <loadfile srcFile="loadfile1.tmp" | |||||
| property="testStripJavaComments"> | property="testStripJavaComments"> | ||||
| <filterchain> | <filterchain> | ||||
| <stripjavacomments/> | <stripjavacomments/> | ||||
| </filterchain> | </filterchain> | ||||
| </loadfile> | </loadfile> | ||||
| <loadfile srcFile="nocomments.tmp" | |||||
| <loadfile srcFile="nocomments.tmp" | |||||
| property="expected"/> | property="expected"/> | ||||
| </target> | </target> | ||||
| @@ -141,7 +143,8 @@ public class test1 { | |||||
| depends="init"> | depends="init"> | ||||
| <echo | <echo | ||||
| message="1, 2, 3, 4" | message="1, 2, 3, 4" | ||||
| file="loadfile1.tmp"/> | |||||
| file="loadfile1.tmp" | |||||
| /> | |||||
| <loadfile property="testOneLine" | <loadfile property="testOneLine" | ||||
| srcFile="loadfile1.tmp"> | srcFile="loadfile1.tmp"> | ||||
| <filterchain> | <filterchain> | ||||
| @@ -157,4 +160,4 @@ public class test1 { | |||||
| <delete file="nocomments.tmp"/> | <delete file="nocomments.tmp"/> | ||||
| </target> | </target> | ||||
| </project> | |||||
| </project> | |||||
| @@ -15,7 +15,8 @@ | |||||
| See the License for the specific language governing permissions and | See the License for the specific language governing permissions and | ||||
| limitations under the License. | limitations under the License. | ||||
| --> | --> | ||||
| <project name="to-url"> | |||||
| <project name="to-url" > | |||||
| <target name="testEmpty"> | <target name="testEmpty"> | ||||
| <makeurl/> | <makeurl/> | ||||
| @@ -28,36 +29,36 @@ | |||||
| <target name="testNoFile"> | <target name="testNoFile"> | ||||
| <makeurl property="foo"/> | <makeurl property="foo"/> | ||||
| </target> | </target> | ||||
| <target name="testWorks"> | <target name="testWorks"> | ||||
| <makeurl property="testWorks" file="foo" validate="false"/> | <makeurl property="testWorks" file="foo" validate="false"/> | ||||
| <fail unless="testWorks"/> | |||||
| <fail unless="testWorks" /> | |||||
| </target> | </target> | ||||
| <target name="testIllegalChars"> | <target name="testIllegalChars"> | ||||
| <makeurl property="testIllegalChars" file="fo o%" validate="false"/> | <makeurl property="testIllegalChars" file="fo o%" validate="false"/> | ||||
| </target> | </target> | ||||
| <target name="testRoundTrip"> | <target name="testRoundTrip"> | ||||
| <makeurl property="testRoundTrip" file="${ant.file}"/> | <makeurl property="testRoundTrip" file="${ant.file}"/> | ||||
| </target> | </target> | ||||
| <target name="testIllegalCombinations"> | <target name="testIllegalCombinations"> | ||||
| <makeurl property="testIllegalCombinations" file="foo" validate="false"> | <makeurl property="testIllegalCombinations" file="foo" validate="false"> | ||||
| <fileset dir="." includes="*.xml"/> | |||||
| <fileset dir="." includes="*.xml" /> | |||||
| </makeurl> | </makeurl> | ||||
| </target> | </target> | ||||
| <target name="testFileset"> | <target name="testFileset"> | ||||
| <makeurl property="testFileset"> | <makeurl property="testFileset"> | ||||
| <fileset dir="." includes="*.xml"/> | |||||
| <fileset dir="." includes="*.xml" /> | |||||
| </makeurl> | </makeurl> | ||||
| </target> | </target> | ||||
| <target name="testFilesetSeparator"> | <target name="testFilesetSeparator"> | ||||
| <makeurl property="testFilesetSeparator" separator='","'> | <makeurl property="testFilesetSeparator" separator='","'> | ||||
| <fileset dir="." includes="*.xml"/> | |||||
| <fileset dir="." includes="*.xml" /> | |||||
| </makeurl> | </makeurl> | ||||
| </target> | </target> | ||||
| @@ -67,11 +68,11 @@ | |||||
| <target name="testPath"> | <target name="testPath"> | ||||
| <path id="test.path"> | <path id="test.path"> | ||||
| <pathelement location="."/> | |||||
| <pathelement location="." /> | |||||
| <fileset dir="." includes="*.xml"/> | <fileset dir="." includes="*.xml"/> | ||||
| </path> | </path> | ||||
| <makeurl property="testPath"> | <makeurl property="testPath"> | ||||
| <path refid="test.path"/> | |||||
| <path refid="test.path" /> | |||||
| </makeurl> | </makeurl> | ||||
| </target> | </target> | ||||
| @@ -32,7 +32,7 @@ | |||||
| </patternset> | </patternset> | ||||
| </unjar> | </unjar> | ||||
| </target> | </target> | ||||
| <target name="test2" depends="setUp"> | <target name="test2" depends="setUp"> | ||||
| <jar file="${output}/mftest2.jar" manifest="manifests/test2.mf"/> | <jar file="${output}/mftest2.jar" manifest="manifests/test2.mf"/> | ||||
| <unjar src="${output}/mftest2.jar" dest="${output}/manifests"> | <unjar src="${output}/mftest2.jar" dest="${output}/manifests"> | ||||
| @@ -41,27 +41,27 @@ | |||||
| </patternset> | </patternset> | ||||
| </unjar> | </unjar> | ||||
| </target> | </target> | ||||
| <target name="test3" depends="setUp"> | <target name="test3" depends="setUp"> | ||||
| <jar file="${output}/mftest3.jar" manifest="manifests/test3.mf"/> | <jar file="${output}/mftest3.jar" manifest="manifests/test3.mf"/> | ||||
| </target> | </target> | ||||
| <target name="test4" depends="setUp"> | <target name="test4" depends="setUp"> | ||||
| <jar file="${output}/mftest4.jar" manifest="manifests/test4.mf"/> | <jar file="${output}/mftest4.jar" manifest="manifests/test4.mf"/> | ||||
| </target> | </target> | ||||
| <target name="test5" depends="setUp"> | <target name="test5" depends="setUp"> | ||||
| <jar file="${output}/mftest5.jar" manifest="manifests/test5.mf"/> | <jar file="${output}/mftest5.jar" manifest="manifests/test5.mf"/> | ||||
| </target> | </target> | ||||
| <target name="test6" depends="setUp"> | <target name="test6" depends="setUp"> | ||||
| <jar file="${output}/mftest6.jar" manifest="manifests/test6.mf"/> | <jar file="${output}/mftest6.jar" manifest="manifests/test6.mf"/> | ||||
| </target> | </target> | ||||
| <target name="test7" depends="setUp"> | <target name="test7" depends="setUp"> | ||||
| <jar file="${output}/mftest7.jar" manifest="manifests/test7.mf"/> | <jar file="${output}/mftest7.jar" manifest="manifests/test7.mf"/> | ||||
| </target> | </target> | ||||
| <target name="test8" depends="setUp"> | <target name="test8" depends="setUp"> | ||||
| <jar file="${output}/mftest8.jar"> | <jar file="${output}/mftest8.jar"> | ||||
| <manifest> | <manifest> | ||||
| @@ -141,17 +141,17 @@ | |||||
| </target> | </target> | ||||
| <target name="testNoFile"> | <target name="testNoFile"> | ||||
| <manifest/> | |||||
| <manifest /> | |||||
| </target> | </target> | ||||
| <target name="testLongLine" depends="setUp"> | <target name="testLongLine" depends="setUp"> | ||||
| <jar file="${output}/mftestLongLine.jar"> | <jar file="${output}/mftestLongLine.jar"> | ||||
| <manifest> | <manifest> | ||||
| <attribute name="Class-path" | |||||
| <attribute name="Class-path" | |||||
| value="${test.longline}"/> | value="${test.longline}"/> | ||||
| <attribute name="${test.long68name}" value="${test.value}"/> | |||||
| <attribute name="${test.long70name}" value="${test.value}"/> | |||||
| <attribute name="${test.notlongname}" value="${test.value}"/> | |||||
| <attribute name="${test.long68name}" value="${test.value}" /> | |||||
| <attribute name="${test.long70name}" value="${test.value}" /> | |||||
| <attribute name="${test.notlongname}" value="${test.value}" /> | |||||
| </manifest> | </manifest> | ||||
| </jar> | </jar> | ||||
| <unjar src="${output}/mftestLongLine.jar" dest="${output}/manifests"> | <unjar src="${output}/mftestLongLine.jar" dest="${output}/manifests"> | ||||
| @@ -198,41 +198,41 @@ | |||||
| </patternset> | </patternset> | ||||
| </unjar> | </unjar> | ||||
| </target> | </target> | ||||
| <target name="testReplace" depends="setUp"> | <target name="testReplace" depends="setUp"> | ||||
| <copy file="manifests/test2.mf" toFile="${output}/mftest.mf"/> | |||||
| <manifest file="${output}/mftest.mf"/> | |||||
| <copy file="manifests/test2.mf" toFile="${output}/mftest.mf" /> | |||||
| <manifest file="${output}/mftest.mf" /> | |||||
| </target> | </target> | ||||
| <target name="testUpdate" depends="setUp"> | <target name="testUpdate" depends="setUp"> | ||||
| <copy file="manifests/test2.mf" toFile="${output}/mftest.mf"/> | |||||
| <copy file="manifests/test2.mf" toFile="${output}/mftest.mf" /> | |||||
| <manifest file="${output}/mftest.mf" mode="update"> | <manifest file="${output}/mftest.mf" mode="update"> | ||||
| <attribute name="Foo" value="Bar"/> | |||||
| <attribute name="Foo" value="Bar" /> | |||||
| </manifest> | </manifest> | ||||
| <copy file="manifests/test2.mf" toFile="${output}/mftest2.mf"/> | |||||
| <copy file="manifests/test2.mf" toFile="${output}/mftest2.mf" /> | |||||
| <manifest file="${output}/mftest2.mf" mode="update"> | <manifest file="${output}/mftest2.mf" mode="update"> | ||||
| <section name="Test"> | <section name="Test"> | ||||
| <attribute name="Foo" value="Bar"/> | |||||
| <attribute name="Foo" value="Bar" /> | |||||
| </section> | </section> | ||||
| </manifest> | </manifest> | ||||
| <manifest file="${output}/mftest2.mf" mode="update"> | <manifest file="${output}/mftest2.mf" mode="update"> | ||||
| <section name="Test"> | <section name="Test"> | ||||
| <attribute name="Foo" value="Baz"/> | |||||
| <attribute name="Foo" value="Baz" /> | |||||
| </section> | </section> | ||||
| </manifest> | </manifest> | ||||
| </target> | </target> | ||||
| <target name="testFrom" depends="setUp"> | <target name="testFrom" depends="setUp"> | ||||
| <manifest file="${output}/mftestfrom.mf"> | |||||
| <manifest file="${output}/mftestfrom.mf" > | |||||
| <section name="Test"> | <section name="Test"> | ||||
| <attribute name="before" value="before"/> | |||||
| <attribute name="before" value="before" /> | |||||
| <attribute name="From" value="illegal"/> | <attribute name="From" value="illegal"/> | ||||
| <attribute name="after" value="after"/> | |||||
| <attribute name="after" value="after" /> | |||||
| </section> | </section> | ||||
| </manifest> | </manifest> | ||||
| </target> | </target> | ||||
| <target name="testIllegalName" depends="setUp"> | <target name="testIllegalName" depends="setUp"> | ||||
| <manifest file="${output}/mftestillegalname.mf"> | <manifest file="${output}/mftestillegalname.mf"> | ||||
| <attribute name="has blank" value="value"/> | <attribute name="has blank" value="value"/> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <!-- hebrew --> | <!-- hebrew --> | ||||
| @@ -29,63 +29,63 @@ | |||||
| <!-- german --> | <!-- german --> | ||||
| <property name="aent" value="ãnt"/> | <property name="aent" value="ãnt"/> | ||||
| <target name="fullSetUp" depends="setUp"> | <target name="fullSetUp" depends="setUp"> | ||||
| <mkdir dir="${output}/lib"/> | |||||
| <touch file="${output}/lib/acme-core.jar"/> | |||||
| <touch file="${output}/lib/acme-pres.jar"/> | |||||
| <mkdir dir="${output}/lib" /> | |||||
| <touch file="${output}/lib/acme-core.jar" /> | |||||
| <touch file="${output}/lib/acme-pres.jar" /> | |||||
| <mkdir dir="${output}/classes/dsp-core/com/lgc/infra/core"/> | |||||
| <mkdir dir="${output}/classes/dsp-pres/com/lgc/infra/pres"/> | |||||
| <mkdir dir="${output}/classes/dsp-void"/> | |||||
| <mkdir dir="${output}/generated/dsp-core/com/lgc/infra/core/generated"/> | |||||
| <mkdir dir="${output}/generated/dsp-pres"/> | |||||
| <mkdir dir="${output}/generated/dsp-void"/> | |||||
| <mkdir dir="${output}/resources/dsp-core/com/lgc/infra/core"/> | |||||
| <mkdir dir="${output}/resources/dsp-pres/com/lgc/infra/pres"/> | |||||
| <mkdir dir="${output}/resources/dsp-void"/> | |||||
| <mkdir dir="${output}/classes/dsp-core/com/lgc/infra/core" /> | |||||
| <mkdir dir="${output}/classes/dsp-pres/com/lgc/infra/pres" /> | |||||
| <mkdir dir="${output}/classes/dsp-void" /> | |||||
| <mkdir dir="${output}/generated/dsp-core/com/lgc/infra/core/generated" /> | |||||
| <mkdir dir="${output}/generated/dsp-pres" /> | |||||
| <mkdir dir="${output}/generated/dsp-void" /> | |||||
| <mkdir dir="${output}/resources/dsp-core/com/lgc/infra/core" /> | |||||
| <mkdir dir="${output}/resources/dsp-pres/com/lgc/infra/pres" /> | |||||
| <mkdir dir="${output}/resources/dsp-void" /> | |||||
| </target> | </target> | ||||
| <target name="test-bad-directory"> | <target name="test-bad-directory"> | ||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classpath.jar"> | jarfile="${output}/classpath.jar"> | ||||
| <classpath/> | |||||
| <classpath /> | |||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-bad-no-property" depends="setUp"> | <target name="test-bad-no-property" depends="setUp"> | ||||
| <manifestclasspath jarfile="${output}/classpath.jar"> | <manifestclasspath jarfile="${output}/classpath.jar"> | ||||
| <classpath/> | |||||
| <classpath /> | |||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-bad-property-exists" depends="setUp"> | <target name="test-bad-property-exists" depends="setUp"> | ||||
| <property name="jar.classpath" value="exists"/> | |||||
| <property name="jar.classpath" value="exists" /> | |||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classpath.jar"> | jarfile="${output}/classpath.jar"> | ||||
| <classpath/> | |||||
| <classpath /> | |||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-bad-no-jarfile" depends="setUp"> | <target name="test-bad-no-jarfile" depends="setUp"> | ||||
| <manifestclasspath property="jar.classpath"> | <manifestclasspath property="jar.classpath"> | ||||
| <classpath/> | |||||
| <classpath /> | |||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-bad-no-classpath" depends="setUp"> | <target name="test-bad-no-classpath" depends="setUp"> | ||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classpath.jar"/> | |||||
| jarfile="${output}/classpath.jar" /> | |||||
| </target> | </target> | ||||
| <target name="test-pseudo-tahoe-refid" depends="fullSetUp"> | <target name="test-pseudo-tahoe-refid" depends="fullSetUp"> | ||||
| <path id="classpath"> | <path id="classpath"> | ||||
| <!-- All the classes/ directories --> | <!-- All the classes/ directories --> | ||||
| <dirset dir="${output}/classes" includes="dsp-*"/> | |||||
| <dirset dir="${output}/classes" includes="dsp-*" /> | |||||
| <!-- All the JAXB generated/ directories --> | <!-- All the JAXB generated/ directories --> | ||||
| <dirset dir="${output}/generated" includes="dsp-*"> | <dirset dir="${output}/generated" includes="dsp-*"> | ||||
| <!-- Add only non-empty directories to the classpath --> | <!-- Add only non-empty directories to the classpath --> | ||||
| <present targetdir="${output}/generated" present="both"> | <present targetdir="${output}/generated" present="both"> | ||||
| <mapper type="regexp" from="(.*)" to="\1/com"/> | |||||
| <mapper type="regexp" from="(.*)" to="\1/com" /> | |||||
| </present> | </present> | ||||
| </dirset> | </dirset> | ||||
| @@ -93,14 +93,14 @@ | |||||
| <dirset dir="${output}/resources" includes="dsp-*"> | <dirset dir="${output}/resources" includes="dsp-*"> | ||||
| <!-- Add only non-empty directories to the classpath --> | <!-- Add only non-empty directories to the classpath --> | ||||
| <present targetdir="${output}/resources" present="both"> | <present targetdir="${output}/resources" present="both"> | ||||
| <mapper type="regexp" from="(.*)" to="\1/com"/> | |||||
| <mapper type="regexp" from="(.*)" to="\1/com" /> | |||||
| </present> | </present> | ||||
| </dirset> | </dirset> | ||||
| </path> | </path> | ||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classpath.jar"> | jarfile="${output}/classpath.jar"> | ||||
| <classpath refid="classpath"/> | |||||
| <classpath refid="classpath" /> | |||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| @@ -109,13 +109,13 @@ | |||||
| jarfile="${output}/classpath.jar"> | jarfile="${output}/classpath.jar"> | ||||
| <classpath> | <classpath> | ||||
| <!-- All the classes/ directories --> | <!-- All the classes/ directories --> | ||||
| <dirset dir="${output}/classes" includes="dsp-*"/> | |||||
| <dirset dir="${output}/classes" includes="dsp-*" /> | |||||
| <!-- All the JAXB generated/ directories --> | <!-- All the JAXB generated/ directories --> | ||||
| <dirset dir="${output}/generated" includes="dsp-*"> | <dirset dir="${output}/generated" includes="dsp-*"> | ||||
| <!-- Add only non-empty directories to the classpath --> | <!-- Add only non-empty directories to the classpath --> | ||||
| <present targetdir="${output}/generated" present="both"> | <present targetdir="${output}/generated" present="both"> | ||||
| <mapper type="regexp" from="(.*)" to="\1/com"/> | |||||
| <mapper type="regexp" from="(.*)" to="\1/com" /> | |||||
| </present> | </present> | ||||
| </dirset> | </dirset> | ||||
| @@ -123,7 +123,7 @@ | |||||
| <dirset dir="${output}/resources" includes="dsp-*"> | <dirset dir="${output}/resources" includes="dsp-*"> | ||||
| <!-- Add only non-empty directories to the classpath --> | <!-- Add only non-empty directories to the classpath --> | ||||
| <present targetdir="${output}/resources" present="both"> | <present targetdir="${output}/resources" present="both"> | ||||
| <mapper type="regexp" from="(.*)" to="\1/com"/> | |||||
| <mapper type="regexp" from="(.*)" to="\1/com" /> | |||||
| </present> | </present> | ||||
| </dirset> | </dirset> | ||||
| </classpath> | </classpath> | ||||
| @@ -134,88 +134,86 @@ | |||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classes/classpath.jar"> | jarfile="${output}/classes/classpath.jar"> | ||||
| <classpath> | <classpath> | ||||
| <dirset dir="${output}/classes" includes="dsp-*"/> | |||||
| <dirset dir="${output}/generated" includes="dsp-*"/> | |||||
| <dirset dir="${output}/resources" includes="dsp-*"/> | |||||
| <dirset dir="${output}/classes" includes="dsp-*" /> | |||||
| <dirset dir="${output}/generated" includes="dsp-*" /> | |||||
| <dirset dir="${output}/resources" includes="dsp-*" /> | |||||
| </classpath> | </classpath> | ||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-parent-level2" depends="fullSetUp"> | <target name="test-parent-level2" depends="fullSetUp"> | ||||
| <mkdir dir="${output}/classes/level2"/> | |||||
| <mkdir dir="${output}/classes/level2" /> | |||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classes/level2/classpath.jar"> | jarfile="${output}/classes/level2/classpath.jar"> | ||||
| <classpath> | <classpath> | ||||
| <dirset dir="${output}/classes" includes="dsp-*"/> | |||||
| <dirset dir="${output}/generated" includes="dsp-*"/> | |||||
| <dirset dir="${output}/resources" includes="dsp-*"/> | |||||
| <dirset dir="${output}/classes" includes="dsp-*" /> | |||||
| <dirset dir="${output}/generated" includes="dsp-*" /> | |||||
| <dirset dir="${output}/resources" includes="dsp-*" /> | |||||
| </classpath> | </classpath> | ||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-parent-level2-too-deep" depends="fullSetUp"> | <target name="test-parent-level2-too-deep" depends="fullSetUp"> | ||||
| <mkdir dir="${output}/classes/level2"/> | |||||
| <mkdir dir="${output}/classes/level2" /> | |||||
| <manifestclasspath property="jar.classpath" maxParentLevels="1" | <manifestclasspath property="jar.classpath" maxParentLevels="1" | ||||
| jarfile="${output}/classes/level2/classpath.jar"> | jarfile="${output}/classes/level2/classpath.jar"> | ||||
| <classpath> | <classpath> | ||||
| <dirset dir="${output}/classes" includes="dsp-*"/> | |||||
| <dirset dir="${output}/generated" includes="dsp-*"/> | |||||
| <dirset dir="${output}/resources" includes="dsp-*"/> | |||||
| <dirset dir="${output}/classes" includes="dsp-*" /> | |||||
| <dirset dir="${output}/generated" includes="dsp-*" /> | |||||
| <dirset dir="${output}/resources" includes="dsp-*" /> | |||||
| </classpath> | </classpath> | ||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="test-parent-level2-with-jars" depends="fullSetUp"> | <target name="test-parent-level2-with-jars" depends="fullSetUp"> | ||||
| <mkdir dir="${output}/classes/level2"/> | |||||
| <mkdir dir="${output}/classes/level2" /> | |||||
| <manifestclasspath property="jar.classpath" | <manifestclasspath property="jar.classpath" | ||||
| jarfile="${output}/classes/level2/classpath.jar"> | jarfile="${output}/classes/level2/classpath.jar"> | ||||
| <classpath> | <classpath> | ||||
| <fileset dir="${output}/lib" includes="*.jar"/> | |||||
| <dirset dir="${output}/classes" includes="dsp-*"/> | |||||
| <dirset dir="${output}/generated" includes="dsp-*"/> | |||||
| <dirset dir="${output}/resources" includes="dsp-*"/> | |||||
| <fileset dir="${output}/lib" includes="*.jar" /> | |||||
| <dirset dir="${output}/classes" includes="dsp-*" /> | |||||
| <dirset dir="${output}/generated" includes="dsp-*" /> | |||||
| <dirset dir="${output}/resources" includes="dsp-*" /> | |||||
| </classpath> | </classpath> | ||||
| </manifestclasspath> | </manifestclasspath> | ||||
| </target> | </target> | ||||
| <target name="international-german" depends="setUp"> | <target name="international-german" depends="setUp"> | ||||
| <antcall target="run-two-jars"> | |||||
| <param name="ext.dir" value="${aent}"/> | |||||
| </antcall> | |||||
| <antcall target="run-two-jars"> | |||||
| <param name="ext.dir" value="${aent}"/> | |||||
| </antcall> | |||||
| </target> | </target> | ||||
| <target name="international-hebrew" depends="setUp"> | <target name="international-hebrew" depends="setUp"> | ||||
| <antcall target="run-two-jars"> | |||||
| <param name="ext.dir" value="${jom}"/> | |||||
| </antcall> | |||||
| <antcall target="run-two-jars"> | |||||
| <param name="ext.dir" value="${jom}"/> | |||||
| </antcall> | |||||
| </target> | </target> | ||||
| <target name="run-two-jars"> | <target name="run-two-jars"> | ||||
| <mkdir dir="${output}/${ext.dir}"/> | |||||
| <javac srcdir="manifestclasspath" destdir="${output}"/> | |||||
| <jar destfile="${output}/${ext.dir}/alpha.jar"> | |||||
| <fileset dir="${output}"> | |||||
| <include name="Alpha.class"/> | |||||
| </fileset> | |||||
| </jar> | |||||
| <manifestclasspath property="jar.classpath" | |||||
| <mkdir dir="${output}/${ext.dir}"/> | |||||
| <javac srcdir="manifestclasspath" destdir="${output}" /> | |||||
| <jar destfile="${output}/${ext.dir}/alpha.jar"> | |||||
| <fileset dir="${output}"> | |||||
| <include name="Alpha.class"/> | |||||
| </fileset> | |||||
| </jar> | |||||
| <manifestclasspath property="jar.classpath" | |||||
| jarfile="${output}/beta.jar"> | jarfile="${output}/beta.jar"> | ||||
| <classpath> | |||||
| <pathelement location="${output}/beta.jar"/> | |||||
| <pathelement location="${output}/${ext.dir}/alpha.jar"/> | |||||
| </classpath> | |||||
| </manifestclasspath> | |||||
| <jar destfile="${output}/beta.jar"> | |||||
| <fileset dir="${output}"> | |||||
| <include name="Beta.class"/> | |||||
| </fileset> | |||||
| <manifest> | |||||
| <attribute name="Main-Class" value="Beta"/> | |||||
| <attribute name="Class-Path" value="${jar.classpath}"/> | |||||
| </manifest> | |||||
| </jar> | |||||
| <java fork="true" jar="${output}/beta.jar"/> | |||||
| </target> | |||||
| <classpath> | |||||
| <pathelement location="${output}/beta.jar"/> | |||||
| <pathelement location="${output}/${ext.dir}/alpha.jar"/> | |||||
| </classpath> | |||||
| </manifestclasspath> | |||||
| <jar destfile="${output}/beta.jar" > | |||||
| <fileset dir="${output}"> | |||||
| <include name="Beta.class"/> | |||||
| </fileset> | |||||
| <manifest> | |||||
| <attribute name="Main-Class" value="Beta"/> | |||||
| <attribute name="Class-Path" value="${jar.classpath}"/> | |||||
| </manifest> | |||||
| </jar> | |||||
| <java fork="true" jar="${output}/beta.jar"/> | |||||
| </target> | |||||
| <target name="testSameDrive"> | <target name="testSameDrive"> | ||||
| <property name="temp" location="${java.io.tmpdir}"/> | <property name="temp" location="${java.io.tmpdir}"/> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="test1"> | <target name="test1"> | ||||
| @@ -21,7 +21,7 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <target name="setUp"> | <target name="setUp"> | ||||
| <mkdir dir="${output}"/> | |||||
| <mkdir dir="${output}" /> | |||||
| </target> | </target> | ||||
| <target name="testFilterSet"> | <target name="testFilterSet"> | ||||
| @@ -102,26 +102,26 @@ | |||||
| </target> | </target> | ||||
| <target name="testMoveFileAndFileset"> | <target name="testMoveFileAndFileset"> | ||||
| <mkdir dir="${output}/A"/> | |||||
| <mkdir dir="${output}/A" /> | |||||
| <touch> | <touch> | ||||
| <filelist dir="${output}/A" files="1,2,3"/> | |||||
| <filelist dir="${output}/A" files="1,2,3" /> | |||||
| </touch> | </touch> | ||||
| <move todir="${output}/E" file="${output}/A/1"> | <move todir="${output}/E" file="${output}/A/1"> | ||||
| <fileset dir="${output}/A" includes="2,3"/> | |||||
| <fileset dir="${output}/A" includes="2,3" /> | |||||
| </move> | </move> | ||||
| <fail message="A unavailable"> | <fail message="A unavailable"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${output}/A" type="dir"/> | |||||
| <available file="${output}/A" type="dir" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <fail message="${output}/A/1 not moved"> | <fail message="${output}/A/1 not moved"> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <available file="${output}/A/1" type="file"/> | |||||
| <available file="${output}/A/1" type="file" /> | |||||
| <not> | <not> | ||||
| <available file="${output}/E/1" type="file"/> | |||||
| <available file="${output}/E/1" type="file" /> | |||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| @@ -129,9 +129,9 @@ | |||||
| <fail message="${output}/A/2 not moved"> | <fail message="${output}/A/2 not moved"> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <available file="${output}/A/2" type="file"/> | |||||
| <available file="${output}/A/2" type="file" /> | |||||
| <not> | <not> | ||||
| <available file="${output}/E/2" type="file"/> | |||||
| <available file="${output}/E/2" type="file" /> | |||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| @@ -139,9 +139,9 @@ | |||||
| <fail message="${output}/A/3 not moved"> | <fail message="${output}/A/3 not moved"> | ||||
| <condition> | <condition> | ||||
| <or> | <or> | ||||
| <available file="${output}/A/3" type="file"/> | |||||
| <available file="${output}/A/3" type="file" /> | |||||
| <not> | <not> | ||||
| <available file="${output}/E/3" type="file"/> | |||||
| <available file="${output}/E/3" type="file" /> | |||||
| </not> | </not> | ||||
| </or> | </or> | ||||
| </condition> | </condition> | ||||
| @@ -149,37 +149,37 @@ | |||||
| </target> | </target> | ||||
| <macrodef name="verifymove"> | <macrodef name="verifymove"> | ||||
| <attribute name="newfile"/> | |||||
| <attribute name="olddir"/> | |||||
| <attribute name="newfile" /> | |||||
| <attribute name="olddir" /> | |||||
| <sequential> | <sequential> | ||||
| <fail message="@{newfile} not available"> | <fail message="@{newfile} not available"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="@{newfile}" type="file"/> | |||||
| <available file="@{newfile}" type="file" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <fail message="@{olddir} remains"> | <fail message="@{olddir} remains"> | ||||
| <condition> | <condition> | ||||
| <available file="@{olddir}" type="dir"/> | |||||
| <available file="@{olddir}" type="dir" /> | |||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| </sequential> | </sequential> | ||||
| </macrodef> | </macrodef> | ||||
| <target name="testCompleteDirectoryMoveToExistingDir"> | <target name="testCompleteDirectoryMoveToExistingDir"> | ||||
| <mkdir dir="${output}/A"/> | |||||
| <touch file="${output}/A/1"/> | |||||
| <mkdir dir="${output}/E"/> | |||||
| <touch file="${output}/E/2"/> | |||||
| <mkdir dir="${output}/A" /> | |||||
| <touch file="${output}/A/1" /> | |||||
| <mkdir dir="${output}/E" /> | |||||
| <touch file="${output}/E/2" /> | |||||
| <move todir="${output}/E"> | <move todir="${output}/E"> | ||||
| <fileset dir="${output}/A"/> | |||||
| <fileset dir="${output}/A" /> | |||||
| </move> | </move> | ||||
| <verifymove newfile="${output}/E/1" olddir="${output}/A"/> | |||||
| <verifymove newfile="${output}/E/1" olddir="${output}/A" /> | |||||
| <fail message="E/2 unavailable"> | <fail message="E/2 unavailable"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${output}/E/2" type="file"/> | |||||
| <available file="${output}/E/2" type="file" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -188,41 +188,41 @@ | |||||
| <target name="testCompleteDirectoryMoveFileToFile"> | <target name="testCompleteDirectoryMoveFileToFile"> | ||||
| <mkdir dir="${output}/A"/> | <mkdir dir="${output}/A"/> | ||||
| <touch file="${output}/A/1"/> | <touch file="${output}/A/1"/> | ||||
| <move file="${output}/A" tofile="${output}/E"/> | |||||
| <verifymove newfile="${output}/E/1" olddir="${output}/A"/> | |||||
| <move file="${output}/A" tofile="${output}/E" /> | |||||
| <verifymove newfile="${output}/E/1" olddir="${output}/A" /> | |||||
| </target> | </target> | ||||
| <target name="testCompleteDirectoryMoveFileToDir"> | <target name="testCompleteDirectoryMoveFileToDir"> | ||||
| <mkdir dir="${output}/A"/> | <mkdir dir="${output}/A"/> | ||||
| <touch file="${output}/A/1"/> | <touch file="${output}/A/1"/> | ||||
| <move file="${output}/A" todir="${output}/E"/> | |||||
| <verifymove newfile="${output}/E/A/1" olddir="${output}/A"/> | |||||
| <move file="${output}/A" todir="${output}/E" /> | |||||
| <verifymove newfile="${output}/E/A/1" olddir="${output}/A" /> | |||||
| </target> | </target> | ||||
| <target name="testCompleteDirectoryMoveFileAndFileset"> | <target name="testCompleteDirectoryMoveFileAndFileset"> | ||||
| <mkdir dir="${output}/A/1"/> | |||||
| <touch file="${output}/A/2"/> | |||||
| <mkdir dir="${output}/A/1" /> | |||||
| <touch file="${output}/A/2" /> | |||||
| <move file="${output}/A/1" todir="${output}/E"> | <move file="${output}/A/1" todir="${output}/E"> | ||||
| <fileset dir="${output}/A" includes="2"/> | |||||
| <fileset dir="${output}/A" includes="2" /> | |||||
| </move> | </move> | ||||
| <fail message="A unavailable"> | <fail message="A unavailable"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${output}/A" type="dir"/> | |||||
| <available file="${output}/A" type="dir" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <fail message="E/1 unavailable"> | <fail message="E/1 unavailable"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${output}/E/1" type="dir"/> | |||||
| <available file="${output}/E/1" type="dir" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| <fail message="E/2 unavailable"> | <fail message="E/2 unavailable"> | ||||
| <condition> | <condition> | ||||
| <not> | <not> | ||||
| <available file="${output}/E/2" type="file"/> | |||||
| <available file="${output}/E/2" type="file" /> | |||||
| </not> | </not> | ||||
| </condition> | </condition> | ||||
| </fail> | </fail> | ||||
| @@ -232,15 +232,15 @@ | |||||
| <mkdir dir="${output}/A"/> | <mkdir dir="${output}/A"/> | ||||
| <touch file="${output}/A/1"/> | <touch file="${output}/A/1"/> | ||||
| <touch file="${output}/E"/> | <touch file="${output}/E"/> | ||||
| <move file="${output}/A" tofile="${output}/E"/> | |||||
| <move file="${output}/A" tofile="${output}/E" /> | |||||
| </target> | </target> | ||||
| <target name="testCompleteDirectoryMoveFileToExistingDir"> | <target name="testCompleteDirectoryMoveFileToExistingDir"> | ||||
| <mkdir dir="${output}/A"/> | <mkdir dir="${output}/A"/> | ||||
| <touch file="${output}/A/1"/> | <touch file="${output}/A/1"/> | ||||
| <mkdir dir="${output}/E"/> | <mkdir dir="${output}/E"/> | ||||
| <move file="${output}/A" tofile="${output}/E"/> | |||||
| <verifymove newfile="${output}/E/1" olddir="${output}/A"/> | |||||
| <move file="${output}/A" tofile="${output}/E" /> | |||||
| <verifymove newfile="${output}/E/1" olddir="${output}/A" /> | |||||
| </target> | </target> | ||||
| <target name="testCompleteDirectoryMoveFileToDirWithExistingFile"> | <target name="testCompleteDirectoryMoveFileToDirWithExistingFile"> | ||||
| @@ -248,7 +248,7 @@ | |||||
| <touch file="${output}/A/1"/> | <touch file="${output}/A/1"/> | ||||
| <mkdir dir="${output}/E"/> | <mkdir dir="${output}/E"/> | ||||
| <touch file="${output}/E/A"/> | <touch file="${output}/E/A"/> | ||||
| <move file="${output}/A" todir="${output}/E"/> | |||||
| <move file="${output}/A" todir="${output}/E" /> | |||||
| </target> | </target> | ||||
| <target name="testCompleteDirectoryMoveFileToDirWithExistingDir"> | <target name="testCompleteDirectoryMoveFileToDirWithExistingDir"> | ||||
| @@ -256,8 +256,8 @@ | |||||
| <touch file="${output}/A/1"/> | <touch file="${output}/A/1"/> | ||||
| <mkdir dir="${output}/E"/> | <mkdir dir="${output}/E"/> | ||||
| <mkdir dir="${output}/E/A"/> | <mkdir dir="${output}/E/A"/> | ||||
| <move file="${output}/A" todir="${output}/E"/> | |||||
| <verifymove newfile="${output}/E/A/1" olddir="${output}/A"/> | |||||
| <move file="${output}/A" todir="${output}/E" /> | |||||
| <verifymove newfile="${output}/E/A/1" olddir="${output}/A" /> | |||||
| </target> | </target> | ||||
| </project> | </project> | ||||
| @@ -20,8 +20,8 @@ | |||||
| <import file="../buildfiletest-base.xml"/> | <import file="../buildfiletest-base.xml"/> | ||||
| <path id="testclasses"> | <path id="testclasses"> | ||||
| <pathelement location="../../../../build/testcases"/> | |||||
| <pathelement path="${java.class.path}"/> | |||||
| <pathelement location="../../../../build/testcases" /> | |||||
| <pathelement path="${java.class.path}" /> | |||||
| </path> | </path> | ||||
| <mapper id="testmapper" | <mapper id="testmapper" | ||||
| @@ -75,8 +75,8 @@ | |||||
| </condition> | </condition> | ||||
| <fail unless="test2.outcome">mulitmove failed</fail> | <fail unless="test2.outcome">mulitmove failed</fail> | ||||
| </target> | </target> | ||||
| <!-- | |||||
| <!-- | |||||
| test traditional single file to single file copy explicitly telling | test traditional single file to single file copy explicitly telling | ||||
| task to ignore multiple mappings | task to ignore multiple mappings | ||||
| --> | --> | ||||