Browse Source

Merge branch '1.9.x' branch into master

master
Jaikiran Pai 7 years ago
parent
commit
995b518abf
21 changed files with 81 additions and 75 deletions
  1. +1
    -1
      src/etc/ant-update.xsl
  2. +1
    -1
      src/etc/jdepend.xsl
  3. +11
    -11
      src/etc/junit-frames-xalan1.xsl
  4. +2
    -2
      src/etc/junit-noframes.xsl
  5. +1
    -1
      src/etc/poms/ant-javamail/pom.xml
  6. +7
    -7
      src/etc/testcases/filters/build.xml
  7. +3
    -3
      src/etc/testcases/filters/head-tail.xml
  8. +2
    -2
      src/etc/testcases/filters/tokenfilter.xml
  9. +3
    -1
      src/etc/testcases/taskdefs/delete.xml
  10. +14
    -7
      src/etc/testcases/taskdefs/jar.xml
  11. +3
    -3
      src/etc/testcases/taskdefs/loadfile.xml
  12. +8
    -8
      src/etc/testcases/taskdefs/optional/javah/build.xml
  13. +3
    -6
      src/etc/testcases/taskdefs/optional/pvcs.xml
  14. +2
    -2
      src/etc/testcases/taskdefs/optional/script.xml
  15. +5
    -5
      src/etc/testcases/taskdefs/optional/xalan-redirect-in.xsl
  16. +2
    -2
      src/etc/testcases/taskdefs/typedef.xml
  17. +4
    -4
      src/tests/antunit/core/extension/module1.xml
  18. +5
    -5
      src/tests/antunit/taskdefs/concat-test.xml
  19. +1
    -1
      src/tests/antunit/taskdefs/get-test.xml
  20. +2
    -2
      src/tests/antunit/taskdefs/optional/javah-test.xml
  21. +1
    -1
      src/tests/antunit/taskdefs/rmic-test.xml

+ 1
- 1
src/etc/ant-update.xsl View File

@@ -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


+ 1
- 1
src/etc/jdepend.xsl View File

@@ -18,7 +18,7 @@
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>


+ 11
- 11
src/etc/junit-frames-xalan1.xsl View File

@@ -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>




<!-- ====================================================================== <!-- ======================================================================
@@ -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>


+ 2
- 2
src/etc/junit-noframes.xsl View File

@@ -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>


+ 1
- 1
src/etc/poms/ant-javamail/pom.xml View File

@@ -50,7 +50,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<version>1.6.1</version> <version>1.6.1</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies>
</dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>


+ 7
- 7
src/etc/testcases/filters/build.xml View File

@@ -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="testLineContains" depends="setUp"> <target name="testLineContains" depends="setUp">
@@ -35,7 +35,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">
@@ -50,12 +50,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">
@@ -72,9 +72,9 @@


<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>
@@ -94,7 +94,7 @@
<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>


+ 3
- 3
src/etc/testcases/filters/head-tail.xml View File

@@ -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>


<!-- Testcases for HeadFilter --> <!-- Testcases for HeadFilter -->
@@ -58,7 +58,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">
@@ -112,7 +112,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">


+ 2
- 2
src/etc/testcases/filters/tokenfilter.xml View File

@@ -350,8 +350,8 @@
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>

+ 3
- 1
src/etc/testcases/taskdefs/delete.xml View File

@@ -119,7 +119,7 @@
<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 />
@@ -188,4 +188,6 @@
<expectabsent target="${dir}/subdir"/> <expectabsent target="${dir}/subdir"/>
</target> </target>




</project> </project>

+ 14
- 7
src/etc/testcases/taskdefs/jar.xml View File

@@ -57,7 +57,8 @@
</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"
@@ -69,14 +70,16 @@
</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"
@@ -84,14 +87,16 @@
</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"
@@ -112,7 +117,8 @@
</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"
@@ -121,7 +127,8 @@
</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"


+ 3
- 3
src/etc/testcases/taskdefs/loadfile.xml View File

@@ -115,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">
@@ -126,7 +126,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>
<loadfile srcFile="loadfile1.tmp" <loadfile srcFile="loadfile1.tmp"
@@ -160,4 +160,4 @@ public class test1 {
<delete file="nocomments.tmp"/> <delete file="nocomments.tmp"/>
</target> </target>


</project>
</project>

+ 8
- 8
src/etc/testcases/taskdefs/optional/javah/build.xml View File

@@ -44,13 +44,13 @@
</target> </target>
<target name="test-fileset" depends="compile"> <target name="test-fileset" depends="compile">
<javah destdir="${output}">
<fileset dir="${output}">
<include name="**/*.class"/>
</fileset>
<classpath>
<pathelement location="${output}"/>
</classpath>
</javah>
<javah destdir="${output}">
<fileset dir="${output}">
<include name="**/*.class"/>
</fileset>
<classpath>
<pathelement location="${output}"/>
</classpath>
</javah>
</target> </target>
</project> </project>

+ 3
- 6
src/etc/testcases/taskdefs/optional/pvcs.xml View File

@@ -25,18 +25,15 @@
</target> </target>


<target name="test2"> <target name="test2">
<pvcs pvcsbin="/home/tc/projects/pvcsant/src/etc/testcases/taskdefs"
repository="/mnt/pvcs"/>
<pvcs pvcsbin="/home/tc/projects/pvcsant/src/etc/testcases/taskdefs" repository="/mnt/pvcs"/>
</target> </target>


<target name="test3"> <target name="test3">
<pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs"
repository="/mnt/pvcs" pvcsproject="/qviknet"/>
<pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" repository="/mnt/pvcs" pvcsproject="/qviknet"/>
</target> </target>


<target name="test4"> <target name="test4">
<pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs"
repository="/mnt/pvcs" pvcsproject="/qviknet" workspace="/@/Public/buildws"/>
<pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" repository="/mnt/pvcs" pvcsproject="/qviknet" workspace="/@/Public/buildws"/>
</target> </target>


<target name="test5" description="Get the latest from PVCS"> <target name="test5" description="Get the latest from PVCS">


+ 2
- 2
src/etc/testcases/taskdefs/optional/script.xml View File

@@ -29,10 +29,10 @@


<script language="javascript"> <![CDATA[ <script language="javascript"> <![CDATA[


for (i = 1; i <= 10; i++) {
for (i=1; i<=10; i++) {
echo = testproject.createTask("echo"); echo = testproject.createTask("echo");
setup1.addTask(echo); setup1.addTask(echo);
echo.setMessage(i * i);
echo.setMessage(i*i);
} }


]]> </script> ]]> </script>


+ 5
- 5
src/etc/testcases/taskdefs/optional/xalan-redirect-in.xsl View File

@@ -15,10 +15,10 @@
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:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:redirect="http://xml.apache.org/xalan/redirect"
extension-element-prefixes="redirect">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:redirect="http://xml.apache.org/xalan/redirect"
extension-element-prefixes="redirect">
<!-- <!--
This is a test to ensure that systemid is set correctly This is a test to ensure that systemid is set correctly
for a xsl...the behavior might be dependent on Xalan1 for a xsl...the behavior might be dependent on Xalan1
@@ -30,7 +30,7 @@ the base or the JVM working dir just like: new File("xalan-redirect-out.tmp")


<xsl:template match="/"> <xsl:template match="/">
<redirect:write file="./xalan{$xalan-version}-redirect-out.tmp"> <redirect:write file="./xalan{$xalan-version}-redirect-out.tmp">
<test>This should be written to the file</test>
<test>This should be written to the file</test>
</redirect:write> </redirect:write>
</xsl:template> </xsl:template>




+ 2
- 2
src/etc/testcases/taskdefs/typedef.xml View File

@@ -71,11 +71,11 @@
</target> </target>
<target name="noresourcefailall"> <target name="noresourcefailall">
<typedef resource="somenotpresentfile.properties" onerror="failall"/>
<typedef resource="somenotpresentfile.properties" onerror="failall"/>
</target> </target>
<target name="noresourcefail"> <target name="noresourcefail">
<typedef resource="somenotpresentfile.properties" onerror="fail"/>
<typedef resource="somenotpresentfile.properties" onerror="fail"/>
</target> </target>
<target name="noresourcenotfail"> <target name="noresourcenotfail">


+ 4
- 4
src/tests/antunit/core/extension/module1.xml View File

@@ -17,9 +17,9 @@
--> -->
<project name="module1"> <project name="module1">


<!-- declare a target with the same name as one in the master -->
<target name="compile" extensionOf="all.compile">
<echo message="In module1 compile. Yay!"/>
</target>
<!-- declare a target with the same name as one in the master -->
<target name="compile" extensionOf="all.compile">
<echo message="In module1 compile. Yay!"/>
</target>


</project> </project>

+ 5
- 5
src/tests/antunit/taskdefs/concat-test.xml View File

@@ -109,10 +109,10 @@
<file name="2"/> <file name="2"/>
</filelist> </filelist>
<filterchain> <filterchain>
<tokenfilter>
<ignoreblank/>
</tokenfilter>
</filterchain>
<tokenfilter>
<ignoreblank/>
</tokenfilter>
</filterchain>
</concat> </concat>
</resourcesmatch> </resourcesmatch>
</au:assertTrue> </au:assertTrue>
@@ -142,7 +142,7 @@
<concat destfile="${output}/TESTDEST" ignoreEmpty="false"> <concat destfile="${output}/TESTDEST" ignoreEmpty="false">
<filelist dir="${input}" files="thisfiledoesnotexist" /> <filelist dir="${input}" files="thisfiledoesnotexist" />
<header filtering="false" trim="yes"> <header filtering="false" trim="yes">
header
header
</header> </header>
</concat> </concat>
<au:assertFileExists file="${output}/TESTDEST" /> <au:assertFileExists file="${output}/TESTDEST" />


+ 1
- 1
src/tests/antunit/taskdefs/get-test.xml View File

@@ -20,7 +20,7 @@
<import file="../antunit-base.xml" /> <import file="../antunit-base.xml" />


<property name="location" value="http://ant.apache.org/webtest/gettest" /> <property name="location" value="http://ant.apache.org/webtest/gettest" />
<target name="setUp"> <target name="setUp">
<mkdir dir="${output}" /> <mkdir dir="${output}" />
</target> </target>


+ 2
- 2
src/tests/antunit/taskdefs/optional/javah-test.xml View File

@@ -92,10 +92,10 @@ public class Foo {
<presetdef name="javah-fileset"> <presetdef name="javah-fileset">
<javah destdir="${output}"> <javah destdir="${output}">
<fileset dir="${output}"> <fileset dir="${output}">
<include name="**/*.class"/>
<include name="**/*.class"/>
</fileset> </fileset>
<classpath> <classpath>
<pathelement location="${output}"/>
<pathelement location="${output}"/>
</classpath> </classpath>
</javah> </javah>
</presetdef> </presetdef>


+ 1
- 1
src/tests/antunit/taskdefs/rmic-test.xml View File

@@ -85,7 +85,7 @@ package org.example;
import java.rmi.Remote; import java.rmi.Remote;
import java.rmi.RemoteException; import java.rmi.RemoteException;
public interface Foo extends Remote { public interface Foo extends Remote {
long bar() throws RemoteException;
long bar() throws RemoteException ;
}]]></echo> }]]></echo>
<echo file="${input}/org/example/FooImpl.java"><![CDATA[ <echo file="${input}/org/example/FooImpl.java"><![CDATA[
package org.example; package org.example;


Loading…
Cancel
Save