aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional')
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.g76
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.xml128
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/extended.calc.g23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.g1162
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.tree.g312
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/depend.xml196
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/A.java20
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/B.java19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/C.java19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/D.java19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/E.java22
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/A.java21
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/B.java19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/A.java23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/B.java19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/ContainsOnlyInner.java24
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/MethodParam.java24
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/Outer.java23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/A.java22
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/B.java19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.properties15
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.xml133
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/expected/de/template.txt1
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/resources_ger_DE.properties24
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/template.txt1
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/translate.xml44
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/image.xml73
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/badimage.jpgbin875960 -> 0 bytes
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/largeimage.jpgbin336783 -> 0 bytes
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/build.xml56
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/input/org/example/Foo.java26
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jdepend/jdepend.xml70
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/1nvalid-classname.jsp25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/WEB-INF/web.xml20
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/default.jsp25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/missing_tld.jsp32
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/simple.jsp25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/uriroot.jsp25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/xml.jsp32
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jspc.xml133
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit.xml361
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/cdataoutput.xml28
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/matches.xml25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/teardownlistener.xml50
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-frames.xsl879
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-import.xsl24
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport.xml189
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/INCOMPLETE-sampleproject.incomplete.xml31
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/NAMESPACE-sampleproject.namespace.xml116
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.coins.CoinTest.xml115
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.util.UniqueStringTest.xml93
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/WRONGELEMENT-sampleproject.wrongelement.xml18
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/ZEROBYTES-sampleproject.package.xml0
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/junit-frames.xsl879
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/build.xml38
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/expected/iso8859-1.test1
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/input/iso8859-1.test1
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/net/ftp.xml331
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/propertyfile.xml123
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/pvcs.xml50
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.properties16
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.xml83
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.properties15
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.result.properties15
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/schemavalidate.xml100
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script.xml46
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script/scriptdef.xml145
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script_reference.xml27
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/sos/sos.xml124
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/splash-test.xml45
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/unix/symlink.xml354
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/vss/vss.xml68
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xalan-redirect-in.xsl37
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/about.xml26
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/apache.xsl35
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/books.xml28
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/catalog2
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc-in-ns.xsd38
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.dtd24
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsd37
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsl26
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml29
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema-invalid.xml30
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema.xml28
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-ns-no-location.xml23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece.xml23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece2.xml26
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/entity.xml20
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/iso-2022-jp.xml23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_include.xsl28
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_with_include.xsl28
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xml25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xsl25
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/utf-8.xml23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/validate.xml28
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xmlvalidate.xml208
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xslt.xml102
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xml20
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xsl27
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xml23
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xsl20
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xml19
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xsl20
103 files changed, 0 insertions, 8391 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.g b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.g
deleted file mode 100644
index 9f724936..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.g
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-class CalcParser extends Parser;
-options {
- buildAST = true; // uses CommonAST by default
-}
-
-expr
- : mexpr (PLUS^ mexpr)* SEMI!
- ;
-
-mexpr
- : atom (STAR^ atom)*
- ;
-
-atom: INT
- ;
-
-class CalcLexer extends Lexer;
-
-WS : (' '
- | '\t'
- | '\n'
- | '\r')
- { _ttype = Token.SKIP; }
- ;
-
-LPAREN: '('
- ;
-
-RPAREN: ')'
- ;
-
-STAR: '*'
- ;
-
-PLUS: '+'
- ;
-
-SEMI: ';'
- ;
-
-protected
-DIGIT
- : '0'..'9'
- ;
-
-INT : (DIGIT)+
- ;
-
-class CalcTreeWalker extends TreeParser;
-
-expr returns [float r]
-{
- float a,b;
- r=0;
-}
- : #(PLUS a=expr b=expr) {r = a+b;}
- | #(STAR a=expr b=expr) {r = a*b;}
- | i:INT {r = (float)Integer.parseInt(i.getText());}
- ;
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.xml
deleted file mode 100644
index c136d061..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/antlr.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="antlr-test" basedir="." default="test1">
-
- <import file="../../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- </target>
-
- <target name="test1">
- <antlr/>
- </target>
-
- <target name="test2">
- <antlr target="antlr.g" outputdirectory="${output}"/>
- </target>
-
- <target name="test3" depends="setUp">
- <antlr target="antlr.g" outputdirectory="${output}"/>
- <fail>
- <condition>
- <!-- to prove each of these files exists;
- ANTLR >= 2.7.6 leaves behind new (.smap) files as well. -->
- <resourcecount when="ne" count="5">
- <fileset dir="${output}">
- <include name="CalcParserTokenTypes.txt" />
- <include name="CalcParserTokenTypes.java" />
- <include name="CalcLexer.java" />
- <include name="CalcParser.java" />
- <include name="CalcTreeWalker.java" />
- </fileset>
- </resourcecount>
- </condition>
- </fail>
- </target>
-
- <target name="test4" depends="setUp">
- <antlr target="java.g" outputdirectory="${output}"/>
- <antlr dir="${output}" target="java.tree.g" outputdirectory="${output}"/>
- </target>
-
- <target name="test5" depends="setUp">
- <antlr target="java.tree.g" outputdirectory="${output}" fork="yes"/>
- </target>
-
- <target name="test6" depends="setUp">
- <antlr target="java.g" outputdirectory="${output}" />
- <antlr dir="${output}"
- target="java.tree.g"
- outputdirectory="${output}"
- fork="yes"/>
- </target>
-
- <target name="test7">
- <antlr target="antlr.xml"/>
- </target>
-
- <target name="test8" depends="setUp">
- <antlr target="extended.calc.g" outputdirectory="${output}" glib="non-existent-file.g"/>
- </target>
-
- <target name="test9" depends="setUp">
- <!-- Note that I had to copy the grammars over to the temporary directory. -->
- <!-- This is because ANTLR expects the super grammar and its generated java -->
- <!-- files to be in the same directory, which won't be the case if I use -->
- <!-- the output directory option. -->
- <copy file="antlr.g" todir="${output}"/>
- <copy file="extended.calc.g" todir="${output}"/>
- <antlr target="${output}/antlr.g"/>
- <antlr target="${output}/extended.calc.g" glib="${output}/antlr.g"/>
- </target>
-
- <target name="test10" depends="setUp">
- <antlr target="antlr.g" outputdirectory="${output}" html="yes"/>
- </target>
-
- <target name="test11" depends="setUp">
- <antlr target="antlr.g" outputdirectory="${output}" diagnostic="yes"/>
- </target>
-
- <target name="test12" depends="setUp">
- <antlr target="antlr.g" outputdirectory="${output}" trace="yes"/>
- </target>
-
- <target name="test13" depends="setUp">
- <antlr target="antlr.g" outputdirectory="${output}" traceLexer="yes" traceParser="yes" traceTreeWalker="yes"/>
- </target>
-
- <!-- test9 will have been run before that -->
- <target name="noRecompile">
- <antlr target="${output}/extended.calc.g" glib="${output}/antlr.g"/>
- </target>
-
- <!-- test9 will have been run before that -->
- <target name="normalRecompile">
- <touch file="${output}/extended.calc.g"/>
- <antlr target="${output}/extended.calc.g" glib="${output}/antlr.g"/>
- </target>
-
- <!-- test9 will have been run before that -->
- <target name="supergrammarChangeRecompile">
- <touch file="${output}/antlr.g"/>
- <antlr target="${output}/extended.calc.g" glib="${output}/antlr.g"/>
- </target>
-
- <target name="tearDown">
- <delete dir="${output}" />
- <delete file="../../../../../../CalcParserTokenTypes.txt"/>
- </target>
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/extended.calc.g b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/extended.calc.g
deleted file mode 100644
index 00c1993f..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/extended.calc.g
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-// Not really a great extension, but it is only a test after all!
-
-class ExtendedCalcParser extends CalcParser;
-
-exprList
- : LPAREN (expr)* RPAREN
- ;
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.g b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.g
deleted file mode 100644
index e5857502..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.g
+++ /dev/null
@@ -1,1162 +0,0 @@
-/** Java 1.2 Recognizer
- *
- * Run 'java Main <directory full of java files>'
- *
- * Contributing authors:
- * John Mitchell johnm@non.net
- * Terence Parr parrt@magelang.com
- * John Lilley jlilley@empathy.com
- * Scott Stanchfield thetick@magelang.com
- * Markus Mohnen mohnen@informatik.rwth-aachen.de
- * Peter Williams pwilliams@netdynamics.com
- *
- * Version 1.00 December 9, 1997 -- initial release
- * Version 1.01 December 10, 1997
- * fixed bug in octal def (0..7 not 0..8)
- * Version 1.10 August 1998 (parrt)
- * added tree construction
- * fixed definition of WS,comments for mac,pc,unix newlines
- * added unary plus
- * Version 1.11 (Nov 20, 1998)
- * Added "shutup" option to turn off last ambig warning.
- * Fixed inner class def to allow named class defs as statements
- * synchronized requires compound not simple statement
- * add [] after builtInType DOT class in primaryExpression
- * "const" is reserved but not valid..removed from modifiers
- * Version 1.12 (Feb 2, 1999)
- * Changed LITERAL_xxx to xxx in tree grammar.
- * Updated java.g to use tokens {...} now for 2.6.0 (new feature).
- *
- * Version 1.13 (Apr 23, 1999)
- * Didn't have (stat)? for else clause in tree parser.
- * Didn't gen ASTs for interface extends. Updated tree parser too.
- * Updated to 2.6.0.
- * Version 1.14 (Jun 20, 1999)
- * Allowed final/abstract on local classes.
- * Removed local interfaces from methods
- * Put instanceof precedence where it belongs...in relationalExpr
- * It also had expr not type as arg; fixed it.
- * Missing ! on SEMI in classBlock
- * fixed: (expr) + "string" was parsed incorrectly (+ as unary plus).
- * fixed: didn't like Object[].class in parser or tree parser
- * Version 1.15 (Jun 26, 1999)
- * Screwed up rule with instanceof in it. :( Fixed.
- * Tree parser didn't like (expr).something; fixed.
- * Allowed multiple inheritance in tree grammar. oops.
- * Version 1.16 (August 22, 1999)
- * Extending an interface built a wacky tree: had extra EXTENDS.
- * Tree grammar didn't allow multiple superinterfaces.
- * Tree grammar didn't allow empty var initializer: {}
- * Version 1.17 (October 12, 1999)
- * ESC lexer rule allowed 399 max not 377 max.
- * java.tree.g didn't handle the expression of synchronized
- * statements.
- *
- * BUG:
- * Doesn't like boolean.class!
- *
- * class Test {
- * public static void main( String args[] ) {
- * if (boolean.class.equals(boolean.class)) {
- * System.out.println("works");
- * }
- * }
- * }
- *
- * This grammar is in the PUBLIC DOMAIN
- */
-class JavaRecognizer extends Parser;
-options {
- k = 2; // two token lookahead
- exportVocab=Java; // Call its vocabulary "Java"
- codeGenMakeSwitchThreshold = 2; // Some optimizations
- codeGenBitsetTestThreshold = 3;
- defaultErrorHandler = false; // Don't generate parser error handlers
- buildAST = true;
-}
-
-tokens {
- BLOCK; MODIFIERS; OBJBLOCK; SLIST; CTOR_DEF; METHOD_DEF; VARIABLE_DEF;
- INSTANCE_INIT; STATIC_INIT; TYPE; CLASS_DEF; INTERFACE_DEF;
- PACKAGE_DEF; ARRAY_DECLARATOR; EXTENDS_CLAUSE; IMPLEMENTS_CLAUSE;
- PARAMETERS; PARAMETER_DEF; LABELED_STAT; TYPECAST; INDEX_OP;
- POST_INC; POST_DEC; METHOD_CALL; EXPR; ARRAY_INIT;
- IMPORT; UNARY_MINUS; UNARY_PLUS; CASE_GROUP; ELIST; FOR_INIT; FOR_CONDITION;
- FOR_ITERATOR; EMPTY_STAT; FINAL="final"; ABSTRACT="abstract";
-}
-
-// Compilation Unit: In Java, this is a single file. This is the start
-// rule for this parser
-compilationUnit
- : // A compilation unit starts with an optional package definition
- ( packageDefinition
- | /* nothing */
- )
-
- // Next we have a series of zero or more import statements
- ( importDefinition )*
-
- // Wrapping things up with any number of class or interface
- // definitions
- ( typeDefinition )*
-
- EOF!
- ;
-
-
-// Package statement: "package" followed by an identifier.
-packageDefinition
- options {defaultErrorHandler = true;} // let ANTLR handle errors
- : p:"package"^ {#p.setType(PACKAGE_DEF);} identifier SEMI!
- ;
-
-
-// Import statement: import followed by a package or class name
-importDefinition
- options {defaultErrorHandler = true;}
- : i:"import"^ {#i.setType(IMPORT);} identifierStar SEMI!
- ;
-
-// A type definition in a file is either a class or interface definition.
-typeDefinition
- options {defaultErrorHandler = true;}
- : m:modifiers!
- ( classDefinition[#m]
- | interfaceDefinition[#m]
- )
- | SEMI!
- ;
-
-/** A declaration is the creation of a reference or primitive-type variable
- * Create a separate Type/Var tree for each var in the var list.
- */
-declaration!
- : m:modifiers t:typeSpec[false] v:variableDefinitions[#m,#t]
- {#declaration = #v;}
- ;
-
-// A list of zero or more modifiers. We could have used (modifier)* in
-// place of a call to modifiers, but I thought it was a good idea to keep
-// this rule separate so they can easily be collected in a Vector if
-// someone so desires
-modifiers
- : ( modifier )*
- {#modifiers = #([MODIFIERS, "MODIFIERS"], #modifiers);}
- ;
-
-
-// A type specification is a type name with possible brackets afterwards
-// (which would make it an array type).
-typeSpec[boolean addImagNode]
- : classTypeSpec[addImagNode]
- | builtInTypeSpec[addImagNode]
- ;
-
-// A class type specification is a class type with possible brackets afterwards
-// (which would make it an array type).
-classTypeSpec[boolean addImagNode]
- : identifier (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)*
- {
- if ( addImagNode ) {
- #classTypeSpec = #(#[TYPE,"TYPE"], #classTypeSpec);
- }
- }
- ;
-
-// A builtin type specification is a builtin type with possible brackets
-// afterwards (which would make it an array type).
-builtInTypeSpec[boolean addImagNode]
- : builtInType (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)*
- {
- if ( addImagNode ) {
- #builtInTypeSpec = #(#[TYPE,"TYPE"], #builtInTypeSpec);
- }
- }
- ;
-
-// A type name. which is either a (possibly qualified) class name or
-// a primitive (builtin) type
-type
- : identifier
- | builtInType
- ;
-
-// The primitive types.
-builtInType
- : "void"
- | "boolean"
- | "byte"
- | "char"
- | "short"
- | "int"
- | "float"
- | "long"
- | "double"
- ;
-
-// A (possibly-qualified) java identifier. We start with the first IDENT
-// and expand its name by adding dots and following IDENTS
-identifier
- : IDENT ( DOT^ IDENT )*
- ;
-
-identifierStar
- : IDENT
- ( DOT^ IDENT )*
- ( DOT^ STAR )?
- ;
-
-
-// modifiers for Java classes, interfaces, class/instance vars and methods
-modifier
- : "private"
- | "public"
- | "protected"
- | "static"
- | "transient"
- | "final"
- | "abstract"
- | "native"
- | "threadsafe"
- | "synchronized"
-// | "const" // reserved word; leave out
- | "volatile"
- ;
-
-
-// Definition of a Java class
-classDefinition![AST modifiers]
- : "class" IDENT
- // it _might_ have a superclass...
- sc:superClassClause
- // it might implement some interfaces...
- ic:implementsClause
- // now parse the body of the class
- cb:classBlock
- {#classDefinition = #(#[CLASS_DEF,"CLASS_DEF"],
- modifiers,IDENT,sc,ic,cb);}
- ;
-
-superClassClause!
- : ( "extends" id:identifier )?
- {#superClassClause = #(#[EXTENDS_CLAUSE,"EXTENDS_CLAUSE"],id);}
- ;
-
-// Definition of a Java Interface
-interfaceDefinition![AST modifiers]
- : "interface" IDENT
- // it might extend some other interfaces
- ie:interfaceExtends
- // now parse the body of the interface (looks like a class...)
- cb:classBlock
- {#interfaceDefinition = #(#[INTERFACE_DEF,"INTERFACE_DEF"],
- modifiers,IDENT,ie,cb);}
- ;
-
-
-// This is the body of a class. You can have fields and extra semicolons,
-// That's about it (until you see what a field is...)
-classBlock
- : LCURLY!
- ( field | SEMI! )*
- RCURLY!
- {#classBlock = #([OBJBLOCK, "OBJBLOCK"], #classBlock);}
- ;
-
-// An interface can extend several other interfaces...
-interfaceExtends
- : (
- e:"extends"!
- identifier ( COMMA! identifier )*
- )?
- {#interfaceExtends = #(#[EXTENDS_CLAUSE,"EXTENDS_CLAUSE"],
- #interfaceExtends);}
- ;
-
-// A class can implement several interfaces...
-implementsClause
- : (
- i:"implements"! identifier ( COMMA! identifier )*
- )?
- {#implementsClause = #(#[IMPLEMENTS_CLAUSE,"IMPLEMENTS_CLAUSE"],
- #implementsClause);}
- ;
-
-// Now the various things that can be defined inside a class or interface...
-// Note that not all of these are really valid in an interface (constructors,
-// for example), and if this grammar were used for a compiler there would
-// need to be some semantic checks to make sure we're doing the right thing...
-field!
- : // method, constructor, or variable declaration
- mods:modifiers
- ( h:ctorHead s:compoundStatement // constructor
- {#field = #(#[CTOR_DEF,"CTOR_DEF"], mods, h, s);}
-
- | cd:classDefinition[#mods] // inner class
- {#field = #cd;}
-
- | id:interfaceDefinition[#mods] // inner interface
- {#field = #id;}
-
- | t:typeSpec[false] // method or variable declaration(s)
- ( IDENT // the name of the method
-
- // parse the formal parameter declarations.
- LPAREN! param:parameterDeclarationList RPAREN!
-
- rt:returnTypeBrackersOnEndOfMethodHead[#t]
-
- // get the list of exceptions that this method is declared to throw
- (tc:throwsClause)?
-
- ( s2:compoundStatement | SEMI )
- {#field = #(#[METHOD_DEF,"METHOD_DEF"],
- mods,
- #(#[TYPE,"TYPE"],rt),
- IDENT,
- param,
- tc,
- s2);}
- | v:variableDefinitions[#mods,#t] SEMI
-// {#field = #(#[VARIABLE_DEF,"VARIABLE_DEF"], v);}
- {#field = #v;}
- )
- )
-
- // "static { ... }" class initializer
- | "static" s3:compoundStatement
- {#field = #(#[STATIC_INIT,"STATIC_INIT"], s3);}
-
- // "{ ... }" instance initializer
- | s4:compoundStatement
- {#field = #(#[INSTANCE_INIT,"INSTANCE_INIT"], s4);}
- ;
-
-variableDefinitions[AST mods, AST t]
- : variableDeclarator[getASTFactory().dupTree(mods),
- getASTFactory().dupTree(t)]
- ( COMMA!
- variableDeclarator[getASTFactory().dupTree(mods),
- getASTFactory().dupTree(t)]
- )*
- ;
-
-/** Declaration of a variable. This can be a class/instance variable,
- * or a local variable in a method
- * It can also include possible initialization.
- */
-variableDeclarator![AST mods, AST t]
- : id:IDENT d:declaratorBrackets[t] v:varInitializer
- {#variableDeclarator = #(#[VARIABLE_DEF,"VARIABLE_DEF"], mods, #(#[TYPE,"TYPE"],d), id, v);}
- ;
-
-declaratorBrackets[AST typ]
- : {#declaratorBrackets=typ;}
- (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)*
- ;
-
-varInitializer
- : ( ASSIGN^ initializer )?
- ;
-
-// This is an initializer used to set up an array.
-arrayInitializer
- : lc:LCURLY^ {#lc.setType(ARRAY_INIT);}
- ( initializer
- (
- // CONFLICT: does a COMMA after an initializer start a new
- // initializer or start the option ',' at end?
- // ANTLR generates proper code by matching
- // the comma as soon as possible.
- options {
- warnWhenFollowAmbig = false;
- }
- :
- COMMA! initializer
- )*
- (COMMA!)?
- )?
- RCURLY!
- ;
-
-
-// The two "things" that can initialize an array element are an expression
-// and another (nested) array initializer.
-initializer
- : expression
- | arrayInitializer
- ;
-
-// This is the header of a method. It includes the name and parameters
-// for the method.
-// This also watches for a list of exception classes in a "throws" clause.
-ctorHead
- : IDENT // the name of the method
-
- // parse the formal parameter declarations.
- LPAREN! parameterDeclarationList RPAREN!
-
- // get the list of exceptions that this method is declared to throw
- (throwsClause)?
- ;
-
-// This is a list of exception classes that the method is declared to throw
-throwsClause
- : "throws"^ identifier ( COMMA! identifier )*
- ;
-
-
-returnTypeBrackersOnEndOfMethodHead[AST typ]
- : {#returnTypeBrackersOnEndOfMethodHead = typ;}
- (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)*
- ;
-
-// A list of formal parameters
-parameterDeclarationList
- : ( parameterDeclaration ( COMMA! parameterDeclaration )* )?
- {#parameterDeclarationList = #(#[PARAMETERS,"PARAMETERS"],
- #parameterDeclarationList);}
- ;
-
-// A formal parameter.
-parameterDeclaration!
- : pm:parameterModifier t:typeSpec[false] id:IDENT
- pd:parameterDeclaratorBrackets[#t]
- {#parameterDeclaration = #(#[PARAMETER_DEF,"PARAMETER_DEF"],
- pm, #([TYPE,"TYPE"],pd), id);}
- ;
-
-parameterDeclaratorBrackets[AST t]
- : {#parameterDeclaratorBrackets = t;}
- (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)*
- ;
-
-parameterModifier
- : (f:"final")?
- {#parameterModifier = #(#[MODIFIERS,"MODIFIERS"], f);}
- ;
-
-// Compound statement. This is used in many contexts:
-// Inside a class definition prefixed with "static":
-// it is a class initializer
-// Inside a class definition without "static":
-// it is an instance initializer
-// As the body of a method
-// As a completely indepdent braced block of code inside a method
-// it starts a new scope for variable definitions
-
-compoundStatement
- : lc:LCURLY^ {#lc.setType(SLIST);}
- // include the (possibly-empty) list of statements
- (statement)*
- RCURLY!
- ;
-
-
-statement
- // A list of statements in curly braces -- start a new scope!
- : compoundStatement
-
- // class definition
- | classDefinition[#[MODIFIERS, "MODIFIERS"]]
-
- // final class definition
- | "final"! classDefinition[#(#[MODIFIERS, "MODIFIERS"],#[FINAL,"final"])]
-
- // abstract class definition
- | "abstract"! classDefinition[#(#[MODIFIERS, "MODIFIERS"],#[ABSTRACT,"abstract"])]
-
- // declarations are ambiguous with "ID DOT" relative to expression
- // statements. Must backtrack to be sure. Could use a semantic
- // predicate to test symbol table to see what the type was coming
- // up, but that's pretty hard without a symbol table ;)
- | (declaration)=> declaration SEMI!
-
- // An expression statement. This could be a method call,
- // assignment statement, or any other expression evaluated for
- // side-effects.
- | expression SEMI!
-
- // Attach a label to the front of a statement
- | IDENT c:COLON^ {#c.setType(LABELED_STAT);} statement
-
- // If-else statement
- | "if"^ LPAREN! expression RPAREN! statement
- (
- // CONFLICT: the old "dangling-else" problem...
- // ANTLR generates proper code matching
- // as soon as possible. Hush warning.
- options {
- warnWhenFollowAmbig = false;
- }
- :
- "else"! statement
- )?
-
- // For statement
- | "for"^
- LPAREN!
- forInit SEMI! // initializer
- forCond SEMI! // condition test
- forIter // updater
- RPAREN!
- statement // statement to loop over
-
- // While statement
- | "while"^ LPAREN! expression RPAREN! statement
-
- // do-while statement
- | "do"^ statement "while"! LPAREN! expression RPAREN! SEMI!
-
- // get out of a loop (or switch)
- | "break"^ (IDENT)? SEMI!
-
- // do next iteration of a loop
- | "continue"^ (IDENT)? SEMI!
-
- // Return an expression
- | "return"^ (expression)? SEMI!
-
- // switch/case statement
- | "switch"^ LPAREN! expression RPAREN! LCURLY!
- ( casesGroup )*
- RCURLY!
-
- // exception try-catch block
- | tryBlock
-
- // throw an exception
- | "throw"^ expression SEMI!
-
- // synchronize a statement
- | "synchronized"^ LPAREN! expression RPAREN! compoundStatement
-
- // empty statement
- | s:SEMI {#s.setType(EMPTY_STAT);}
- ;
-
-
-casesGroup
- : ( // CONFLICT: to which case group do the statements bind?
- // ANTLR generates proper code: it groups the
- // many "case"/"default" labels together then
- // follows them with the statements
- options {
- warnWhenFollowAmbig = false;
- }
- :
- aCase
- )+
- caseSList
- {#casesGroup = #([CASE_GROUP, "CASE_GROUP"], #casesGroup);}
- ;
-
-aCase
- : ("case"^ expression | "default") COLON!
- ;
-
-caseSList
- : (statement)*
- {#caseSList = #(#[SLIST,"SLIST"],#caseSList);}
- ;
-
-// The initializer for a for loop
-forInit
- // if it looks like a declaration, it is
- : ( (declaration)=> declaration
- // otherwise it could be an expression list...
- | expressionList
- )?
- {#forInit = #(#[FOR_INIT,"FOR_INIT"],#forInit);}
- ;
-
-forCond
- : (expression)?
- {#forCond = #(#[FOR_CONDITION,"FOR_CONDITION"],#forCond);}
- ;
-
-forIter
- : (expressionList)?
- {#forIter = #(#[FOR_ITERATOR,"FOR_ITERATOR"],#forIter);}
- ;
-
-// an exception handler try/catch block
-tryBlock
- : "try"^ compoundStatement
- (handler)*
- ( "finally"^ compoundStatement )?
- ;
-
-
-// an exception handler
-handler
- : "catch"^ LPAREN! parameterDeclaration RPAREN! compoundStatement
- ;
-
-
-// expressions
-// Note that most of these expressions follow the pattern
-// thisLevelExpression :
-// nextHigherPrecedenceExpression
-// (OPERATOR nextHigherPrecedenceExpression)*
-// which is a standard recursive definition for a parsing an expression.
-// The operators in java have the following precedences:
-// lowest (13) = *= /= %= += -= <<= >>= >>>= &= ^= |=
-// (12) ?:
-// (11) ||
-// (10) &&
-// ( 9) |
-// ( 8) ^
-// ( 7) &
-// ( 6) == !=
-// ( 5) < <= > >=
-// ( 4) << >>
-// ( 3) +(binary) -(binary)
-// ( 2) * / %
-// ( 1) ++ -- +(unary) -(unary) ~ ! (type)
-// [] () (method call) . (dot -- identifier qualification)
-// new () (explicit parenthesis)
-//
-// the last two are not usually on a precedence chart; I put them in
-// to point out that new has a higher precedence than '.', so you
-// can validy use
-// new Frame().show()
-//
-// Note that the above precedence levels map to the rules below...
-// Once you have a precedence chart, writing the appropriate rules as below
-// is usually very straightfoward
-
-
-
-// the mother of all expressions
-expression
- : assignmentExpression
- {#expression = #(#[EXPR,"EXPR"],#expression);}
- ;
-
-
-// This is a list of expressions.
-expressionList
- : expression (COMMA! expression)*
- {#expressionList = #(#[ELIST,"ELIST"], expressionList);}
- ;
-
-
-// assignment expression (level 13)
-assignmentExpression
- : conditionalExpression
- ( ( ASSIGN^
- | PLUS_ASSIGN^
- | MINUS_ASSIGN^
- | STAR_ASSIGN^
- | DIV_ASSIGN^
- | MOD_ASSIGN^
- | SR_ASSIGN^
- | BSR_ASSIGN^
- | SL_ASSIGN^
- | BAND_ASSIGN^
- | BXOR_ASSIGN^
- | BOR_ASSIGN^
- )
- assignmentExpression
- )?
- ;
-
-
-// conditional test (level 12)
-conditionalExpression
- : logicalOrExpression
- ( QUESTION^ assignmentExpression COLON! conditionalExpression )?
- ;
-
-
-// logical or (||) (level 11)
-logicalOrExpression
- : logicalAndExpression (LOR^ logicalAndExpression)*
- ;
-
-
-// logical and (&&) (level 10)
-logicalAndExpression
- : inclusiveOrExpression (LAND^ inclusiveOrExpression)*
- ;
-
-
-// bitwise or non-short-circuiting or (|) (level 9)
-inclusiveOrExpression
- : exclusiveOrExpression (BOR^ exclusiveOrExpression)*
- ;
-
-
-// exclusive or (^) (level 8)
-exclusiveOrExpression
- : andExpression (BXOR^ andExpression)*
- ;
-
-
-// bitwise or non-short-circuiting and (&) (level 7)
-andExpression
- : equalityExpression (BAND^ equalityExpression)*
- ;
-
-
-// equality/inequality (==/!=) (level 6)
-equalityExpression
- : relationalExpression ((NOT_EQUAL^ | EQUAL^) relationalExpression)*
- ;
-
-
-// boolean relational expressions (level 5)
-relationalExpression
- : shiftExpression
- ( ( ( LT^
- | GT^
- | LE^
- | GE^
- )
- shiftExpression
- )*
- | "instanceof"^ typeSpec[true]
- )
- ;
-
-
-// bit shift expressions (level 4)
-shiftExpression
- : additiveExpression ((SL^ | SR^ | BSR^) additiveExpression)*
- ;
-
-
-// binary addition/subtraction (level 3)
-additiveExpression
- : multiplicativeExpression ((PLUS^ | MINUS^) multiplicativeExpression)*
- ;
-
-
-// multiplication/division/modulo (level 2)
-multiplicativeExpression
- : unaryExpression ((STAR^ | DIV^ | MOD^ ) unaryExpression)*
- ;
-
-unaryExpression
- : INC^ unaryExpression
- | DEC^ unaryExpression
- | MINUS^ {#MINUS.setType(UNARY_MINUS);} unaryExpression
- | PLUS^ {#PLUS.setType(UNARY_PLUS);} unaryExpression
- | unaryExpressionNotPlusMinus
- ;
-
-unaryExpressionNotPlusMinus
- : BNOT^ unaryExpression
- | LNOT^ unaryExpression
-
- | ( // subrule allows option to shut off warnings
- options {
- // "(int" ambig with postfixExpr due to lack of sequence
- // info in linear approximate LL(k). It's ok. Shut up.
- generateAmbigWarnings=false;
- }
- : // If typecast is built in type, must be numeric operand
- // Also, no reason to backtrack if type keyword like int, float...
- lpb:LPAREN^ {#lpb.setType(TYPECAST);} builtInTypeSpec[true] RPAREN!
- unaryExpression
-
- // Have to backtrack to see if operator follows. If no operator
- // follows, it's a typecast. No semantic checking needed to parse.
- // if it _looks_ like a cast, it _is_ a cast; else it's a "(expr)"
- | (LPAREN classTypeSpec[true] RPAREN unaryExpressionNotPlusMinus)=>
- lp:LPAREN^ {#lp.setType(TYPECAST);} classTypeSpec[true] RPAREN!
- unaryExpressionNotPlusMinus
-
- | postfixExpression
- )
- ;
-
-// qualified names, array expressions, method invocation, post inc/dec
-postfixExpression
- : primaryExpression // start with a primary
-
- ( // qualified id (id.id.id.id...) -- build the name
- DOT^ ( IDENT
- | "this"
- | "class"
- | newExpression
- | "super" LPAREN ( expressionList )? RPAREN
- )
- // the above line needs a semantic check to make sure "class"
- // is the _last_ qualifier.
-
- // allow ClassName[].class
- | ( lbc:LBRACK^ {#lbc.setType(ARRAY_DECLARATOR);} RBRACK! )+
- DOT^ "class"
-
- // an array indexing operation
- | lb:LBRACK^ {#lb.setType(INDEX_OP);} expression RBRACK!
-
- // method invocation
- // The next line is not strictly proper; it allows x(3)(4) or
- // x[2](4) which are not valid in Java. If this grammar were used
- // to validate a Java program a semantic check would be needed, or
- // this rule would get really ugly...
- | lp:LPAREN^ {#lp.setType(METHOD_CALL);}
- argList
- RPAREN!
- )*
-
- // possibly add on a post-increment or post-decrement.
- // allows INC/DEC on too much, but semantics can check
- ( in:INC^ {#in.setType(POST_INC);}
- | de:DEC^ {#de.setType(POST_DEC);}
- | // nothing
- )
-
- // look for int.class and int[].class
- | builtInType
- ( lbt:LBRACK^ {#lbt.setType(ARRAY_DECLARATOR);} RBRACK! )*
- DOT^ "class"
- ;
-
-// the basic element of an expression
-primaryExpression
- : IDENT
- | newExpression
- | constant
- | "super"
- | "true"
- | "false"
- | "this"
- | "null"
- | LPAREN! assignmentExpression RPAREN!
- ;
-
-/** object instantiation.
- * Trees are built as illustrated by the following input/tree pairs:
- *
- * new T()
- *
- * new
- * |
- * T -- ELIST
- * |
- * arg1 -- arg2 -- .. -- argn
- *
- * new int[]
- *
- * new
- * |
- * int -- ARRAY_DECLARATOR
- *
- * new int[] {1,2}
- *
- * new
- * |
- * int -- ARRAY_DECLARATOR -- ARRAY_INIT
- * |
- * EXPR -- EXPR
- * | |
- * 1 2
- *
- * new int[3]
- * new
- * |
- * int -- ARRAY_DECLARATOR
- * |
- * EXPR
- * |
- * 3
- *
- * new int[1][2]
- *
- * new
- * |
- * int -- ARRAY_DECLARATOR
- * |
- * ARRAY_DECLARATOR -- EXPR
- * | |
- * EXPR 1
- * |
- * 2
- *
- */
-newExpression
- : "new"^ type
- ( LPAREN! argList RPAREN! (classBlock)?
-
- //java 1.1
- // Note: This will allow bad constructs like
- // new int[4][][3] {exp,exp}.
- // There needs to be a semantic check here...
- // to make sure:
- // a) [ expr ] and [ ] are not mixed
- // b) [ expr ] and an init are not used together
-
- | newArrayDeclarator (arrayInitializer)?
- )
- ;
-
-argList
- : ( expressionList
- | /*nothing*/
- {#argList = #[ELIST,"ELIST"];}
- )
- ;
-
-newArrayDeclarator
- : (
- // CONFLICT:
- // newExpression is a primaryExpression which can be
- // followed by an array index reference. This is ok,
- // as the generated code will stay in this loop as
- // long as it sees an LBRACK (proper behavior)
- options {
- warnWhenFollowAmbig = false;
- }
- :
- lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);}
- (expression)?
- RBRACK!
- )+
- ;
-
-constant
- : NUM_INT
- | CHAR_LITERAL
- | STRING_LITERAL
- | NUM_FLOAT
- ;
-
-
-//----------------------------------------------------------------------------
-// The Java scanner
-//----------------------------------------------------------------------------
-class JavaLexer extends Lexer;
-
-options {
- exportVocab=Java; // call the vocabulary "Java"
- testLiterals=false; // don't automatically test for literals
- k=4; // four characters of lookahead
-}
-
-
-
-// OPERATORS
-QUESTION : '?' ;
-LPAREN : '(' ;
-RPAREN : ')' ;
-LBRACK : '[' ;
-RBRACK : ']' ;
-LCURLY : '{' ;
-RCURLY : '}' ;
-COLON : ':' ;
-COMMA : ',' ;
-//DOT : '.' ;
-ASSIGN : '=' ;
-EQUAL : "==" ;
-LNOT : '!' ;
-BNOT : '~' ;
-NOT_EQUAL : "!=" ;
-DIV : '/' ;
-DIV_ASSIGN : "/=" ;
-PLUS : '+' ;
-PLUS_ASSIGN : "+=" ;
-INC : "++" ;
-MINUS : '-' ;
-MINUS_ASSIGN : "-=" ;
-DEC : "--" ;
-STAR : '*' ;
-STAR_ASSIGN : "*=" ;
-MOD : '%' ;
-MOD_ASSIGN : "%=" ;
-SR : ">>" ;
-SR_ASSIGN : ">>=" ;
-BSR : ">>>" ;
-BSR_ASSIGN : ">>>=" ;
-GE : ">=" ;
-GT : ">" ;
-SL : "<<" ;
-SL_ASSIGN : "<<=" ;
-LE : "<=" ;
-LT : '<' ;
-BXOR : '^' ;
-BXOR_ASSIGN : "^=" ;
-BOR : '|' ;
-BOR_ASSIGN : "|=" ;
-LOR : "||" ;
-BAND : '&' ;
-BAND_ASSIGN : "&=" ;
-LAND : "&&" ;
-SEMI : ';' ;
-
-
-// Whitespace -- ignored
-WS : ( ' '
- | '\t'
- | '\f'
- // handle newlines
- | ( "\r\n" // Evil DOS
- | '\r' // Macintosh
- | '\n' // Unix (the right way)
- )
- { newline(); }
- )
- { _ttype = Token.SKIP; }
- ;
-
-// Single-line comments
-SL_COMMENT
- : "//"
- (~('\n'|'\r'))* ('\n'|'\r'('\n')?)
- {$setType(Token.SKIP); newline();}
- ;
-
-// multiple-line comments
-ML_COMMENT
- : "/*"
- ( /* '\r' '\n' can be matched in one alternative or by matching
- '\r' in one iteration and '\n' in another. I am trying to
- handle any flavor of newline that comes in, but the language
- that allows both "\r\n" and "\r" and "\n" to all be valid
- newline is ambiguous. Consequently, the resulting grammar
- must be ambiguous. I'm shutting this warning off.
- */
- options {
- generateAmbigWarnings=false;
- }
- :
- { LA(2)!='/' }? '*'
- | '\r' '\n' {newline();}
- | '\r' {newline();}
- | '\n' {newline();}
- | ~('*'|'\n'|'\r')
- )*
- "*/"
- {$setType(Token.SKIP);}
- ;
-
-
-// character literals
-CHAR_LITERAL
- : '\'' ( ESC | ~'\'' ) '\''
- ;
-
-// string literals
-STRING_LITERAL
- : '"' (ESC|~('"'|'\\'))* '"'
- ;
-
-
-// escape sequence -- note that this is protected; it can only be called
-// from another lexer rule -- it will not ever directly return a token to
-// the parser
-// There are various ambiguities hushed in this rule. The optional
-// '0'...'9' digit matches should be matched here rather than letting
-// them go back to STRING_LITERAL to be matched. ANTLR does the
-// right thing by matching immediately; hence, it's ok to shut off
-// the FOLLOW ambig warnings.
-protected
-ESC
- : '\\'
- ( 'n'
- | 'r'
- | 't'
- | 'b'
- | 'f'
- | '"'
- | '\''
- | '\\'
- | ('u')+ HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
- | ('0'..'3')
- (
- options {
- warnWhenFollowAmbig = false;
- }
- : ('0'..'7')
- (
- options {
- warnWhenFollowAmbig = false;
- }
- : '0'..'7'
- )?
- )?
- | ('4'..'7')
- (
- options {
- warnWhenFollowAmbig = false;
- }
- : ('0'..'9')
- )?
- )
- ;
-
-
-// hexadecimal digit (again, note it's protected!)
-protected
-HEX_DIGIT
- : ('0'..'9'|'A'..'F'|'a'..'f')
- ;
-
-
-// a dummy rule to force vocabulary to be all characters (except special
-// ones that ANTLR uses internally (0 to 2)
-protected
-VOCAB
- : '\3'..'\377'
- ;
-
-
-// an identifier. Note that testLiterals is set to true! This means
-// that after we match the rule, we look in the literals table to see
-// if it's a literal or really an identifer
-IDENT
- options {testLiterals=true;}
- : ('a'..'z'|'A'..'Z'|'_'|'$') ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'$')*
- ;
-
-
-// a numeric literal
-NUM_INT
- {boolean isDecimal=false;}
- : '.' {_ttype = DOT;}
- (('0'..'9')+ (EXPONENT)? (FLOAT_SUFFIX)? { _ttype = NUM_FLOAT; })?
- | ( '0' {isDecimal = true;} // special case for just '0'
- ( ('x'|'X')
- ( // hex
- // the 'e'|'E' and float suffix stuff look
- // like hex digits, hence the (...)+ doesn't
- // know when to stop: ambig. ANTLR resolves
- // it correctly by matching immediately. It
- // is therefor ok to hush warning.
- options {
- warnWhenFollowAmbig=false;
- }
- : HEX_DIGIT
- )+
- | ('0'..'7')+ // octal
- )?
- | ('1'..'9') ('0'..'9')* {isDecimal=true;} // non-zero decimal
- )
- ( ('l'|'L')
-
- // only check to see if it's a float if looks like decimal so far
- | {isDecimal}?
- ( '.' ('0'..'9')* (EXPONENT)? (FLOAT_SUFFIX)?
- | EXPONENT (FLOAT_SUFFIX)?
- | FLOAT_SUFFIX
- )
- { _ttype = NUM_FLOAT; }
- )?
- ;
-
-
-// a couple protected methods to assist in matching floating point numbers
-protected
-EXPONENT
- : ('e'|'E') ('+'|'-')? ('0'..'9')+
- ;
-
-
-protected
-FLOAT_SUFFIX
- : 'f'|'F'|'d'|'D'
- ;
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.tree.g b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.tree.g
deleted file mode 100644
index f065c356..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/antlr/java.tree.g
+++ /dev/null
@@ -1,312 +0,0 @@
-/** Java 1.2 AST Recognizer Grammar
- *
- * Author:
- * Terence Parr parrt@jguru.com
- *
- * Version tracking now done with following ID:
- *
- * This grammar is in the PUBLIC DOMAIN
- *
- * BUGS
- */
-class JavaTreeParser extends TreeParser;
-
-options {
- importVocab = Java;
-}
-
-compilationUnit
- : (packageDefinition)?
- (importDefinition)*
- (typeDefinition)*
- ;
-
-packageDefinition
- : #( PACKAGE_DEF identifier )
- ;
-
-importDefinition
- : #( IMPORT identifierStar )
- ;
-
-typeDefinition
- : #(CLASS_DEF modifiers IDENT extendsClause implementsClause objBlock )
- | #(INTERFACE_DEF modifiers IDENT extendsClause interfaceBlock )
- ;
-
-typeSpec
- : #(TYPE typeSpecArray)
- ;
-
-typeSpecArray
- : #( ARRAY_DECLARATOR typeSpecArray )
- | type
- ;
-
-type: identifier
- | builtInType
- ;
-
-builtInType
- : "void"
- | "boolean"
- | "byte"
- | "char"
- | "short"
- | "int"
- | "float"
- | "long"
- | "double"
- ;
-
-modifiers
- : #( MODIFIERS (modifier)* )
- ;
-
-modifier
- : "private"
- | "public"
- | "protected"
- | "static"
- | "transient"
- | "final"
- | "abstract"
- | "native"
- | "threadsafe"
- | "synchronized"
- | "const"
- | "volatile"
- ;
-
-extendsClause
- : #(EXTENDS_CLAUSE (identifier)* )
- ;
-
-implementsClause
- : #(IMPLEMENTS_CLAUSE (identifier)* )
- ;
-
-
-interfaceBlock
- : #( OBJBLOCK
- ( methodDecl
- | variableDef
- )*
- )
- ;
-
-objBlock
- : #( OBJBLOCK
- ( ctorDef
- | methodDef
- | variableDef
- | typeDefinition
- | #(STATIC_INIT slist)
- | #(INSTANCE_INIT slist)
- )*
- )
- ;
-
-ctorDef
- : #(CTOR_DEF modifiers methodHead slist)
- ;
-
-methodDecl
- : #(METHOD_DEF modifiers typeSpec methodHead)
- ;
-
-methodDef
- : #(METHOD_DEF modifiers typeSpec methodHead (slist)?)
- ;
-
-variableDef
- : #(VARIABLE_DEF modifiers typeSpec variableDeclarator varInitializer)
- ;
-
-parameterDef
- : #(PARAMETER_DEF modifiers typeSpec IDENT )
- ;
-
-objectinitializer
- : #(INSTANCE_INIT slist)
- ;
-
-variableDeclarator
- : IDENT
- | LBRACK variableDeclarator
- ;
-
-varInitializer
- : #(ASSIGN initializer)
- |
- ;
-
-initializer
- : expression
- | arrayInitializer
- ;
-
-arrayInitializer
- : #(ARRAY_INIT (initializer)*)
- ;
-
-methodHead
- : IDENT #( PARAMETERS (parameterDef)* ) (throwsClause)?
- ;
-
-throwsClause
- : #( "throws" (identifier)* )
- ;
-
-identifier
- : IDENT
- | #( DOT identifier IDENT )
- ;
-
-identifierStar
- : IDENT
- | #( DOT identifier (STAR|IDENT) )
- ;
-
-slist
- : #( SLIST (stat)* )
- ;
-
-stat: typeDefinition
- | variableDef
- | expression
- | #(LABELED_STAT IDENT stat)
- | #("if" expression stat (stat)? )
- | #( "for"
- #(FOR_INIT (variableDef | elist)?)
- #(FOR_CONDITION (expression)?)
- #(FOR_ITERATOR (elist)?)
- stat
- )
- | #("while" expression stat)
- | #("do" stat expression)
- | #("break" (IDENT)? )
- | #("continue" (IDENT)? )
- | #("return" (expression)? )
- | #("switch" expression (caseGroup)*)
- | #("throw" expression)
- | #("synchronized" expression stat)
- | tryBlock
- | slist // nested SLIST
- | EMPTY_STAT
- ;
-
-caseGroup
- : #(CASE_GROUP (#("case" expression) | "default")+ slist)
- ;
-
-tryBlock
- : #( "try" slist (handler)* (#("finally" slist))? )
- ;
-
-handler
- : #( "catch" parameterDef slist )
- ;
-
-elist
- : #( ELIST (expression)* )
- ;
-
-expression
- : #(EXPR expr)
- ;
-
-expr: #(QUESTION expr expr expr) // trinary operator
- | #(ASSIGN expr expr) // binary operators...
- | #(PLUS_ASSIGN expr expr)
- | #(MINUS_ASSIGN expr expr)
- | #(STAR_ASSIGN expr expr)
- | #(DIV_ASSIGN expr expr)
- | #(MOD_ASSIGN expr expr)
- | #(SR_ASSIGN expr expr)
- | #(BSR_ASSIGN expr expr)
- | #(SL_ASSIGN expr expr)
- | #(BAND_ASSIGN expr expr)
- | #(BXOR_ASSIGN expr expr)
- | #(BOR_ASSIGN expr expr)
- | #(LOR expr expr)
- | #(LAND expr expr)
- | #(BOR expr expr)
- | #(BXOR expr expr)
- | #(BAND expr expr)
- | #(NOT_EQUAL expr expr)
- | #(EQUAL expr expr)
- | #(LT expr expr)
- | #(GT expr expr)
- | #(LE expr expr)
- | #(GE expr expr)
- | #(SL expr expr)
- | #(SR expr expr)
- | #(BSR expr expr)
- | #(PLUS expr expr)
- | #(MINUS expr expr)
- | #(DIV expr expr)
- | #(MOD expr expr)
- | #(STAR expr expr)
- | #(INC expr)
- | #(DEC expr)
- | #(POST_INC expr)
- | #(POST_DEC expr)
- | #(BNOT expr)
- | #(LNOT expr)
- | #("instanceof" expr expr)
- | #(UNARY_MINUS expr)
- | #(UNARY_PLUS expr)
- | primaryExpression
- ;
-
-primaryExpression
- : IDENT
- | #( DOT
- ( expr
- ( IDENT
- | arrayIndex
- | "this"
- | "class"
- | #( "new" IDENT elist )
- )
- | #(ARRAY_DECLARATOR type)
- | builtInType ("class")?
- )
- )
- | arrayIndex
- | #(METHOD_CALL primaryExpression elist)
- | #(TYPECAST typeSpec expr)
- | newExpression
- | constant
- | "super"
- | "true"
- | "false"
- | "this"
- | "null"
- | typeSpec // type name used with instanceof
- ;
-
-arrayIndex
- : #(INDEX_OP primaryExpression expression)
- ;
-
-constant
- : NUM_INT
- | CHAR_LITERAL
- | STRING_LITERAL
- | NUM_FLOAT
- ;
-
-newExpression
- : #( "new" type
- ( newArrayDeclarator (arrayInitializer)?
- | elist
- )
- )
-
- ;
-
-newArrayDeclarator
- : #( ARRAY_DECLARATOR (newArrayDeclarator)? (expression)? )
- ;
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/depend.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/depend.xml
deleted file mode 100644
index 8465bb02..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/depend.xml
+++ /dev/null
@@ -1,196 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="depend" basedir="." default="help">
- <import file="../../../buildfiletest-base.xml"/>
-
- <property name="tempsrc.dir" value="${output}/tempsrc.dir"/>
- <property name="cache.dir" value="${output}/tempsrc.dir"/>
- <property name="classes.dir" value="${output}/classes"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
-
- </target>
-
- <property name="src1.dir" value="src1"/>
- <property name="src2.dir" value="src2"/>
- <property name="src3.dir" value="src3"/>
- <property name="src4.dir" value="src4"/>
- <property name="src5.dir" value="src5"/>
-
- <target name="help">
- <echo>This buildfile is used as part of Ant's test suite.</echo>
- </target>
-
- <target name="src1setup" depends="setUp">
- <copy todir="${tempsrc.dir}">
- <fileset dir="${src1.dir}"/>
- </copy>
- </target>
-
- <target name="src2setup" depends="setUp">
- <copy todir="${tempsrc.dir}">
- <fileset dir="${src2.dir}"/>
- </copy>
- </target>
-
- <target name="src3setup" depends="setUp">
- <copy todir="${tempsrc.dir}">
- <fileset dir="${src3.dir}"/>
- </copy>
- </target>
-
- <target name="src4setup" depends="setUp">
- <copy todir="${tempsrc.dir}">
- <fileset dir="${src4.dir}"/>
- </copy>
- </target>
-
- <target name="src5setup" depends="setUp">
- <copy todir="${tempsrc.dir}">
- <fileset dir="${src5.dir}"/>
- </copy>
- </target>
-
- <target name="compile">
- <mkdir dir="${classes.dir}"/>
- <javac srcdir="${tempsrc.dir}" destdir="${classes.dir}"/>
- </target>
-
- <target name="testdirect">
- <delete file="${tempsrc.dir}/C.java"/>
- <copy file="${src1.dir}/C.java" tofile="${tempsrc.dir}/C.java"/>
- <depend srcdir="${tempsrc.dir}" destdir="${classes.dir}"/>
- <fileset id="result" dir="${classes.dir}"/>
- </target>
-
- <target name="testclosure">
- <delete file="${tempsrc.dir}/C.java"/>
- <copy file="${src1.dir}/C.java" tofile="${tempsrc.dir}/C.java"/>
- <depend srcdir="${tempsrc.dir}" destdir="${classes.dir}" closure="yes"/>
- <fileset id="result" dir="${classes.dir}"/>
- </target>
-
- <target name="testbasicset" depends="src1setup, compile">
- <classfileset id="result" dir="${classes.dir}" rootclass="A"/>
- </target>
-
- <target name="testsmallset" depends="src1setup, compile">
- <classfileset id="result" dir="${classes.dir}" rootclass="B"/>
- </target>
-
- <target name="testresourcecollection" depends="testsmallset">
- <fail>
- <condition>
- <not>
- <and>
- <resourcecount count="2" refid="result" />
- <resourcecount count="1">
- <intersect>
- <resources refid="result" />
- <file file="${classes.dir}/B.class" />
- </intersect>
- </resourcecount>
- <resourcecount count="1">
- <intersect>
- <resources refid="result" />
- <file file="${classes.dir}/C.class" />
- </intersect>
- </resourcecount>
- </and>
- </not>
- </condition>
- </fail>
- </target>
-
- <target name="testcomboset" depends="src1setup, compile">
- <classfileset id="result" dir="${classes.dir}" rootclass="B">
- <include name="**/C.class"/>
- </classfileset>
- </target>
-
- <target name="testbyreference" depends="src1setup, compile">
- <classfileset id="classSet" dir="${classes.dir}" rootclass="A">
- <include name="**/C.class"/>
- </classfileset>
- <jar destfile="${tempsrc.dir}/test.jar">
- <fileset refid="classSet"/>
- </jar>
- </target>
-
- <target name="testmethodparam" depends="src1setup, compile">
- <classfileset id="result" dir="${classes.dir}" rootclass="E"/>
- </target>
-
- <target name="testinner">
- <delete file="${tempsrc.dir}/B.java"/>
- <copy file="${src2.dir}/B.java" tofile="${tempsrc.dir}/B.java"/>
- <depend srcdir="${tempsrc.dir}" destdir="${classes.dir}" closure="yes"/>
- <fileset id="result" dir="${classes.dir}"/>
- </target>
-
- <target name="testinnerinner">
- <delete file="${tempsrc.dir}/B.java"/>
- <copy file="${src3.dir}/B.java" tofile="${tempsrc.dir}/B.java"/>
- <depend srcdir="${tempsrc.dir}" destdir="${classes.dir}" closure="yes"/>
- <fileset id="result" dir="${classes.dir}"/>
- </target>
-
- <target name="testmethodparaminner" depends="src4setup, compile">
- <classfileset id="result" dir="${classes.dir}" rootclass="test.MethodParam"/>
- </target>
-
- <target name="testnosource" depends="src1setup, compile">
- <depend destdir="${classes.dir}" closure="yes"/>
- </target>
-
- <target name="testemptysource" depends="src1setup, compile">
- <depend srcdir="" destdir="${classes.dir}" closure="yes"/>
- </target>
-
- <target name="testinnerclosure" depends="src4setup">
- <mkdir dir="${classes.dir}"/>
- <path id="path.compile">
- <pathelement location="${classes.dir}"/>
- </path>
-
- <javac srcdir="${tempsrc.dir}" destdir="${classes.dir}"
- classpathref="path.compile" fork="false" />
-
- <depend srcdir="${tempsrc.dir}" destdir="${classes.dir}"
- closure="yes" dump="yes"
- classpathref="path.compile"/>
-
- <fileset id="result" dir="${classes.dir}"/>
- </target>
-
- <target name="testcache" depends="src1setup, compile">
- <depend cache="${cache.dir}" srcdir="${tempsrc.dir}"
- destdir="${classes.dir}" closure="yes"/>
- <depend cache="${cache.dir}" srcdir="${tempsrc.dir}"
- destdir="${classes.dir}" closure="yes"/>
- </target>
-
- <target name="testnonpublic">
- <delete file="${tempsrc.dir}/B.java"/>
- <copy file="${src2.dir}/B.java" tofile="${tempsrc.dir}/B.java"/>
- <depend srcdir="${tempsrc.dir}" destdir="${classes.dir}" closure="yes"/>
- <fileset id="result" dir="${classes.dir}"/>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/A.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/A.java
deleted file mode 100644
index dc6df231..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/A.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class A extends B {
- private D d = new D();
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/B.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/B.java
deleted file mode 100644
index 4be51f78..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/B.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class B extends C {
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/C.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/C.java
deleted file mode 100644
index d2bfca9d..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/C.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class C {
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/D.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/D.java
deleted file mode 100644
index 127de573..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/D.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class D {
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/E.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/E.java
deleted file mode 100644
index 0efd6134..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src1/E.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class E {
- E() {
- System.out.println(A.class);
- }
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/A.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/A.java
deleted file mode 100644
index 02b35be7..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/A.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class A {
- static private class Inner extends B {
- }
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/B.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/B.java
deleted file mode 100644
index bc7b7d24..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src2/B.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class B {
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/A.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/A.java
deleted file mode 100644
index 1d973b15..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/A.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class A {
- static private class Inner {
- static private class Inner2 extends B {
- }
- }
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/B.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/B.java
deleted file mode 100644
index bc7b7d24..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src3/B.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class B {
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/ContainsOnlyInner.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/ContainsOnlyInner.java
deleted file mode 100644
index d00254b9..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/ContainsOnlyInner.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-package test;
-
-public class ContainsOnlyInner {
- void method1() {
- System.out.println(Outer.Inner.class);
- }
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/MethodParam.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/MethodParam.java
deleted file mode 100644
index 276f0163..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/MethodParam.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-package test;
-
-public class MethodParam {
- void method1() {
- System.out.print(ContainsOnlyInner.class);
- }
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/Outer.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/Outer.java
deleted file mode 100644
index 0b709002..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src4/test/Outer.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-package test;
-
-public class Outer {
- static class Inner {
- }
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/A.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/A.java
deleted file mode 100644
index 19521a14..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/A.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class A {
- APrivate dependency = new APrivate();
-}
-
-class APrivate extends B {
-}
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/B.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/B.java
deleted file mode 100644
index bc7b7d24..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/depend/src5/B.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-public class B {
-}
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.properties b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.properties
deleted file mode 100644
index 4c970e7e..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-test.infile=true \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.xml
deleted file mode 100644
index 7b1b8bb8..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/echoproperties.xml
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="test" default="def" basedir=".">
-
- <target name="def">
- </target>
-
- <target name="setup">
- <property name="a.set" value="true" />
- <property name="b.set" value="false" />
- </target>
-
- <target name="testEchoToLog" depends="setup">
- <echoproperties />
- </target>
-
- <target name="testEchoWithEmptyPrefixToLog" depends="setup">
- <echoproperties prefix=""/>
- </target>
-
- <target name="testEchoToLogXml" depends="setup">
- <echoproperties format="xml" />
- </target>
-
- <target name="testReadAndEchoToLog" depends="setup">
- <echoproperties srcfile="echoproperties.properties" />
- </target>
-
- <target name="testReadBadFile" depends="setup">
- <echoproperties srcfile="." />
- </target>
-
- <target name="testReadBadFileFail" depends="setup">
- <echoproperties srcfile="." failonerror="yes" />
- </target>
-
- <target name="testReadBadFileNoFail" depends="setup">
- <echoproperties srcfile="." failonerror="no" />
- </target>
-
- <target name="testEchoToBadFile" depends="setup">
- <echoproperties destfile="." />
- </target>
-
- <target name="testEchoToBadFileFail" depends="setup">
- <echoproperties destfile="." failonerror="yes" />
- </target>
-
- <target name="testEchoToBadFileNoFail" depends="setup">
- <echoproperties destfile="." failonerror="no" />
- </target>
-
- <target name="testEchoToGoodFile" depends="setup">
- <echoproperties destfile="test.properties" />
- </target>
-
- <target name="testEchoToGoodFileXml" depends="setup">
- <echoproperties destfile="test.xml" format="xml" />
- </target>
-
- <target name="testEchoToGoodFileFail" depends="setup">
- <echoproperties destfile="test.properties" failonerror="yes" />
- </target>
-
- <target name="testEchoToGoodFileNoFail" depends="setup">
- <echoproperties destfile="test.properties" failonerror="no" />
- </target>
-
- <target name="testEchoPrefix" depends="setup">
- <echoproperties destfile="test-prefix.properties" prefix="a." />
- </target>
-
- <target name="testEchoPrefixAsPropertyset" depends="setup">
- <echoproperties destfile="test-prefix.properties">
- <propertyset>
- <propertyref prefix="a."/>
- </propertyset>
- </echoproperties>
- </target>
-
- <target name="testEchoPrefixAsNegatedPropertyset" depends="setup">
- <echoproperties destfile="test-prefix.properties">
- <propertyset negate="true">
- <propertyref prefix="b."/>
- </propertyset>
- </echoproperties>
- </target>
-
- <target name="testEchoPrefixAsDoublyNegatedPropertyset" depends="setup">
- <echoproperties destfile="test-prefix.properties">
- <propertyset negate="true">
- <propertyset negate="true">
- <propertyref prefix="a."/>
- </propertyset>
- </propertyset>
- </echoproperties>
- </target>
-
- <target name="testWithPrefixAndRegex" depends="setup">
- <echoproperties prefix="ant." regex=".*ant.*"/>
- </target>
-
- <target name="testWithEmptyPrefixAndRegex" depends="setup">
- <echoproperties prefix="" regex=""/>
- </target>
-
- <target name="testWithRegex" depends="setup">
- <echoproperties regex=".*ant.*"/>
- </target>
-
- <target name="cleanup">
- <delete file="test.properties" failonerror="no" />
- <delete file="test-prefix.properties" failonerror="no" />
- <delete file="test.xml" failonerror="no" />
- </target>
-
-</project>
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/expected/de/template.txt b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/expected/de/template.txt
deleted file mode 100644
index 9a7af4e2..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/expected/de/template.txt
+++ /dev/null
@@ -1 +0,0 @@
-Diese ist eine Demo Datei für die translate_Aufgabe @missing_token@.
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/resources_ger_DE.properties b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/resources_ger_DE.properties
deleted file mode 100644
index 7efe9b0a..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/resources_ger_DE.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-This=Diese
-is=ist
-a=eine
-demo=Demo
-file=Datei
-#note for people understanding german
-# \u00fc = u umlaut
-for=für
-the=die
-_task=_Aufgabe
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/template.txt b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/template.txt
deleted file mode 100644
index cda413bd..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/input/template.txt
+++ /dev/null
@@ -1 +0,0 @@
-@This@ @is@ @a@ @demo@ @file@ @for@ @the@ translate@_task@ @missing_token@.
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/translate.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/translate.xml
deleted file mode 100644
index e6debd50..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/i18n/translate/translate.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="translate-test" default="test1" basedir=".">
- <property name="input.dir" value="input"/>
- <property name="expected.dir" value="expected"/>
- <import file="../../../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}/de"/>
- </target>
-
- <target name="test1" depends="setUp">
- <translate toDir="${output}/de"
- starttoken="@"
- endtoken="@"
- bundle="${input.dir}/resources"
- bundlecountry="DE"
- bundlelanguage="ger"
- forceoverwrite="yes"
- srcencoding="ISO8859_1"
- destencoding="ISO8859_1"
- bundleencoding="Cp1252">
- <fileset dir="${input.dir}">
- <include name="template.txt"/>
- </fileset>
- </translate>
- </target>
-</project>
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/image.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/image.xml
deleted file mode 100644
index 2fefa04c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/image.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="image-test" default="main" basedir=".">
-
- <import file="../../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}"/>
- <property name="src.dir" location="${basedir}/src"/>
- </target>
-
- <target name="main" depends="testSimpleScale">
- </target>
-
- <!-- this should produce a single file in the dest dir -->
- <target name="testSimpleScale" depends="setUp">
- <image includes="*.jpg" srcdir="${src.dir}" destdir="${output}" overwrite="no" failonerror="no">
- <scale width="300" proportions="width"/>
- </image>
- </target>
-
- <!-- this should put some text in the log -->
- <target name="testEchoToLog" depends="setUp">
- <image includes="*.jpg" srcdir="${src.dir}" destdir="${output}" overwrite="no" failonerror="no">
- <scale width="300" proportions="width"/>
- </image>
- </target>
-
- <!-- this should produce a single file in the dest dir -->
- <target name="testFailOnError" depends="setUp">
- <image includes="*.jpg" srcdir="${src.dir}" destdir="${output}" overwrite="no" failonerror="yes">
- <scale width="300" proportions="width"/>
- </image>
- </target>
-
- <!-- this should produce a single file in the dest dir, overwriting any existing file -->
- <target name="testOverwriteTrue" depends="setUp">
- <image includes="*.jpg" srcdir="${src.dir}" destdir="${output}" overwrite="true" failonerror="no">
- <scale width="300" proportions="width"/>
- </image>
- </target>
-
- <!-- this should not overwrite the existing file -->
- <target name="testOverwriteFalse" depends="setUp">
- <image includes="*.jpg" srcdir="${src.dir}" destdir="${output}" overwrite="false" failonerror="no">
- <scale width="300" proportions="width"/>
- </image>
- </target>
-
- <target name="testSimpleScaleWithMapper" depends="setUp">
- <image includes="*.jpg" srcdir="${src.dir}"
- destdir="${output}" overwrite="no" failonerror="no">
- <scale width="300" proportions="width"/>
- <globmapper from="*" to="scaled-*"/>
- </image>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/badimage.jpg b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/badimage.jpg
deleted file mode 100644
index 43a786e1..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/badimage.jpg
+++ /dev/null
Binary files differ
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/largeimage.jpg b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/largeimage.jpg
deleted file mode 100644
index 91040552..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/image/src/largeimage.jpg
+++ /dev/null
Binary files differ
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/build.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/build.xml
deleted file mode 100644
index ea70b9e5..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/build.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project default="no">
-
- <import file="../../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}"/>
- </target>
-
- <property name="in" location="input"/>
-
- <target name="no">
- <fail>For tests only</fail>
- </target>
-
- <target name="compile" depends="setUp">
- <javac srcdir="${in}" destdir="${output}"/>
- </target>
-
- <target name="simple-compile" depends="compile">
- <javah destdir="${output}">
- <class name="org.example.Foo"/>
- <classpath>
- <pathelement location="${output}"/>
- </classpath>
- </javah>
- </target>
-
- <target name="test-fileset" depends="compile">
- <javah destdir="${output}">
- <fileset dir="${output}">
- <include name="**/*.class"/>
- </fileset>
- <classpath>
- <pathelement location="${output}"/>
- </classpath>
- </javah>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/input/org/example/Foo.java b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/input/org/example/Foo.java
deleted file mode 100644
index 59d03f70..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/javah/input/org/example/Foo.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.example;
-
-public class Foo {
-
- public Foo() {}
-
- public native String bar(Object baz);
-
-}
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jdepend/jdepend.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jdepend/jdepend.xml
deleted file mode 100644
index 8418226b..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jdepend/jdepend.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project>
- <property name="testclasses" location="../../../../../../build/testcases"/>
-
- <path id="all-test-classes.id">
- <pathelement location="../../../../build/testcases" />
- <pathelement path="${java.class.path}" />
- </path>
-
- <path id="example-classes.id">
- <pathelement location="${testclasses}/org/apache/tools/ant/util/facade" />
- </path>
-
- <path id="test-classes.id">
- <pathelement location="${testclasses}" />
- </path>
-
- <target name="simple">
- <jdepend>
- <classespath refid="example-classes.id"/>
- </jdepend>
- </target>
-
- <target name="xml">
- <jdepend format="xml">
- <classespath refid="example-classes.id"/>
- </jdepend>
- </target>
-
- <target name="fork">
- <jdepend fork="yes" includeruntime="yes">
- <classespath refid="example-classes.id"/>
- </jdepend>
- </target>
-
- <target name="fork-xml">
- <jdepend fork="yes" format="xml" includeruntime="yes">
- <classespath refid="example-classes.id"/>
- </jdepend>
- </target>
-
- <target name="fork-timeout">
- <jdepend fork="yes" timeout="10" includeruntime="yes">
- <classespath refid="test-classes.id"/>
- </jdepend>
- </target>
-
- <target name="fork-timeout-not">
- <jdepend fork="yes" timeout="100000" includeruntime="yes">
- <classespath refid="example-classes.id"/>
- </jdepend>
- </target>
-
-</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/1nvalid-classname.jsp b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/1nvalid-classname.jsp
deleted file mode 100644
index f5b42e2b..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/1nvalid-classname.jsp
+++ /dev/null
@@ -1,25 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<%@ page language="java" %>
-<html>
-<head/>
-<body>
-
-my name is <%= this.getClass().getName() %>
-
-</body>
-</html>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/WEB-INF/web.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/WEB-INF/web.xml
deleted file mode 100644
index 2ef199d0..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/WEB-INF/web.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
- "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
-<web-app/>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/default.jsp b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/default.jsp
deleted file mode 100644
index c7296b2c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/default.jsp
+++ /dev/null
@@ -1,25 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<%@ page language="java" %>
-<html>
-<head/>
-<body>
-
-It is now <%= System.currentTimeMillis() %>
-
-</body>
-</html>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/missing_tld.jsp b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/missing_tld.jsp
deleted file mode 100644
index b837fb1f..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/missing_tld.jsp
+++ /dev/null
@@ -1,32 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<%@ page language="java" %>
-<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
-<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
-<%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>
-<html:html locale="true">
-<head>
-<title>shouldnt compile</title>
-<html:base/>
-</head>
-<body>
-
-This page should not compile because refers to TLDs that arent around.
-
-</body>
-
-</html:html>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/simple.jsp b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/simple.jsp
deleted file mode 100644
index c7296b2c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/simple.jsp
+++ /dev/null
@@ -1,25 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<%@ page language="java" %>
-<html>
-<head/>
-<body>
-
-It is now <%= System.currentTimeMillis() %>
-
-</body>
-</html>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/uriroot.jsp b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/uriroot.jsp
deleted file mode 100644
index c7296b2c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/uriroot.jsp
+++ /dev/null
@@ -1,25 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<%@ page language="java" %>
-<html>
-<head/>
-<body>
-
-It is now <%= System.currentTimeMillis() %>
-
-</body>
-</html>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/xml.jsp b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/xml.jsp
deleted file mode 100644
index 7bb9e49c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jsp/xml.jsp
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- :mode=xml:indentSize=2 -->
-<!-- note the lack of a language setting here. crimson whined when ISO-8859-1 was set,
- that it thought it was loading a file of type ISO_8859_1 and
- so there was a mismatch, even though the mismatch is only
- between hyphen types -->
-<jsp:root
- xmlns:jsp="http://java.sun.com/JSP/Page"
- version="1.2"
- >
-<jsp:directive.page language="java" />
-<jsp:directive.page contentType="application/xml" />
-<timestamp>
-<jsp:expression>System.currentTimeMillis()</jsp:expression>
-</timestamp>
-</jsp:root>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jspc.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jspc.xml
deleted file mode 100644
index f1207908..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/jspc.xml
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="jspc-test" default="main" basedir=".">
-
- <import file="../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}"/>
- <property name="jsp.dir" location="jsp"/>
- <property name="jsp.output.dir" location="${output}"/>
- <property name="jsp.verbosity" value="3"/>
- <property name="jsp.compiler" value="jasper41"/>
- <mkdir dir="${jsp.output.dir}"/>
- </target>
-
- <target name="main" depends="testSimple">
- </target>
-
-
- <!-- this should fail -->
- <!-- it should not create an output file, but it does, which needs
- cleanup -->
- <target name="testNoTld" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- srcdir="${jsp.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <include
- name="missing_tld.jsp"/>
- </jspc>
- </target>
-
- <!-- this should compile to simple.java -->
- <!-- also, stick to the default compiler here to ensure it still works-->
- <target name="testSimple" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- srcdir="${jsp.dir}"
- verbose="${jsp.verbosity}">
- <include
- name="simple.jsp"/>
- </jspc>
- </target>
-
- <!-- this should compile to uriroot.java -->
- <target name="testUriroot" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- uriroot="${jsp.dir}"
- srcdir="${jsp.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <include
- name="uriroot.jsp"/>
- </jspc>
- </target>
-
- <!-- this should compile an xml format jsp page to xml.java -->
- <target name="testXml" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- uriroot="${jsp.dir}"
- srcdir="${jsp.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <include name="xml.jsp"/>
- </jspc>
- </target>
-
- <!-- this should compile default.jsp to mangled(%default).java -->
- <target name="testKeyword" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- srcdir="${jsp.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <include
- name="default.jsp"/>
- </jspc>
- </target>
-
- <!-- this should compile default.jsp to mangled(%default).java -->
- <target name="testInvalidClassname" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- srcdir="${jsp.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <include
- name="1nvalid-classname.jsp"/>
- </jspc>
- </target>
-
- <!-- non jsp pages should be ignored -->
- <target name="testNotAJspFile" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- srcdir="${jsp.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <include
- name="wrong_type.txt"/>
- </jspc>
- </target>
-
- <!-- test for webapp compilation -->
- <target name="testWebapp" depends="setUp">
- <jspc
- destdir="${jsp.output.dir}"
- compiler="${jsp.compiler}"
- verbose="${jsp.verbosity}">
- <webapp basedir="${jsp.dir}"/>
- </jspc>
- </target>
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit.xml
deleted file mode 100644
index cc66e20e..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit.xml
+++ /dev/null
@@ -1,361 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="junit-test" basedir="." default="outputTests">
- <import file="../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- </target>
-
- <property name="showoutput" value="false" />
- <path id="test">
- <pathelement path="${java.class.path}" />
- <pathelement location="../../../../../build/testcases" />
- </path>
-
- <target name="testForkedOutput">
- <junit fork="yes" haltonerror="true" haltonfailure="true"
- showoutput="${showoutput}">
- <test name="org.example.junit.Output" />
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="testNonForkedOutput">
- <junit fork="false" haltonerror="true" haltonfailure="true"
- showoutput="${showoutput}">
- <test name="org.example.junit.Output" />
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="testForkedThreadedOutput">
- <junit fork="yes" haltonerror="true" haltonfailure="true"
- showoutput="${showoutput}">
- <test name="org.example.junit.ThreadedOutput" />
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="testNonForkedThreadedOutput">
- <junit fork="false" haltonerror="true" haltonfailure="true"
- showoutput="${showoutput}">
- <test name="org.example.junit.ThreadedOutput" />
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="outputTests"
- depends="testForkedOutput,testNonForkedOutput,testForkedThreadedOutput,testNonForkedThreadedOutput" />
-
- <target name="crash">
- <junit fork="true" errorproperty="crashed">
- <test name="org.apache.tools.ant.taskdefs.optional.junit.VmCrash"/>
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="nocrash">
- <junit fork="true" errorproperty="crashed">
- <test name="org.apache.tools.ant.taskdefs.optional.junit.NoVmCrash"/>
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="timeout">
- <junit fork="true" errorproperty="timeout" timeout="1000">
- <test name="org.apache.tools.ant.taskdefs.optional.junit.Sleeper"/>
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="notimeout">
- <junit fork="true" errorproperty="timeout" timeout="15000">
- <test name="org.apache.tools.ant.taskdefs.optional.junit.Sleeper"/>
- <classpath refid="test" />
- </junit>
- </target>
-
- <target name="capture" depends="setUp">
- <property name="fork" value="false"/>
- <junit fork="${fork}">
- <test
- name="org.apache.tools.ant.taskdefs.optional.junit.Printer"
- todir="${output}"
- outfile="testlog"/>
- <formatter type="plain"/>
- <classpath refid="test"/>
- </junit>
- </target>
-
- <target name="captureToSummary">
- <property name="fork" value="true"/>
- <property name="enableEvents" value="false"/>
- <junit fork="${fork}" printSummary="withOutAndErr"
- enableTestListenerEvents="${enableEvents}">
- <test name="org.apache.tools.ant.taskdefs.optional.junit.Printer"/>
- <classpath refid="test"/>
- </junit>
- </target>
-
- <target name="testBatchTestForkOnceToDir" depends="setUp">
- <junit fork="true" forkmode="once">
- <formatter type="xml"/>
- <classpath refid="test"/>
- <batchtest todir="${output}">
- <fileset dir="../../../../tests/junit">
- <include
- name="org/apache/tools/ant/taskdefs/optional/junit/*Test.java"/>
- <!-- tests remove out-dir on tearDown -->
- <exclude name="**/JUnitTestListenerTest.java"/>
- <exclude name="**/JUnitTaskTest.java"/>
- <exclude name="**/JUnitReportTest.java"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <!-- Bugzilla Report 32973 -->
- <target name="testBatchTestForkOnceExtension">
- <mkdir dir="${output}"/>
- <junit fork="true" forkmode="once">
- <formatter type="xml" extension=".foo"/>
- <classpath refid="test"/>
- <batchtest todir="${output}">
- <fileset dir="../../../../tests/junit">
- <include
- name="org/apache/tools/ant/taskdefs/optional/junit/*Test.java"/>
- <!-- tests remove out-dir on tearDown -->
- <exclude name="**/JUnitTestListenerTest.java"/>
- <exclude name="**/JUnitTaskTest.java"/>
- <exclude name="**/JUnitReportTest.java"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="testBatchTestForkOnceCustomFormatter">
- <mkdir dir="${output}"/>
- <junit fork="true" forkmode="once">
- <formatter extension="foo"
- classname="org.apache.tools.ant.taskdefs.optional.junit.TestFormatter"/>
- <classpath refid="test"/>
- <batchtest todir="${output}">
- <fileset dir="../../../../tests/junit">
- <include
- name="org/apache/tools/ant/taskdefs/optional/junit/*Test.java"/>
- <!-- tests remove out-dir on tearDown -->
- <exclude name="**/JUnitTestListenerTest.java"/>
- <exclude name="**/JUnitTaskTest.java"/>
- <exclude name="**/JUnitReportTest.java"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="failureRecorder.prepare">
- <property name="tmp.dir" value="${output}"/>
- <mkdir dir="${tmp.dir}/org"/>
- <echo file="${tmp.dir}/A.java">
- import junit.framework.*;
- public class A extends TestCase {
- public A(String s) { super(s); }
- public void test01() { System.out.println("A.test01"); }
- public void test02() { System.out.println("A.test02"); fail(); }
- public void test03() { System.out.println("A.test03"); fail(); }
- }
- </echo>
- <echo file="${tmp.dir}/B.java">
- import junit.framework.*;
- public class B extends TestCase {
- public B(String s) { super(s); }
- public void test04() { System.out.println("B.test04"); fail(); }
- public void test05() { System.out.println("B.test05"); }
- public void test06() { System.out.println("B.test06"); }
- }
- </echo>
- <echo file="${tmp.dir}/C.java">
- import junit.framework.*;
- public class C extends TestCase {
- public C(String s) { super(s); }
- public void test07() { System.out.println("C.test07"); }
- public void test08() { System.out.println("C.test08"); }
- public void test09() { System.out.println("C.test09"); }
- }
- </echo>
- <echo file="${tmp.dir}/org/D.java">
- package org;
- import junit.framework.*;
- public class D extends TestCase {
- public D(String s) { super(s); }
- public void test10() { System.out.println("D.test10"); fail(); }
- }
- </echo>
- <javac srcdir="${tmp.dir}" destdir="${tmp.dir}"/>
- </target>
-
- <target name="failureRecorder.internal">
- <property name="tmp.dir" value="${output}"/>
- <delete>
- <fileset dir="${tmp.dir}" includes="FailedTests*.class"/>
- </delete>
- <!-- compile the FailedTests class if present -->
- <javac srcdir="${tmp.dir}" destdir="${tmp.dir}"/>
- <available file="${tmp.dir}/FailedTests.class" property="hasFailingTests"/>
-
- <property name="ant.junit.failureCollector" value="${tmp.dir}/FailedTests"/>
- <junit haltonerror="false" haltonfailure="false">
- <classpath>
- <pathelement location="${tmp.dir}"/>
- </classpath>
- <batchtest todir="${tmp.dir}" unless="hasFailingTests">
- <fileset dir="${tmp.dir}" includes="**/*.java" excludes="**/FailedTests.*"/>
- <!-- for initial creation of the FailingTests.java -->
- <formatter type="failure"/>
- <!-- I want to see something ... -->
- <formatter type="plain" usefile="false"/>
- </batchtest>
- <test name="FailedTests" if="hasFailingTests" todir="${tmp.dir}">
- <!-- update the FailingTests.java -->
- <formatter type="failure"/>
- <!-- again, I want to see something -->
- <formatter type="plain" usefile="false"/>
- </test>
- </junit>
- </target>
-
- <target name="failureRecorder.runtest">
- <ant target="failureRecorder.internal"
- antfile="junit.xml"
- inheritAll="false"
- inheritRefs="false"
- />
- </target>
-
- <target name="failureRecorder.fixing">
- <property name="tmp.dir" value="${output}"/>
- <echo file="${tmp.dir}/A.java">
- import junit.framework.*;
- public class A extends TestCase {
- public A(String s) { super(s); }
- public void test01() { System.out.println("A.test01"); }
- public void test02() { System.out.println("A.test02"); }
- public void test03() { System.out.println("A.test03"); }
- }
- </echo>
- </target>
-
- <!-- Bugzilla Issue 45411 -->
- <target name="testMultilineAssertsNoFork">
- <junit>
- <test name="org.example.junit.MultilineAsserts"/>
- <classpath refid="test"/>
- </junit>
- </target>
-
- <!-- Bugzilla Issue 45411 -->
- <target name="testMultilineAssertsFork">
- <junit fork="true">
- <test name="org.example.junit.MultilineAsserts"/>
- <classpath refid="test"/>
- </junit>
- </target>
-
- <!-- JUnit4 Ignore and Assume for skipping tests -->
- <target name="testSkippableTests">
- <mkdir dir="${output}"/>
- <junit>
- <formatter type="xml"/>
- <classpath refid="test"/>
- <batchtest todir="${output}">
- <fileset dir="../../../../tests/junit">
- <include name="org/example/junit/JUnit4Skippable.java"/>
- <!-- tests remove out-dir on tearDown -->
- </fileset>
- </batchtest>
- </junit>
- </target>
-
-
- <!-- Skipping classes that are not tests -->
- <target name="testNonTests">
- <mkdir dir="${output}"/>
- <junit>
- <formatter type="xml"/>
- <classpath refid="test"/>
- <batchtest todir="${output}" skipNonTests="true">
- <fileset dir="../../../../tests/junit">
- <include name="org/example/junit/*Missed.java"/>
- <!-- tests remove out-dir on tearDown -->
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <!-- Not skipping classes that are not tests -->
- <target name="testNonTestsRun">
- <mkdir dir="${output}"/>
- <junit>
- <formatter type="xml"/>
- <classpath refid="test"/>
- <batchtest todir="${output}" skipNonTests="false">
- <fileset dir="../../../../tests/junit">
- <include name="org/example/junit/*Missed.java"/>
- <!-- tests remove out-dir on tearDown -->
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="testTestMethods" >
- <property name="tmp.dir" value="${output}"/>
- <echo file="${tmp.dir}/T1.java">public class T1 extends
- junit.framework.TestCase {
- public void testOK() {}
- public void testBad() {throw new RuntimeException("failed");}
- }</echo>
- <echo file="${tmp.dir}/T2.java">
- import org.junit.Test;
- public class T2 {
- @Test
- public void ok() {}
- @Test
- public void bad() {
- throw new RuntimeException("failed");}
- }</echo>
- <available property="jdk1.6+" classname="java.net.CookieStore"/>
- <condition property="source" value="6">
- <isset property="jdk1.6+"/>
- </condition>
- <property name="source" value="5"/>
- <javac srcdir="${tmp.dir}" destdir="${tmp.dir}" includes="T1.java,T2.java"
- source="${source}">
-
- </javac>
- <junit fork="false" printsummary="true" haltonerror="true">
- <classpath>
- <pathelement location="${tmp.dir}" />
- <path refid="test" />
- </classpath>
- <test name="T1" methods="testOK" />
- <test name="T2" methods="ok" />
- </junit>
- </target>
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/cdataoutput.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/cdataoutput.xml
deleted file mode 100644
index ab5409b3..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/cdataoutput.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project basedir=".">
- <target name="run-junit">
- <junit fork="true">
- <classpath path="${tests-classpath.value}"/>
- <sysproperty key="cdata.inner" value="true"/>
- <test
- name="org.apache.tools.ant.taskdefs.optional.junit.XMLFormatterWithCDATAOnSystemOut"/>
- <formatter type="xml"/>
- </junit>
- </target>
-</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/matches.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/matches.xml
deleted file mode 100644
index 2451cf89..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/matches.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<matches>
- <foo>
- <abc>
- <foo/>
- <foo/>
- </abc>
- </foo>
-</matches> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/teardownlistener.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/teardownlistener.xml
deleted file mode 100644
index abb6a410..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junit/teardownlistener.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project>
-
- <path id="test">
- <pathelement path="${java.class.path}" />
- <pathelement location="../../../../../../build/testcases" />
- </path>
-
- <target name="testNoTeardown">
- <junit haltonerror="false" errorproperty="error" fork="true" timeout="1000">
- <formatter type="plain" usefile="false"/>
- <batchtest>
- <fileset dir="../../../../../../build/testcases">
- <include name="org/example/junit/Timeout*"/>
- </fileset>
- </batchtest>
- <classpath refid="test"/>
- </junit>
- </target>
-
- <target name="testTeardown">
- <junit haltonerror="false" errorproperty="error" fork="true" timeout="1000">
- <formatter type="plain" usefile="false"/>
- <formatter classname="org.apache.tools.ant.taskdefs.optional.junit.TearDownOnVmCrash"
- usefile="false"/>
- <batchtest>
- <fileset dir="../../../../../../build/testcases">
- <include name="org/example/junit/Timeout*"/>
- </fileset>
- </batchtest>
- <classpath refid="test"/>
- </junit>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-frames.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-frames.xsl
deleted file mode 100644
index 3c0d85aa..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-frames.xsl
+++ /dev/null
@@ -1,879 +0,0 @@
-<?xml version="1.0"?>
-<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"
- xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"
- extension-element-prefixes="redirect">
-<xsl:import href="junit-import.xsl"/>
-<xsl:output method="html" indent="yes" encoding="US-ASCII"/>
-<xsl:decimal-format decimal-separator="." grouping-separator=","/>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<!--
-
- Sample stylesheet to be used with Ant JUnitReport output.
-
- It creates a set of HTML files a la javadoc where you can browse easily
- through all packages and classes.
-
--->
-<xsl:param name="output.dir" select="'.'"/>
-<xsl:param name="key1" select="'defaultValue1'"/>
-<xsl:param name="key2" select="'defaultValue2'"/>
-
-<xsl:template match="testsuites">
- <!-- create the index.html -->
- <redirect:write file="{$output.dir}/index.html">
- <xsl:call-template name="index.html"/>
- </redirect:write>
-
- <!-- create the stylesheet.css -->
- <redirect:write file="{$output.dir}/stylesheet.css">
- <xsl:call-template name="stylesheet.css"/>
- </redirect:write>
-
- <!-- create the overview-packages.html at the root -->
- <redirect:write file="{$output.dir}/overview-summary.html">
- <xsl:apply-templates select="." mode="overview.packages"/>
- </redirect:write>
-
- <!-- create the all-packages.html at the root -->
- <redirect:write file="{$output.dir}/overview-frame.html">
- <xsl:apply-templates select="." mode="all.packages"/>
- </redirect:write>
-
- <!-- create the all-classes.html at the root -->
- <redirect:write file="{$output.dir}/allclasses-frame.html">
- <xsl:apply-templates select="." mode="all.classes"/>
- </redirect:write>
-
- <!-- create the all-tests.html at the root -->
- <redirect:write file="{$output.dir}/all-tests.html">
- <xsl:apply-templates select="." mode="all.tests"/>
- </redirect:write>
-
- <!-- create the alltests-fails.html at the root -->
- <redirect:write file="{$output.dir}/alltests-fails.html">
- <xsl:apply-templates select="." mode="all.tests">
- <xsl:with-param name="type" select="'fails'"/>
- </xsl:apply-templates>
- </redirect:write>
-
- <!-- create the alltests-errors.html at the root -->
- <redirect:write file="{$output.dir}/alltests-errors.html">
- <xsl:apply-templates select="." mode="all.tests">
- <xsl:with-param name="type" select="'errors'"/>
- </xsl:apply-templates>
- </redirect:write>
-
- <!-- process all packages -->
- <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
- <xsl:call-template name="package">
- <xsl:with-param name="name" select="@package"/>
- </xsl:call-template>
- </xsl:for-each>
-</xsl:template>
- <xsl:template name="package">
- <xsl:param name="name"/>
- <xsl:variable name="package.dir">
- <xsl:if test="not($name = '')"><xsl:value-of select="translate($name,'.','/')"/></xsl:if>
- <xsl:if test="$name = ''">.</xsl:if>
- </xsl:variable>
- <!--Processing package <xsl:value-of select="@name"/> in <xsl:value-of select="$output.dir"/> -->
- <!-- create a classes-list.html in the package directory -->
- <redirect:write file="{$output.dir}/{$package.dir}/package-frame.html">
- <xsl:call-template name="classes.list">
- <xsl:with-param name="name" select="$name"/>
- </xsl:call-template>
- </redirect:write>
-
- <!-- create a package-summary.html in the package directory -->
- <redirect:write file="{$output.dir}/{$package.dir}/package-summary.html">
- <xsl:call-template name="package.summary">
- <xsl:with-param name="name" select="$name"/>
- </xsl:call-template>
- </redirect:write>
-
- <!-- for each class, creates a @name.html -->
- <!-- @bug there will be a problem with inner classes having the same name, it will be overwritten -->
- <xsl:for-each select="/testsuites/testsuite[@package = $name]">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}.html">
- <xsl:apply-templates select="." mode="class.details"/>
- </redirect:write>
- <xsl:if test="string-length(./system-out)!=0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-out.txt">
- <xsl:value-of disable-output-escaping="yes" select="./system-out"/>
- </redirect:write>
- </xsl:if>
- <xsl:if test="string-length(./system-err)!=0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-err.txt">
- <xsl:value-of disable-output-escaping="yes" select="./system-err"/>
- </redirect:write>
- </xsl:if>
- <xsl:if test="@failures != 0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-fails.html">
- <xsl:apply-templates select="." mode="class.details">
- <xsl:with-param name="type" select="'fails'"/>
- </xsl:apply-templates>
- </redirect:write>
- </xsl:if>
- <xsl:if test="@errors != 0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-errors.html">
- <xsl:apply-templates select="." mode="class.details">
- <xsl:with-param name="type" select="'errors'"/>
- </xsl:apply-templates>
- </redirect:write>
- </xsl:if>
- </xsl:for-each>
- </xsl:template>
-
-
-<xsl:template name="index.html">
-<html>
- <head>
- <title>
- Unit Test Results. key1=<xsl:value-of select="$key1"/>,key2=<xsl:value-of select="$key2"/>
- </title>
- </head>
- <frameset cols="20%,80%">
- <frameset rows="30%,70%">
- <frame src="overview-frame.html" name="packageListFrame"/>
- <frame src="allclasses-frame.html" name="classListFrame"/>
- </frameset>
- <frame src="overview-summary.html" name="classFrame"/>
- <noframes>
- <h2>Frame Alert</h2>
- <p>
- This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
- </p>
- </noframes>
- </frameset>
-</html>
-</xsl:template>
-
-<!-- this is the stylesheet css to use for nearly everything -->
-<xsl:template name="stylesheet.css">
-body {
- font:normal 68% verdana,arial,helvetica;
- color:#000000;
-}
-table tr td, table tr th {
- font-size: 68%;
-}
-table.details tr th{
- font-weight: bold;
- text-align:left;
- background:#a6caf0;
-}
-table.details tr td{
- background:#eeeee0;
-}
-
-p {
- line-height:1.5em;
- margin-top:0.5em; margin-bottom:1.0em;
-}
-h1 {
- margin: 0px 0px 5px; font: 165% verdana,arial,helvetica
-}
-h2 {
- margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica
-}
-h3 {
- margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica
-}
-h4 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
-}
-h5 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
-}
-h6 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
-}
-.Error {
- font-weight:bold; color:red;
-}
-.Failure {
- font-weight:bold; color:purple;
-}
-.Properties {
- text-align:right;
-}
-</xsl:template>
-
-<!-- Create list of all/failed/errored tests -->
-<xsl:template match="testsuites" mode="all.tests">
- <xsl:param name="type" select="'all'"/>
- <html>
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <xsl:text>All Failures</xsl:text>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <xsl:text>All Errors</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>All Tests</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <head>
- <title>Unit Test Results: <xsl:value-of select="$title"/></title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <xsl:attribute name="onload">open('allclasses-frame.html','classListFrame')</xsl:attribute>
- <xsl:call-template name="pageHeader"/>
- <h2><xsl:value-of select="$title"/></h2>
-
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testcase.test.header">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:call-template>
- <!--
- test can even not be started at all (failure to load the class)
- so report the error directly
- -->
- <xsl:if test="./error">
- <tr class="Error">
- <td colspan="4">
- <xsl:apply-templates select="./error"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <xsl:apply-templates select=".//testcase[failure]" mode="print.test">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <xsl:apply-templates select=".//testcase[error]" mode="print.test">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select=".//testcase" mode="print.test">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </body>
- </html>
-</xsl:template>
-
-
-<!-- ======================================================================
- This page is created for every testsuite class.
- It prints a summary of the testsuite and detailed information about
- testcase methods.
- ====================================================================== -->
-<xsl:template match="testsuite" mode="class.details">
- <xsl:param name="type" select="'all'"/>
- <xsl:variable name="package.name" select="@package"/>
- <xsl:variable name="class.name"><xsl:if test="not($package.name = '')"><xsl:value-of select="$package.name"/>.</xsl:if><xsl:value-of select="@name"/></xsl:variable>
- <html>
- <head>
- <title>Unit Test Results: <xsl:value-of select="$class.name"/></title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name" select="$package.name"/>
- </xsl:call-template>
- <script type="text/javascript" language="JavaScript">
- var TestCases = new Array();
- var cur;
- <xsl:apply-templates select="properties"/>
- </script>
- <script type="text/javascript" language="JavaScript"><![CDATA[
- function displayProperties (name) {
- var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
- var doc = win.document;
- doc.open();
- doc.write("<html><head><title>Properties of " + name + "</title>");
- doc.write("<style type=\"text/css\">");
- doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");
- doc.write("table tr td, table tr th { font-size: 68%; }");
- doc.write("table.properties { border-collapse:collapse; border-left:solid 1 #cccccc; border-top:solid 1 #cccccc; padding:5px; }");
- doc.write("table.properties th { text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#eeeeee; }");
- doc.write("table.properties td { font:normal; text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#fffffff; }");
- doc.write("h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica }");
- doc.write("</style>");
- doc.write("</head><body>");
- doc.write("<h3>Properties of " + name + "</h3>");
- doc.write("<div align=\"right\"><a href=\"javascript:window.close();\">Close</a></div>");
- doc.write("<table class='properties'>");
- doc.write("<tr><th>Name</th><th>Value</th></tr>");
- for (prop in TestCases[name]) {
- doc.write("<tr><th>" + prop + "</th><td>" + TestCases[name][prop] + "</td></tr>");
- }
- doc.write("</table>");
- doc.write("</body></html>");
- doc.close();
- win.focus();
- }
- ]]>
- </script>
- </head>
- <body>
- <xsl:call-template name="pageHeader"/>
- <h3>Class <xsl:value-of select="$class.name"/></h3>
-
-
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <xsl:apply-templates select="." mode="print.test"/>
- </table>
-
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <h2>Failures</h2>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <h2>Errors</h2>
- </xsl:when>
- <xsl:otherwise>
- <h2>Tests</h2>
- </xsl:otherwise>
- </xsl:choose>
- <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:if test="./error">
- <tr class="Error">
- <td colspan="4"><xsl:apply-templates select="./error"/></td>
- </tr>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <xsl:apply-templates select="./testcase[failure]" mode="print.test"/>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <xsl:apply-templates select="./testcase[error]" mode="print.test"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="./testcase" mode="print.test"/>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- <div class="Properties">
- <a>
- <xsl:attribute name="href">javascript:displayProperties('<xsl:value-of select="@package"/>.<xsl:value-of select="@name"/>');</xsl:attribute>
- Properties &#187;
- </a>
- </div>
- <xsl:if test="string-length(./system-out)!=0">
- <div class="Properties">
- <a>
- <xsl:attribute name="href">./<xsl:value-of select="@id"/>_<xsl:value-of select="@name"/>-out.txt</xsl:attribute>
- System.out &#187;
- </a>
- </div>
- </xsl:if>
- <xsl:if test="string-length(./system-err)!=0">
- <div class="Properties">
- <a>
- <xsl:attribute name="href">./<xsl:value-of select="@id"/>_<xsl:value-of select="@name"/>-err.txt</xsl:attribute>
- System.err &#187;
- </a>
- </div>
- </xsl:if>
- </body>
- </html>
-</xsl:template>
-
- <!--
- Write properties into a JavaScript data structure.
- This is based on the original idea by Erik Hatcher (ehatcher@apache.org)
- -->
- <xsl:template match="properties">
- cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array();
- <xsl:for-each select="property">
- <xsl:sort select="@name"/>
- cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>';
- </xsl:for-each>
- </xsl:template>
-
-
-<!-- ======================================================================
- This page is created for every package.
- It prints the name of all classes that belongs to this package.
- @param name the package name to print classes.
- ====================================================================== -->
-<!-- list of classes in a package -->
-<xsl:template name="classes.list">
- <xsl:param name="name"/>
- <html>
- <head>
- <title>Unit Test Classes: <xsl:value-of select="$name"/></title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name" select="$name"/>
- </xsl:call-template>
- </head>
- <body>
- <table width="100%">
- <tr>
- <td nowrap="nowrap">
- <h2><a href="package-summary.html" target="classFrame">
- <xsl:value-of select="$name"/>
- <xsl:if test="$name = ''">&lt;none&gt;</xsl:if>
- </a></h2>
- </td>
- </tr>
- </table>
-
- <h2>Classes</h2>
- <table width="100%">
- <xsl:for-each select="/testsuites/testsuite[./@package = $name]">
- <xsl:sort select="@name"/>
- <tr>
- <td nowrap="nowrap">
- <a href="{@id}_{@name}.html" target="classFrame"><xsl:value-of select="@name"/></a>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
-</xsl:template>
-
-
-<!--
- Creates an all-classes.html file that contains a link to all package-summary.html
- on each class.
--->
-<xsl:template match="testsuites" mode="all.classes">
- <html>
- <head>
- <title>All Unit Test Classes</title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <h2>Classes</h2>
- <table width="100%">
- <xsl:apply-templates select="testsuite" mode="all.classes">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </table>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="testsuite" mode="all.classes">
- <xsl:variable name="package.name" select="@package"/>
- <tr>
- <td nowrap="nowrap">
- <a target="classFrame">
- <xsl:attribute name="href">
- <xsl:if test="not($package.name='')">
- <xsl:value-of select="translate($package.name,'.','/')"/><xsl:text>/</xsl:text>
- </xsl:if><xsl:value-of select="@id"/>_<xsl:value-of select="@name"/><xsl:text>.html</xsl:text>
- </xsl:attribute>
- <xsl:value-of select="@name"/>
- </a>
- </td>
- </tr>
-</xsl:template>
-
-
-<!--
- Creates an html file that contains a link to all package-summary.html files on
- each package existing on testsuites.
- @bug there will be a problem here, I don't know yet how to handle unnamed package :(
--->
-<xsl:template match="testsuites" mode="all.packages">
- <html>
- <head>
- <title>All Unit Test Packages</title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <h2><a href="overview-summary.html" target="classFrame">Home</a></h2>
- <h2>Packages</h2>
- <table width="100%">
- <xsl:apply-templates select="testsuite[not(./@package = preceding-sibling::testsuite/@package)]" mode="all.packages">
- <xsl:sort select="@package"/>
- </xsl:apply-templates>
- </table>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="testsuite" mode="all.packages">
- <tr>
- <td nowrap="nowrap">
- <a href="./{translate(@package,'.','/')}/package-summary.html" target="classFrame">
- <xsl:value-of select="@package"/>
- <xsl:if test="@package = ''">&lt;none&gt;</xsl:if>
- </a>
- </td>
- </tr>
-</xsl:template>
-
-
-<xsl:template match="testsuites" mode="overview.packages">
- <html>
- <head>
- <title>Unit Test Results: Summary</title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <xsl:attribute name="onload">open('allclasses-frame.html','classListFrame')</xsl:attribute>
- <xsl:call-template name="pageHeader"/>
- <h2>Summary</h2>
- <xsl:variable name="testCount" select="sum(testsuite/@tests)"/>
- <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/>
- <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/>
- <xsl:variable name="timeCount" select="sum(testsuite/@time)"/>
- <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <tr valign="top">
- <th>Tests</th>
- <th>Failures</th>
- <th>Errors</th>
- <th>Success rate</th>
- <th>Time</th>
- </tr>
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="$errorCount &gt; 0">Error</xsl:when>
- <xsl:when test="$failureCount &gt; 0">Failure</xsl:when>
- <xsl:otherwise>Pass</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <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 errors" href="alltests-errors.html"><xsl:value-of select="$errorCount"/></a></td>
- <td>
- <xsl:call-template name="display-percent">
- <xsl:with-param name="value" select="$successRate"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="$timeCount"/>
- </xsl:call-template>
- </td>
- </tr>
- </table>
- <table border="0" width="95%">
- <tr>
- <td style="text-align: justify;">
- Note: <em>failures</em> are anticipated and checked for with assertions while <em>errors</em> are unanticipated.
- </td>
- </tr>
- </table>
-
- <h2>Packages</h2>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <xsl:for-each select="testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
- <xsl:sort select="@package" order="ascending"/>
- <!-- get the node set containing all testsuites that have the same package -->
- <xsl:variable name="insamepackage" select="/testsuites/testsuite[./@package = current()/@package]"/>
- <tr valign="top">
- <!-- display a failure if there is any failure/error in the package -->
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="sum($insamepackage/@errors) &gt; 0">Error</xsl:when>
- <xsl:when test="sum($insamepackage/@failures) &gt; 0">Failure</xsl:when>
- <xsl:otherwise>Pass</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td><a href="./{translate(@package,'.','/')}/package-summary.html">
- <xsl:value-of select="@package"/>
- <xsl:if test="@package = ''">&lt;none&gt;</xsl:if>
- </a></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/@failures)"/></td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="sum($insamepackage/@time)"/>
- </xsl:call-template>
- </td>
- <td><xsl:value-of select="$insamepackage/@timestamp"/></td>
- <td><xsl:value-of select="$insamepackage/@hostname"/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
-</xsl:template>
-
-
-<xsl:template name="package.summary">
- <xsl:param name="name"/>
- <html>
- <head>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name" select="$name"/>
- </xsl:call-template>
- </head>
- <body>
- <xsl:attribute name="onload">open('package-frame.html','classListFrame')</xsl:attribute>
- <xsl:call-template name="pageHeader"/>
- <h3>Package <xsl:value-of select="$name"/></h3>
-
- <!--table border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="class.metrics.header"/>
- <xsl:apply-templates select="." mode="print.metrics"/>
- </table-->
-
- <xsl:variable name="insamepackage" select="/testsuites/testsuite[./@package = $name]"/>
- <xsl:if test="count($insamepackage) &gt; 0">
- <h2>Classes</h2>
- <p>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <xsl:apply-templates select="$insamepackage" mode="print.test">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </table>
- </p>
- </xsl:if>
- </body>
- </html>
-</xsl:template>
-
-
-<!--
- transform string like a.b.c to ../../../
- @param path the path to transform into a descending directory path
--->
-<xsl:template name="path">
- <xsl:param name="path"/>
- <xsl:if test="contains($path,'.')">
- <xsl:text>../</xsl:text>
- <xsl:call-template name="path">
- <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'.')"/></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="not(contains($path,'.')) and not($path = '')">
- <xsl:text>../</xsl:text>
- </xsl:if>
-</xsl:template>
-
-
-<!-- create the link to the stylesheet based on the package name -->
-<xsl:template name="create.stylesheet.link">
- <xsl:param name="package.name"/>
- <link rel="stylesheet" type="text/css" title="Style"><xsl:attribute name="href"><xsl:if test="not($package.name = 'unnamed package')"><xsl:call-template name="path"><xsl:with-param name="path" select="$package.name"/></xsl:call-template></xsl:if>stylesheet.css</xsl:attribute></link>
-</xsl:template>
-
-
-<!-- Page HEADER -->
-<xsl:template name="pageHeader">
- <h1>Unit Test Results</h1>
- <table width="100%">
- <tr>
- <td align="left"></td>
- <td align="right">Designed for use with <a href="http://www.junit.org/">JUnit</a> and <a href="http://ant.apache.org/">Ant</a>.</td>
- </tr>
- </table>
- <hr size="1"/>
-</xsl:template>
-
- <xsl:template name="testsuite.test.header">
- <tr valign="top">
- <th width="80%">Name</th>
- <th>Tests</th>
- <th>Errors</th>
- <th>Failures</th>
- <th nowrap="nowrap">Time(s)</th>
- <th nowrap="nowrap">Time Stamp</th>
- <th>Host</th>
- </tr>
- </xsl:template>
-<!-- method header -->
-<xsl:template name="testcase.test.header">
- <xsl:param name="show.class" select="''"/>
- <tr valign="top">
- <xsl:if test="boolean($show.class)">
- <th>Class</th>
- </xsl:if>
- <th>Name</th>
- <th>Status</th>
- <th width="80%">Type</th>
- <th nowrap="nowrap">Time(s)</th>
- </tr>
-</xsl:template>
-
-
-<!-- class information -->
-<xsl:template match="testsuite" mode="print.test">
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@errors[.&gt; 0]">Error</xsl:when>
- <xsl:when test="@failures[.&gt; 0]">Failure</xsl:when>
- <xsl:otherwise>Pass</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td><a title="Display all tests" href="{@id}_{@name}.html"><xsl:value-of select="@name"/></a></td>
- <td><a title="Display all tests" href="{@id}_{@name}.html"><xsl:apply-templates select="@tests"/></a></td>
- <td>
- <xsl:choose>
- <xsl:when test="@errors != 0">
- <a title="Display only errors" href="{@id}_{@name}-errors.html"><xsl:apply-templates select="@errors"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="@errors"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="@failures != 0">
- <a title="Display only failures" href="{@id}_{@name}-fails.html"><xsl:apply-templates select="@failures"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="@failures"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td><xsl:call-template name="display-time">
- <xsl:with-param name="value" select="@time"/>
- </xsl:call-template>
- </td>
- <td><xsl:apply-templates select="@timestamp"/></td>
- <td><xsl:apply-templates select="@hostname"/></td>
- </tr>
-</xsl:template>
-
-<xsl:template match="testcase" mode="print.test">
- <xsl:param name="show.class" select="''"/>
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="error">Error</xsl:when>
- <xsl:when test="failure">Failure</xsl:when>
- <xsl:otherwise>TableRowColor</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:variable name="class.href">
- <xsl:value-of select="concat(translate(../@package,'.','/'), '/', ../@id, '_', ../@name, '.html')"/>
- </xsl:variable>
- <xsl:if test="boolean($show.class)">
- <td><a href="{$class.href}"><xsl:value-of select="../@name"/></a></td>
- </xsl:if>
- <td>
- <a name="{@name}"/>
- <xsl:choose>
- <xsl:when test="boolean($show.class)">
- <a href="{concat($class.href, '#', @name)}"><xsl:value-of select="@name"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@name"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <xsl:choose>
- <xsl:when test="failure">
- <td>Failure</td>
- <td><xsl:apply-templates select="failure"/></td>
- </xsl:when>
- <xsl:when test="error">
- <td>Error</td>
- <td><xsl:apply-templates select="error"/></td>
- </xsl:when>
- <xsl:otherwise>
- <td>Success</td>
- <td></td>
- </xsl:otherwise>
- </xsl:choose>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="@time"/>
- </xsl:call-template>
- </td>
- </tr>
-</xsl:template>
-
-
-<!-- Note : the below template error and failure are the same style
- so just call the same style store in the toolkit template -->
-<xsl:template match="failure">
- <xsl:call-template name="display-failures"/>
-</xsl:template>
-
-<xsl:template match="error">
- <xsl:call-template name="display-failures"/>
-</xsl:template>
-
-<!-- Style for the error and failure in the testcase template -->
-<xsl:template name="display-failures">
- <xsl:choose>
- <xsl:when test="not(@message)">N/A</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@message"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- display the stacktrace -->
- <br/><br/>
- <code>
- <xsl:call-template name="br-replace">
- <xsl:with-param name="word" select="."/>
- </xsl:call-template>
- </code>
- <!-- the latter is better but might be problematic for non-21" monitors... -->
- <!--pre><xsl:value-of select="."/></pre-->
-</xsl:template>
-
-<xsl:template name="JS-escape">
- <xsl:param name="string"/>
- <xsl:param name="tmp1" select="stringutils:replace(string($string),'\','\\')"/>
- <xsl:param name="tmp2" select="stringutils:replace(string($tmp1),&quot;'&quot;,&quot;\&apos;&quot;)"/>
- <xsl:value-of select="$tmp2"/>
-</xsl:template>
-
-
-<!--
- template that will convert a carriage return into a br tag
- @param word the text from which to convert CR to BR tag
--->
-<xsl:template name="br-replace">
- <xsl:param name="word"/>
- <xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
-</xsl:template>
-
-<xsl:template name="display-time">
- <xsl:param name="value"/>
- <xsl:value-of select="format-number($value,'0.000')"/>
-</xsl:template>
-
-<xsl:template name="display-percent">
- <xsl:param name="value"/>
- <xsl:value-of select="format-number($value,'0.00%')"/>
-</xsl:template>
-
-
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-import.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-import.xsl
deleted file mode 100644
index ecba47bb..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport-with-include/junit-import.xsl
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<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"
- xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"
- extension-element-prefixes="redirect">
- <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <!-- class header -->
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport.xml
deleted file mode 100644
index 60806625..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport.xml
+++ /dev/null
@@ -1,189 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="junitreport-test" basedir="." default="reports1">
-
- <import file="../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- </target>
-
-
- <property name="jrdir" location="junitreport"/>
-
- <!-- reports1 take care of transformation of 2 test result files and
- produce reports according to the default format (frames)
- needed for testNoFileJUnitNoFrames -->
- <target name="reports1">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testEmptyFile">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="ZEROBYTES-*.xml"/>
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testIncompleteFile">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="INCOMPLETE-*.xml"/>
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testWrongElement">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="WRONGELEMENT-*.xml"/>
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testNamespace">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="NAMESPACE-*.xml"/>
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testStackTraceLineBreaks">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testSpecialSignsInSrcPath">
- <mkdir dir="${output}/html"/>
- <mkdir dir="${output}/test# $$%§&amp;-!cases"/>
- <copy todir="${output}/test# $$%§&amp;-!cases">
- <fileset dir="junitreport" includes="TEST-*.xml"/>
- </copy>
- <junitreport todir="${output}/html">
- <fileset dir="${output}/test# $$%§&amp;-!cases">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testSpecialSignsInHtmlPath">
- <mkdir dir="${output}/html# $$%§&amp;-!report"/>
- <mkdir dir="${output}/test"/>
- <copy todir="${output}/test">
- <fileset dir="junitreport" includes="TEST-*.xml"/>
- </copy>
- <junitreport todir="${output}/html# $$%§&amp;-!report">
- <fileset dir="${output}/test">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html# $$%§&amp;-!report"/>
- </junitreport>
- </target>
-
- <target name="testWithStyleFromClasspath">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"/>
- </junitreport>
- </target>
-
- <target name="testNoFrames">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html" format="noframes"/>
- </junitreport>
- </target>
-
- <target name="testWithStyleFromDir">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"
- styledir="junitreport"
- format="frames"/>
- </junitreport>
- </target>
-
- <!-- bug report 40022 -->
- <target name="testWithStyleFromDirAndXslImport">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"
- styledir="junitreport-with-include"
- format="frames"/>
- </junitreport>
- </target>
-
- <target name="testWithParams">
- <mkdir dir="${output}/html"/>
- <junitreport todir="${output}">
- <fileset dir="${jrdir}">
- <include name="TEST-*.xml"/>
- </fileset>
- <report todir="${output}/html"
- styledir="junitreport"
- format="frames">
- <param name="key1" expression="value1"/>
- <param name="key2" expression="value2"/>
- </report>
- </junitreport>
- <concat>
- <fileset file="${output}/html/index.html"/>
- </concat>
- </target>
-
-</project>
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/INCOMPLETE-sampleproject.incomplete.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/INCOMPLETE-sampleproject.incomplete.xml
deleted file mode 100644
index 56af0146..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/INCOMPLETE-sampleproject.incomplete.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testsuite errors="0" failures="0" name="sampleproject.incomplete" tests="5" time="0.038">
- </properties>
- <testcase name="testEquals" time="0.0"></testcase>
- <testcase name="testHashCode" time="0.0"></testcase>
- <testcase name="testToString" time="0.0010"></testcase>
- <testcase name="testgetUniqueString" time="0.0"></testcase>
- <testcase name="testSerialization" time="0.024"></testcase>
- <system-out><![CDATA[testEquals
-testHashCode
-testToString
-testgetUniqueString
-testSerialization
-]]></system-out>
- <system-err>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/NAMESPACE-sampleproject.namespace.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/NAMESPACE-sampleproject.namespace.xml
deleted file mode 100644
index 41e7dbff..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/NAMESPACE-sampleproject.namespace.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<ns:testsuite errors="1" failures="1" name="sampleproject.namespace" tests="11" time="0.171" xmlns:ns="funny-namespace">
- <properties>
- <property name="testsrc" value="test/"></property>
- <property name="java.runtime.name" value="Java(TM) 2 Runtime Environment, Standard Edition"></property>
- <property name="sun.boot.library.path" value="/usr/java/jdk1.3.1_03/jre/lib/i386"></property>
- <property name="java.vm.version" value="1.3.1_03-b03"></property>
- <property name="ant.version" value="Apache Ant version 1.5 compiled on July 9 2002"></property>
- <property name="ant.java.version" value="1.3"></property>
- <property name="java.vm.vendor" value="Sun Microsystems Inc."></property>
- <property name="java.vendor.url" value="http://java.sun.com/"></property>
- <property name="path.separator" value=":"></property>
- <property name="java.vm.name" value="Java HotSpot(TM) Client VM"></property>
- <property name="file.encoding.pkg" value="sun.io"></property>
- <property name="classes" value="classes"></property>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"></property>
- <property name="user.dir" value="/home/jkf/programming/gretant_sourceforge/sampleproject"></property>
- <property name="java.runtime.version" value="1.3.1_03-b03"></property>
- <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"></property>
- <property name="basedir" value="/home/jkf/programming/gretant_sourceforge/sampleproject"></property>
- <property name="os.arch" value="i386"></property>
- <property name="java.io.tmpdir" value="/tmp"></property>
- <property name="line.separator" value="
-"></property>
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."></property>
- <property name="java.awt.fonts" value=""></property>
- <property name="os.name" value="Linux"></property>
- <property name="ant.home" value="/opt/jakarta-ant-1.5/"></property>
- <property name="ant.project.name" value="sample"></property>
- <property name="reportdir" value="reports"></property>
- <property name="java.library.path" value="/usr/java/jdk1.3.1_03/jre/lib/i386:/usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/:/usr/java/jdk1.3.1_03/jre/lib/i386/client:/usr/java/jdk1.3.1_03/jre/../lib/i386"></property>
- <property name="src" value="code/"></property>
- <property name="debug" value="on"></property>
- <property name="java.specification.name" value="Java Platform API Specification"></property>
- <property name="java.class.version" value="47.0"></property>
- <property name="os.version" value="2.4.18-5"></property>
- <property name="ant.file" value="/home/jkf/programming/gretant_sourceforge/sampleproject/build.xml"></property>
- <property name="unitreport" value="cl-unit.xml"></property>
- <property name="user.home" value="/home/jkf"></property>
- <property name="user.timezone" value="Europe/Amsterdam"></property>
- <property name="java.awt.printerjob" value="sun.awt.motif.PSPrinterJob"></property>
- <property name="java.specification.version" value="1.3"></property>
- <property name="file.encoding" value="ISO-8859-15"></property>
- <property name="java.class.path" value="/opt/jakarta-ant-1.5//lib/xml-apis.jar:/opt/jakarta-ant-1.5//lib/xercesImpl.jar:/opt/jakarta-ant-1.5//lib/xalan.jar:/opt/jakarta-ant-1.5//lib/optional.jar:/opt/jakarta-ant-1.5//lib/junit.jar:/opt/jakarta-ant-1.5//lib/Gretel.jar:/opt/jakarta-ant-1.5//lib/gretant.jar:/opt/jakarta-ant-1.5//lib/cup-runtime.jar:/opt/jakarta-ant-1.5//lib/bcel.jar:/opt/jakarta-ant-1.5//lib/ant.jar:/usr/java/jdk1.3/lib/tools.jar"></property>
- <property name="user.name" value="jkf"></property>
- <property name="coverreport" value="cl-cover.xml"></property>
- <property name="java.vm.specification.version" value="1.0"></property>
- <property name="java.home" value="/usr/java/jdk1.3.1_03/jre"></property>
- <property name="java.specification.vendor" value="Sun Microsystems Inc."></property>
- <property name="user.language" value="en"></property>
- <property name="java.vm.info" value="mixed mode"></property>
- <property name="java.version" value="1.3.1_03"></property>
- <property name="java.ext.dirs" value="/usr/java/jdk1.3.1_03/jre/lib/ext"></property>
- <property name="sun.boot.class.path" value="/usr/java/jdk1.3.1_03/jre/lib/rt.jar:/usr/java/jdk1.3.1_03/jre/lib/i18n.jar:/usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar:/usr/java/jdk1.3.1_03/jre/classes"></property>
- <property name="java.vendor" value="Sun Microsystems Inc."></property>
- <property name="file.separator" value="/"></property>
- <property name="testclasses" value="testclasses"></property>
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"></property>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"></property>
- <property name="sun.cpu.endian" value="little"></property>
- <property name="gretclasses" value="gretclasses"></property>
- <property name="user.region" value="US"></property>
- <property name="sun.cpu.isalist" value=""></property>
- </properties>
- <testcase name="testEquals" time="0.014"></testcase>
- <testcase name="testHashCode" time="0.0010"></testcase>
- <testcase name="testToString" time="0.0010"></testcase>
- <testcase name="testGetImageURL" time="0.0"></testcase>
- <testcase name="testGetCountry" time="0.0010"></testcase>
- <testcase name="testGetDenomination" time="0.0"></testcase>
- <testcase name="testGetYear" time="0.0"></testcase>
- <testcase name="testGetSubType" time="0.0"></testcase>
- <testcase name="testFail" time="0.0080">
- <failure message="DOEG" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: DOEG
- at sampleproject.coins.CoinTest.testFail(CoinTest.java:229)
-</failure>
- </testcase>
- <testcase name="testException" time="0.0010">
- <error message="RTE" type="java.lang.RuntimeException">java.lang.RuntimeException: RTE
- at sampleproject.coins.CoinTest.testException(CoinTest.java:234)
-</error>
- </testcase>
- <testcase name="testSuccess" time="0.0"></testcase>
- <system-out><![CDATA[testEquals
-testHashCode
-Hashcodes: 1434557225 1434557225 1434557226 1463186376 1434556908 1516980401 1434557225
-testToString
-<Coin=NL,1 Euro,1999,Var a/>
-<Coin=NL,1 Euro,1999,null/>
-testGetImageURL
-testGetCountry
-testGetDenomination
-testGetYear
-testGetSubType
-testFail
-testException
-testSuccess
-]]></system-out>
- <system-err><![CDATA[]]></system-err>
-</ns:testsuite>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.coins.CoinTest.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.coins.CoinTest.xml
deleted file mode 100644
index 6bc99f29..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.coins.CoinTest.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testsuite errors="1" failures="1" name="sampleproject.coins.CoinTest" tests="11" time="0.171">
- <properties>
- <property name="testsrc" value="test/"></property>
- <property name="java.runtime.name" value="Java(TM) 2 Runtime Environment, Standard Edition"></property>
- <property name="sun.boot.library.path" value="/usr/java/jdk1.3.1_03/jre/lib/i386"></property>
- <property name="java.vm.version" value="1.3.1_03-b03"></property>
- <property name="ant.version" value="Apache Ant version 1.5 compiled on July 9 2002"></property>
- <property name="ant.java.version" value="1.3"></property>
- <property name="java.vm.vendor" value="Sun Microsystems Inc."></property>
- <property name="java.vendor.url" value="http://java.sun.com/"></property>
- <property name="path.separator" value=":"></property>
- <property name="java.vm.name" value="Java HotSpot(TM) Client VM"></property>
- <property name="file.encoding.pkg" value="sun.io"></property>
- <property name="classes" value="classes"></property>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"></property>
- <property name="user.dir" value="/home/jkf/programming/gretant_sourceforge/sampleproject"></property>
- <property name="java.runtime.version" value="1.3.1_03-b03"></property>
- <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"></property>
- <property name="basedir" value="/home/jkf/programming/gretant_sourceforge/sampleproject"></property>
- <property name="os.arch" value="i386"></property>
- <property name="java.io.tmpdir" value="/tmp"></property>
- <property name="line.separator" value="&#xd;&#xa;"></property>
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."></property>
- <property name="java.awt.fonts" value=""></property>
- <property name="os.name" value="Linux"></property>
- <property name="ant.home" value="/opt/jakarta-ant-1.5/"></property>
- <property name="ant.project.name" value="sample"></property>
- <property name="reportdir" value="reports"></property>
- <property name="java.library.path" value="/usr/java/jdk1.3.1_03/jre/lib/i386:/usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/:/usr/java/jdk1.3.1_03/jre/lib/i386/client:/usr/java/jdk1.3.1_03/jre/../lib/i386"></property>
- <property name="src" value="code/"></property>
- <property name="debug" value="on"></property>
- <property name="java.specification.name" value="Java Platform API Specification"></property>
- <property name="java.class.version" value="47.0"></property>
- <property name="os.version" value="2.4.18-5"></property>
- <property name="ant.file" value="/home/jkf/programming/gretant_sourceforge/sampleproject/build.xml"></property>
- <property name="unitreport" value="cl-unit.xml"></property>
- <property name="user.home" value="/home/jkf"></property>
- <property name="user.timezone" value="Europe/Amsterdam"></property>
- <property name="java.awt.printerjob" value="sun.awt.motif.PSPrinterJob"></property>
- <property name="java.specification.version" value="1.3"></property>
- <property name="file.encoding" value="ISO-8859-15"></property>
- <property name="java.class.path" value="/opt/jakarta-ant-1.5//lib/xml-apis.jar:/opt/jakarta-ant-1.5//lib/xercesImpl.jar:/opt/jakarta-ant-1.5//lib/xalan.jar:/opt/jakarta-ant-1.5//lib/optional.jar:/opt/jakarta-ant-1.5//lib/junit.jar:/opt/jakarta-ant-1.5//lib/Gretel.jar:/opt/jakarta-ant-1.5//lib/gretant.jar:/opt/jakarta-ant-1.5//lib/cup-runtime.jar:/opt/jakarta-ant-1.5//lib/bcel.jar:/opt/jakarta-ant-1.5//lib/ant.jar:/usr/java/jdk1.3/lib/tools.jar"></property>
- <property name="user.name" value="jkf"></property>
- <property name="coverreport" value="cl-cover.xml"></property>
- <property name="java.vm.specification.version" value="1.0"></property>
- <property name="java.home" value="/usr/java/jdk1.3.1_03/jre"></property>
- <property name="java.specification.vendor" value="Sun Microsystems Inc."></property>
- <property name="user.language" value="en"></property>
- <property name="java.vm.info" value="mixed mode"></property>
- <property name="java.version" value="1.3.1_03"></property>
- <property name="java.ext.dirs" value="/usr/java/jdk1.3.1_03/jre/lib/ext"></property>
- <property name="sun.boot.class.path" value="/usr/java/jdk1.3.1_03/jre/lib/rt.jar:/usr/java/jdk1.3.1_03/jre/lib/i18n.jar:/usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar:/usr/java/jdk1.3.1_03/jre/classes"></property>
- <property name="java.vendor" value="Sun Microsystems Inc."></property>
- <property name="file.separator" value="/"></property>
- <property name="testclasses" value="testclasses"></property>
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"></property>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"></property>
- <property name="sun.cpu.endian" value="little"></property>
- <property name="gretclasses" value="gretclasses"></property>
- <property name="user.region" value="US"></property>
- <property name="sun.cpu.isalist" value=""></property>
- </properties>
- <testcase name="testEquals" time="0.014"></testcase>
- <testcase name="testHashCode" time="0.0010"></testcase>
- <testcase name="testToString" time="0.0010"></testcase>
- <testcase name="testGetImageURL" time="0.0"></testcase>
- <testcase name="testGetCountry" time="0.0010"></testcase>
- <testcase name="testGetDenomination" time="0.0"></testcase>
- <testcase name="testGetYear" time="0.0"></testcase>
- <testcase name="testGetSubType" time="0.0"></testcase>
- <testcase name="testFail" time="0.0080">
- <failure message="DOEG" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: DOEG
- at sampleproject.coins.CoinTest.testFail(CoinTest.java:229)
-</failure>
- </testcase>
- <testcase name="testException" time="0.0010">
- <error message="RTE" type="java.lang.RuntimeException">java.lang.RuntimeException: RTE
- at sampleproject.coins.CoinTest.testException(CoinTest.java:234)
-</error>
- </testcase>
- <testcase name="testSuccess" time="0.0"></testcase>
- <system-out><![CDATA[testEquals
-testHashCode
-Hashcodes: 1434557225 1434557225 1434557226 1463186376 1434556908 1516980401 1434557225
-testToString
-<Coin=NL,1 Euro,1999,Var a/>
-<Coin=NL,1 Euro,1999,null/>
-testGetImageURL
-testGetCountry
-testGetDenomination
-testGetYear
-testGetSubType
-testFail
-testException
-testSuccess
-]]></system-out>
- <system-err><![CDATA[]]></system-err>
-</testsuite>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.util.UniqueStringTest.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.util.UniqueStringTest.xml
deleted file mode 100644
index f4016c26..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/TEST-sampleproject.util.UniqueStringTest.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testsuite errors="0" failures="0" name="sampleproject.util.UniqueStringTest" tests="5" time="0.038">
- <properties>
- <property name="testsrc" value="test/"></property>
- <property name="java.runtime.name" value="Java(TM) 2 Runtime Environment, Standard Edition"></property>
- <property name="sun.boot.library.path" value="/usr/java/jdk1.3.1_03/jre/lib/i386"></property>
- <property name="java.vm.version" value="1.3.1_03-b03"></property>
- <property name="ant.version" value="Apache Ant version 1.5 compiled on July 9 2002"></property>
- <property name="ant.java.version" value="1.3"></property>
- <property name="java.vm.vendor" value="Sun Microsystems Inc."></property>
- <property name="java.vendor.url" value="http://java.sun.com/"></property>
- <property name="path.separator" value=":"></property>
- <property name="java.vm.name" value="Java HotSpot(TM) Client VM"></property>
- <property name="file.encoding.pkg" value="sun.io"></property>
- <property name="classes" value="classes"></property>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"></property>
- <property name="user.dir" value="/home/jkf/programming/gretant_sourceforge/sampleproject"></property>
- <property name="java.runtime.version" value="1.3.1_03-b03"></property>
- <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"></property>
- <property name="basedir" value="/home/jkf/programming/gretant_sourceforge/sampleproject"></property>
- <property name="os.arch" value="i386"></property>
- <property name="java.io.tmpdir" value="/tmp"></property>
- <property name="line.separator" value="
-"></property>
- <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."></property>
- <property name="java.awt.fonts" value=""></property>
- <property name="os.name" value="Linux"></property>
- <property name="ant.home" value="/opt/jakarta-ant-1.5/"></property>
- <property name="ant.project.name" value="sample"></property>
- <property name="reportdir" value="reports"></property>
- <property name="java.library.path" value="/usr/java/jdk1.3.1_03/jre/lib/i386:/usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/:/usr/java/jdk1.3.1_03/jre/lib/i386/client:/usr/java/jdk1.3.1_03/jre/../lib/i386"></property>
- <property name="src" value="code/"></property>
- <property name="debug" value="on"></property>
- <property name="java.specification.name" value="Java Platform API Specification"></property>
- <property name="java.class.version" value="47.0"></property>
- <property name="os.version" value="2.4.18-5"></property>
- <property name="ant.file" value="/home/jkf/programming/gretant_sourceforge/sampleproject/build.xml"></property>
- <property name="unitreport" value="cl-unit.xml"></property>
- <property name="user.home" value="/home/jkf"></property>
- <property name="user.timezone" value="Europe/Amsterdam"></property>
- <property name="java.awt.printerjob" value="sun.awt.motif.PSPrinterJob"></property>
- <property name="java.specification.version" value="1.3"></property>
- <property name="file.encoding" value="ISO-8859-15"></property>
- <property name="java.class.path" value="/opt/jakarta-ant-1.5//lib/xml-apis.jar:/opt/jakarta-ant-1.5//lib/xercesImpl.jar:/opt/jakarta-ant-1.5//lib/xalan.jar:/opt/jakarta-ant-1.5//lib/optional.jar:/opt/jakarta-ant-1.5//lib/junit.jar:/opt/jakarta-ant-1.5//lib/Gretel.jar:/opt/jakarta-ant-1.5//lib/gretant.jar:/opt/jakarta-ant-1.5//lib/cup-runtime.jar:/opt/jakarta-ant-1.5//lib/bcel.jar:/opt/jakarta-ant-1.5//lib/ant.jar:/usr/java/jdk1.3/lib/tools.jar"></property>
- <property name="user.name" value="jkf"></property>
- <property name="coverreport" value="cl-cover.xml"></property>
- <property name="java.vm.specification.version" value="1.0"></property>
- <property name="java.home" value="/usr/java/jdk1.3.1_03/jre"></property>
- <property name="java.specification.vendor" value="Sun Microsystems Inc."></property>
- <property name="user.language" value="en"></property>
- <property name="java.vm.info" value="mixed mode"></property>
- <property name="java.version" value="1.3.1_03"></property>
- <property name="java.ext.dirs" value="/usr/java/jdk1.3.1_03/jre/lib/ext"></property>
- <property name="sun.boot.class.path" value="/usr/java/jdk1.3.1_03/jre/lib/rt.jar:/usr/java/jdk1.3.1_03/jre/lib/i18n.jar:/usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar:/usr/java/jdk1.3.1_03/jre/classes"></property>
- <property name="java.vendor" value="Sun Microsystems Inc."></property>
- <property name="file.separator" value="/"></property>
- <property name="testclasses" value="testclasses"></property>
- <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"></property>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"></property>
- <property name="sun.cpu.endian" value="little"></property>
- <property name="gretclasses" value="gretclasses"></property>
- <property name="user.region" value="US"></property>
- <property name="sun.cpu.isalist" value=""></property>
- </properties>
- <testcase name="testEquals" time="0.0"></testcase>
- <testcase name="testHashCode" time="0.0"></testcase>
- <testcase name="testToString" time="0.0010"></testcase>
- <testcase name="testgetUniqueString" time="0.0"></testcase>
- <testcase name="testSerialization" time="0.024"></testcase>
- <system-out><![CDATA[testEquals
-testHashCode
-testToString
-testgetUniqueString
-testSerialization
-]]></system-out>
- <system-err><![CDATA[]]></system-err>
-</testsuite>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/WRONGELEMENT-sampleproject.wrongelement.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/WRONGELEMENT-sampleproject.wrongelement.xml
deleted file mode 100644
index 9cb5a147..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/WRONGELEMENT-sampleproject.wrongelement.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<wildebeast/>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/ZEROBYTES-sampleproject.package.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/ZEROBYTES-sampleproject.package.xml
deleted file mode 100644
index e69de29b..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/ZEROBYTES-sampleproject.package.xml
+++ /dev/null
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/junit-frames.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/junit-frames.xsl
deleted file mode 100644
index ca313af9..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/junitreport/junit-frames.xsl
+++ /dev/null
@@ -1,879 +0,0 @@
-<?xml version="1.0"?>
-<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"
- xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"
- extension-element-prefixes="redirect">
-<xsl:output method="html" indent="yes" encoding="US-ASCII"/>
-<xsl:decimal-format decimal-separator="." grouping-separator=","/>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<!--
-
- Sample stylesheet to be used with Ant JUnitReport output.
-
- It creates a set of HTML files a la javadoc where you can browse easily
- through all packages and classes.
-
--->
-<xsl:param name="output.dir" select="'.'"/>
-<xsl:param name="key1" select="'defaultValue1'"/>
-<xsl:param name="key2" select="'defaultValue2'"/>
-
-<xsl:template match="testsuites">
- <!-- create the index.html -->
- <redirect:write file="{$output.dir}/index.html">
- <xsl:call-template name="index.html"/>
- </redirect:write>
-
- <!-- create the stylesheet.css -->
- <redirect:write file="{$output.dir}/stylesheet.css">
- <xsl:call-template name="stylesheet.css"/>
- </redirect:write>
-
- <!-- create the overview-packages.html at the root -->
- <redirect:write file="{$output.dir}/overview-summary.html">
- <xsl:apply-templates select="." mode="overview.packages"/>
- </redirect:write>
-
- <!-- create the all-packages.html at the root -->
- <redirect:write file="{$output.dir}/overview-frame.html">
- <xsl:apply-templates select="." mode="all.packages"/>
- </redirect:write>
-
- <!-- create the all-classes.html at the root -->
- <redirect:write file="{$output.dir}/allclasses-frame.html">
- <xsl:apply-templates select="." mode="all.classes"/>
- </redirect:write>
-
- <!-- create the all-tests.html at the root -->
- <redirect:write file="{$output.dir}/all-tests.html">
- <xsl:apply-templates select="." mode="all.tests"/>
- </redirect:write>
-
- <!-- create the alltests-fails.html at the root -->
- <redirect:write file="{$output.dir}/alltests-fails.html">
- <xsl:apply-templates select="." mode="all.tests">
- <xsl:with-param name="type" select="'fails'"/>
- </xsl:apply-templates>
- </redirect:write>
-
- <!-- create the alltests-errors.html at the root -->
- <redirect:write file="{$output.dir}/alltests-errors.html">
- <xsl:apply-templates select="." mode="all.tests">
- <xsl:with-param name="type" select="'errors'"/>
- </xsl:apply-templates>
- </redirect:write>
-
- <!-- process all packages -->
- <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
- <xsl:call-template name="package">
- <xsl:with-param name="name" select="@package"/>
- </xsl:call-template>
- </xsl:for-each>
-</xsl:template>
-
-
-<xsl:template name="package">
- <xsl:param name="name"/>
- <xsl:variable name="package.dir">
- <xsl:if test="not($name = '')"><xsl:value-of select="translate($name,'.','/')"/></xsl:if>
- <xsl:if test="$name = ''">.</xsl:if>
- </xsl:variable>
- <!--Processing package <xsl:value-of select="@name"/> in <xsl:value-of select="$output.dir"/> -->
- <!-- create a classes-list.html in the package directory -->
- <redirect:write file="{$output.dir}/{$package.dir}/package-frame.html">
- <xsl:call-template name="classes.list">
- <xsl:with-param name="name" select="$name"/>
- </xsl:call-template>
- </redirect:write>
-
- <!-- create a package-summary.html in the package directory -->
- <redirect:write file="{$output.dir}/{$package.dir}/package-summary.html">
- <xsl:call-template name="package.summary">
- <xsl:with-param name="name" select="$name"/>
- </xsl:call-template>
- </redirect:write>
-
- <!-- for each class, creates a @name.html -->
- <!-- @bug there will be a problem with inner classes having the same name, it will be overwritten -->
- <xsl:for-each select="/testsuites/testsuite[@package = $name]">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}.html">
- <xsl:apply-templates select="." mode="class.details"/>
- </redirect:write>
- <xsl:if test="string-length(./system-out)!=0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-out.txt">
- <xsl:value-of disable-output-escaping="yes" select="./system-out"/>
- </redirect:write>
- </xsl:if>
- <xsl:if test="string-length(./system-err)!=0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-err.txt">
- <xsl:value-of disable-output-escaping="yes" select="./system-err"/>
- </redirect:write>
- </xsl:if>
- <xsl:if test="@failures != 0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-fails.html">
- <xsl:apply-templates select="." mode="class.details">
- <xsl:with-param name="type" select="'fails'"/>
- </xsl:apply-templates>
- </redirect:write>
- </xsl:if>
- <xsl:if test="@errors != 0">
- <redirect:write file="{$output.dir}/{$package.dir}/{@id}_{@name}-errors.html">
- <xsl:apply-templates select="." mode="class.details">
- <xsl:with-param name="type" select="'errors'"/>
- </xsl:apply-templates>
- </redirect:write>
- </xsl:if>
- </xsl:for-each>
-</xsl:template>
-
-<xsl:template name="index.html">
-<html>
- <head>
- <title>
- Unit Test Results. key1=<xsl:value-of select="$key1"/>,key2=<xsl:value-of select="$key2"/>
- </title>
- </head>
- <frameset cols="20%,80%">
- <frameset rows="30%,70%">
- <frame src="overview-frame.html" name="packageListFrame"/>
- <frame src="allclasses-frame.html" name="classListFrame"/>
- </frameset>
- <frame src="overview-summary.html" name="classFrame"/>
- <noframes>
- <h2>Frame Alert</h2>
- <p>
- This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
- </p>
- </noframes>
- </frameset>
-</html>
-</xsl:template>
-
-<!-- this is the stylesheet css to use for nearly everything -->
-<xsl:template name="stylesheet.css">
-body {
- font:normal 68% verdana,arial,helvetica;
- color:#000000;
-}
-table tr td, table tr th {
- font-size: 68%;
-}
-table.details tr th{
- font-weight: bold;
- text-align:left;
- background:#a6caf0;
-}
-table.details tr td{
- background:#eeeee0;
-}
-
-p {
- line-height:1.5em;
- margin-top:0.5em; margin-bottom:1.0em;
-}
-h1 {
- margin: 0px 0px 5px; font: 165% verdana,arial,helvetica
-}
-h2 {
- margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica
-}
-h3 {
- margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica
-}
-h4 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
-}
-h5 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
-}
-h6 {
- margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
-}
-.Error {
- font-weight:bold; color:red;
-}
-.Failure {
- font-weight:bold; color:purple;
-}
-.Properties {
- text-align:right;
-}
-</xsl:template>
-
-<!-- Create list of all/failed/errored tests -->
-<xsl:template match="testsuites" mode="all.tests">
- <xsl:param name="type" select="'all'"/>
- <html>
- <xsl:variable name="title">
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <xsl:text>All Failures</xsl:text>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <xsl:text>All Errors</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>All Tests</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <head>
- <title>Unit Test Results: <xsl:value-of select="$title"/></title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <xsl:attribute name="onload">open('allclasses-frame.html','classListFrame')</xsl:attribute>
- <xsl:call-template name="pageHeader"/>
- <h2><xsl:value-of select="$title"/></h2>
-
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testcase.test.header">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:call-template>
- <!--
- test can even not be started at all (failure to load the class)
- so report the error directly
- -->
- <xsl:if test="./error">
- <tr class="Error">
- <td colspan="4">
- <xsl:apply-templates select="./error"/>
- </td>
- </tr>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <xsl:apply-templates select=".//testcase[failure]" mode="print.test">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <xsl:apply-templates select=".//testcase[error]" mode="print.test">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select=".//testcase" mode="print.test">
- <xsl:with-param name="show.class" select="'yes'"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </body>
- </html>
-</xsl:template>
-
-
-<!-- ======================================================================
- This page is created for every testsuite class.
- It prints a summary of the testsuite and detailed information about
- testcase methods.
- ====================================================================== -->
-<xsl:template match="testsuite" mode="class.details">
- <xsl:param name="type" select="'all'"/>
- <xsl:variable name="package.name" select="@package"/>
- <xsl:variable name="class.name"><xsl:if test="not($package.name = '')"><xsl:value-of select="$package.name"/>.</xsl:if><xsl:value-of select="@name"/></xsl:variable>
- <html>
- <head>
- <title>Unit Test Results: <xsl:value-of select="$class.name"/></title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name" select="$package.name"/>
- </xsl:call-template>
- <script type="text/javascript" language="JavaScript">
- var TestCases = new Array();
- var cur;
- <xsl:apply-templates select="properties"/>
- </script>
- <script type="text/javascript" language="JavaScript"><![CDATA[
- function displayProperties (name) {
- var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
- var doc = win.document;
- doc.open();
- doc.write("<html><head><title>Properties of " + name + "</title>");
- doc.write("<style type=\"text/css\">");
- doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");
- doc.write("table tr td, table tr th { font-size: 68%; }");
- doc.write("table.properties { border-collapse:collapse; border-left:solid 1 #cccccc; border-top:solid 1 #cccccc; padding:5px; }");
- doc.write("table.properties th { text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#eeeeee; }");
- doc.write("table.properties td { font:normal; text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#fffffff; }");
- doc.write("h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica }");
- doc.write("</style>");
- doc.write("</head><body>");
- doc.write("<h3>Properties of " + name + "</h3>");
- doc.write("<div align=\"right\"><a href=\"javascript:window.close();\">Close</a></div>");
- doc.write("<table class='properties'>");
- doc.write("<tr><th>Name</th><th>Value</th></tr>");
- for (prop in TestCases[name]) {
- doc.write("<tr><th>" + prop + "</th><td>" + TestCases[name][prop] + "</td></tr>");
- }
- doc.write("</table>");
- doc.write("</body></html>");
- doc.close();
- win.focus();
- }
- ]]>
- </script>
- </head>
- <body>
- <xsl:call-template name="pageHeader"/>
- <h3>Class <xsl:value-of select="$class.name"/></h3>
-
-
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <xsl:apply-templates select="." mode="print.test"/>
- </table>
-
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <h2>Failures</h2>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <h2>Errors</h2>
- </xsl:when>
- <xsl:otherwise>
- <h2>Tests</h2>
- </xsl:otherwise>
- </xsl:choose>
- <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:if test="./error">
- <tr class="Error">
- <td colspan="4"><xsl:apply-templates select="./error"/></td>
- </tr>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$type = 'fails'">
- <xsl:apply-templates select="./testcase[failure]" mode="print.test"/>
- </xsl:when>
- <xsl:when test="$type = 'errors'">
- <xsl:apply-templates select="./testcase[error]" mode="print.test"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="./testcase" mode="print.test"/>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- <div class="Properties">
- <a>
- <xsl:attribute name="href">javascript:displayProperties('<xsl:value-of select="@package"/>.<xsl:value-of select="@name"/>');</xsl:attribute>
- Properties &#187;
- </a>
- </div>
- <xsl:if test="string-length(./system-out)!=0">
- <div class="Properties">
- <a>
- <xsl:attribute name="href">./<xsl:value-of select="@id"/>_<xsl:value-of select="@name"/>-out.txt</xsl:attribute>
- System.out &#187;
- </a>
- </div>
- </xsl:if>
- <xsl:if test="string-length(./system-err)!=0">
- <div class="Properties">
- <a>
- <xsl:attribute name="href">./<xsl:value-of select="@id"/>_<xsl:value-of select="@name"/>-err.txt</xsl:attribute>
- System.err &#187;
- </a>
- </div>
- </xsl:if>
- </body>
- </html>
-</xsl:template>
-
- <!--
- Write properties into a JavaScript data structure.
- This is based on the original idea by Erik Hatcher (ehatcher@apache.org)
- -->
- <xsl:template match="properties">
- cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array();
- <xsl:for-each select="property">
- <xsl:sort select="@name"/>
- cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>';
- </xsl:for-each>
- </xsl:template>
-
-
-<!-- ======================================================================
- This page is created for every package.
- It prints the name of all classes that belongs to this package.
- @param name the package name to print classes.
- ====================================================================== -->
-<!-- list of classes in a package -->
-<xsl:template name="classes.list">
- <xsl:param name="name"/>
- <html>
- <head>
- <title>Unit Test Classes: <xsl:value-of select="$name"/></title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name" select="$name"/>
- </xsl:call-template>
- </head>
- <body>
- <table width="100%">
- <tr>
- <td nowrap="nowrap">
- <h2><a href="package-summary.html" target="classFrame">
- <xsl:value-of select="$name"/>
- <xsl:if test="$name = ''">&lt;none&gt;</xsl:if>
- </a></h2>
- </td>
- </tr>
- </table>
-
- <h2>Classes</h2>
- <table width="100%">
- <xsl:for-each select="/testsuites/testsuite[./@package = $name]">
- <xsl:sort select="@name"/>
- <tr>
- <td nowrap="nowrap">
- <a href="{@id}_{@name}.html" target="classFrame"><xsl:value-of select="@name"/></a>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
-</xsl:template>
-
-
-<!--
- Creates an all-classes.html file that contains a link to all package-summary.html
- on each class.
--->
-<xsl:template match="testsuites" mode="all.classes">
- <html>
- <head>
- <title>All Unit Test Classes</title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <h2>Classes</h2>
- <table width="100%">
- <xsl:apply-templates select="testsuite" mode="all.classes">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </table>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="testsuite" mode="all.classes">
- <xsl:variable name="package.name" select="@package"/>
- <tr>
- <td nowrap="nowrap">
- <a target="classFrame">
- <xsl:attribute name="href">
- <xsl:if test="not($package.name='')">
- <xsl:value-of select="translate($package.name,'.','/')"/><xsl:text>/</xsl:text>
- </xsl:if><xsl:value-of select="@id"/>_<xsl:value-of select="@name"/><xsl:text>.html</xsl:text>
- </xsl:attribute>
- <xsl:value-of select="@name"/>
- </a>
- </td>
- </tr>
-</xsl:template>
-
-
-<!--
- Creates an html file that contains a link to all package-summary.html files on
- each package existing on testsuites.
- @bug there will be a problem here, I don't know yet how to handle unnamed package :(
--->
-<xsl:template match="testsuites" mode="all.packages">
- <html>
- <head>
- <title>All Unit Test Packages</title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <h2><a href="overview-summary.html" target="classFrame">Home</a></h2>
- <h2>Packages</h2>
- <table width="100%">
- <xsl:apply-templates select="testsuite[not(./@package = preceding-sibling::testsuite/@package)]" mode="all.packages">
- <xsl:sort select="@package"/>
- </xsl:apply-templates>
- </table>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="testsuite" mode="all.packages">
- <tr>
- <td nowrap="nowrap">
- <a href="./{translate(@package,'.','/')}/package-summary.html" target="classFrame">
- <xsl:value-of select="@package"/>
- <xsl:if test="@package = ''">&lt;none&gt;</xsl:if>
- </a>
- </td>
- </tr>
-</xsl:template>
-
-
-<xsl:template match="testsuites" mode="overview.packages">
- <html>
- <head>
- <title>Unit Test Results: Summary</title>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name"/>
- </xsl:call-template>
- </head>
- <body>
- <xsl:attribute name="onload">open('allclasses-frame.html','classListFrame')</xsl:attribute>
- <xsl:call-template name="pageHeader"/>
- <h2>Summary</h2>
- <xsl:variable name="testCount" select="sum(testsuite/@tests)"/>
- <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/>
- <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/>
- <xsl:variable name="timeCount" select="sum(testsuite/@time)"/>
- <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <tr valign="top">
- <th>Tests</th>
- <th>Failures</th>
- <th>Errors</th>
- <th>Success rate</th>
- <th>Time</th>
- </tr>
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="$errorCount &gt; 0">Error</xsl:when>
- <xsl:when test="$failureCount &gt; 0">Failure</xsl:when>
- <xsl:otherwise>Pass</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <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 errors" href="alltests-errors.html"><xsl:value-of select="$errorCount"/></a></td>
- <td>
- <xsl:call-template name="display-percent">
- <xsl:with-param name="value" select="$successRate"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="$timeCount"/>
- </xsl:call-template>
- </td>
- </tr>
- </table>
- <table border="0" width="95%">
- <tr>
- <td style="text-align: justify;">
- Note: <em>failures</em> are anticipated and checked for with assertions while <em>errors</em> are unanticipated.
- </td>
- </tr>
- </table>
-
- <h2>Packages</h2>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <xsl:for-each select="testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
- <xsl:sort select="@package" order="ascending"/>
- <!-- get the node set containing all testsuites that have the same package -->
- <xsl:variable name="insamepackage" select="/testsuites/testsuite[./@package = current()/@package]"/>
- <tr valign="top">
- <!-- display a failure if there is any failure/error in the package -->
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="sum($insamepackage/@errors) &gt; 0">Error</xsl:when>
- <xsl:when test="sum($insamepackage/@failures) &gt; 0">Failure</xsl:when>
- <xsl:otherwise>Pass</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td><a href="./{translate(@package,'.','/')}/package-summary.html">
- <xsl:value-of select="@package"/>
- <xsl:if test="@package = ''">&lt;none&gt;</xsl:if>
- </a></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/@failures)"/></td>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="sum($insamepackage/@time)"/>
- </xsl:call-template>
- </td>
- <td><xsl:value-of select="$insamepackage/@timestamp"/></td>
- <td><xsl:value-of select="$insamepackage/@hostname"/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
-</xsl:template>
-
-
-<xsl:template name="package.summary">
- <xsl:param name="name"/>
- <html>
- <head>
- <xsl:call-template name="create.stylesheet.link">
- <xsl:with-param name="package.name" select="$name"/>
- </xsl:call-template>
- </head>
- <body>
- <xsl:attribute name="onload">open('package-frame.html','classListFrame')</xsl:attribute>
- <xsl:call-template name="pageHeader"/>
- <h3>Package <xsl:value-of select="$name"/></h3>
-
- <!--table border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="class.metrics.header"/>
- <xsl:apply-templates select="." mode="print.metrics"/>
- </table-->
-
- <xsl:variable name="insamepackage" select="/testsuites/testsuite[./@package = $name]"/>
- <xsl:if test="count($insamepackage) &gt; 0">
- <h2>Classes</h2>
- <p>
- <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
- <xsl:call-template name="testsuite.test.header"/>
- <xsl:apply-templates select="$insamepackage" mode="print.test">
- <xsl:sort select="@name"/>
- </xsl:apply-templates>
- </table>
- </p>
- </xsl:if>
- </body>
- </html>
-</xsl:template>
-
-
-<!--
- transform string like a.b.c to ../../../
- @param path the path to transform into a descending directory path
--->
-<xsl:template name="path">
- <xsl:param name="path"/>
- <xsl:if test="contains($path,'.')">
- <xsl:text>../</xsl:text>
- <xsl:call-template name="path">
- <xsl:with-param name="path"><xsl:value-of select="substring-after($path,'.')"/></xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="not(contains($path,'.')) and not($path = '')">
- <xsl:text>../</xsl:text>
- </xsl:if>
-</xsl:template>
-
-
-<!-- create the link to the stylesheet based on the package name -->
-<xsl:template name="create.stylesheet.link">
- <xsl:param name="package.name"/>
- <link rel="stylesheet" type="text/css" title="Style"><xsl:attribute name="href"><xsl:if test="not($package.name = 'unnamed package')"><xsl:call-template name="path"><xsl:with-param name="path" select="$package.name"/></xsl:call-template></xsl:if>stylesheet.css</xsl:attribute></link>
-</xsl:template>
-
-
-<!-- Page HEADER -->
-<xsl:template name="pageHeader">
- <h1>Unit Test Results</h1>
- <table width="100%">
- <tr>
- <td align="left"></td>
- <td align="right">Designed for use with <a href="http://www.junit.org/">JUnit</a> and <a href="http://ant.apache.org/">Ant</a>.</td>
- </tr>
- </table>
- <hr size="1"/>
-</xsl:template>
-
-<!-- class header -->
-<xsl:template name="testsuite.test.header">
- <tr valign="top">
- <th width="80%">Name</th>
- <th>Tests</th>
- <th>Errors</th>
- <th>Failures</th>
- <th nowrap="nowrap">Time(s)</th>
- <th nowrap="nowrap">Time Stamp</th>
- <th>Host</th>
- </tr>
-</xsl:template>
-
-<!-- method header -->
-<xsl:template name="testcase.test.header">
- <xsl:param name="show.class" select="''"/>
- <tr valign="top">
- <xsl:if test="boolean($show.class)">
- <th>Class</th>
- </xsl:if>
- <th>Name</th>
- <th>Status</th>
- <th width="80%">Type</th>
- <th nowrap="nowrap">Time(s)</th>
- </tr>
-</xsl:template>
-
-
-<!-- class information -->
-<xsl:template match="testsuite" mode="print.test">
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@errors[.&gt; 0]">Error</xsl:when>
- <xsl:when test="@failures[.&gt; 0]">Failure</xsl:when>
- <xsl:otherwise>Pass</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td><a title="Display all tests" href="{@id}_{@name}.html"><xsl:value-of select="@name"/></a></td>
- <td><a title="Display all tests" href="{@id}_{@name}.html"><xsl:apply-templates select="@tests"/></a></td>
- <td>
- <xsl:choose>
- <xsl:when test="@errors != 0">
- <a title="Display only errors" href="{@id}_{@name}-errors.html"><xsl:apply-templates select="@errors"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="@errors"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="@failures != 0">
- <a title="Display only failures" href="{@id}_{@name}-fails.html"><xsl:apply-templates select="@failures"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="@failures"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td><xsl:call-template name="display-time">
- <xsl:with-param name="value" select="@time"/>
- </xsl:call-template>
- </td>
- <td><xsl:apply-templates select="@timestamp"/></td>
- <td><xsl:apply-templates select="@hostname"/></td>
- </tr>
-</xsl:template>
-
-<xsl:template match="testcase" mode="print.test">
- <xsl:param name="show.class" select="''"/>
- <tr valign="top">
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="error">Error</xsl:when>
- <xsl:when test="failure">Failure</xsl:when>
- <xsl:otherwise>TableRowColor</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:variable name="class.href">
- <xsl:value-of select="concat(translate(../@package,'.','/'), '/', ../@id, '_', ../@name, '.html')"/>
- </xsl:variable>
- <xsl:if test="boolean($show.class)">
- <td><a href="{$class.href}"><xsl:value-of select="../@name"/></a></td>
- </xsl:if>
- <td>
- <a name="{@name}"/>
- <xsl:choose>
- <xsl:when test="boolean($show.class)">
- <a href="{concat($class.href, '#', @name)}"><xsl:value-of select="@name"/></a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@name"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <xsl:choose>
- <xsl:when test="failure">
- <td>Failure</td>
- <td><xsl:apply-templates select="failure"/></td>
- </xsl:when>
- <xsl:when test="error">
- <td>Error</td>
- <td><xsl:apply-templates select="error"/></td>
- </xsl:when>
- <xsl:otherwise>
- <td>Success</td>
- <td></td>
- </xsl:otherwise>
- </xsl:choose>
- <td>
- <xsl:call-template name="display-time">
- <xsl:with-param name="value" select="@time"/>
- </xsl:call-template>
- </td>
- </tr>
-</xsl:template>
-
-
-<!-- Note : the below template error and failure are the same style
- so just call the same style store in the toolkit template -->
-<xsl:template match="failure">
- <xsl:call-template name="display-failures"/>
-</xsl:template>
-
-<xsl:template match="error">
- <xsl:call-template name="display-failures"/>
-</xsl:template>
-
-<!-- Style for the error and failure in the testcase template -->
-<xsl:template name="display-failures">
- <xsl:choose>
- <xsl:when test="not(@message)">N/A</xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@message"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- display the stacktrace -->
- <br/><br/>
- <code>
- <xsl:call-template name="br-replace">
- <xsl:with-param name="word" select="."/>
- </xsl:call-template>
- </code>
- <!-- the latter is better but might be problematic for non-21" monitors... -->
- <!--pre><xsl:value-of select="."/></pre-->
-</xsl:template>
-
-<xsl:template name="JS-escape">
- <xsl:param name="string"/>
- <xsl:param name="tmp1" select="stringutils:replace(string($string),'\','\\')"/>
- <xsl:param name="tmp2" select="stringutils:replace(string($tmp1),&quot;'&quot;,&quot;\&apos;&quot;)"/>
- <xsl:value-of select="$tmp2"/>
-</xsl:template>
-
-
-<!--
- template that will convert a carriage return into a br tag
- @param word the text from which to convert CR to BR tag
--->
-<xsl:template name="br-replace">
- <xsl:param name="word"/>
- <xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
-</xsl:template>
-
-<xsl:template name="display-time">
- <xsl:param name="value"/>
- <xsl:value-of select="format-number($value,'0.000')"/>
-</xsl:template>
-
-<xsl:template name="display-percent">
- <xsl:param name="value"/>
- <xsl:value-of select="format-number($value,'0.00%')"/>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/build.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/build.xml
deleted file mode 100644
index 27b40313..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/build.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project default="no">
-
- <import file="../../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}"/>
- </target>
-
- <property name="in" location="input"/>
-
- <target name="no">
- <fail>For tests only</fail>
- </target>
-
- <target name="testIso8859-1" depends="setUp">
- <native2ascii encoding="ISO8859-1" dest="${output}"
- src="${in}" includes="iso8859-1.*"/>
- </target>
-</project>
- \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/expected/iso8859-1.test b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/expected/iso8859-1.test
deleted file mode 100644
index d60acc83..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/expected/iso8859-1.test
+++ /dev/null
@@ -1 +0,0 @@
-\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/input/iso8859-1.test b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/input/iso8859-1.test
deleted file mode 100644
index d5b3934f..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/native2ascii/input/iso8859-1.test
+++ /dev/null
@@ -1 +0,0 @@
-äöüÄÖÜß \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/net/ftp.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/net/ftp.xml
deleted file mode 100644
index aaf4b8e6..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/net/ftp.xml
+++ /dev/null
@@ -1,331 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="ftp-test" basedir=".">
- <property file="../../../../../../ftp.properties"/>
- <property environment="env"/>
- <property file="${env.HOME}/ant-ftp.properties"/>
- <property name="ftp.user" value="${user.name}"/>
- <property name="ftp.host" value="localhost"/>
- <property name="ftp.port" value="21" />
- <property name="ftp.password" value="sunshine" />
- <property name="ftp.filesep" value="/"/>
- <property name="tmp.dir" location="tmp"/>
- <property name="tmp.get.dir" location="tmp.get"/>
- <property name="tmp.local" location="${tmp.get.dir}"/>
- <property name="tmp.remote" location="${tmp.dir}"/>
- <property name="tstamp.format" value="yyyy-MM-dd HH:mm"/>
- <property name="server.timestamp.granularity.millis" value="60000"/>
- <property name="ftp.server.timezone" value="GMT"/>
- <property name="ftp.listing.file" value="/dev/null"/>
- <property name="ftp.retries" value="2"/>
-
- <fileset dir="${tmp.get.dir}" id="fileset-destination-with-selector">
- <include name="alpha/**"/>
- <filename name="**/alpha.xml" />
- </fileset>
- <fileset dir="${tmp.dir}" id="fileset-source-without-selector">
- <include name="alpha/**"/>
- </fileset>
- <fileset dir="${tmp.get.dir}" id="fileset-destination-without-selector">
- <include name="alpha/**"/>
- </fileset>
- <fileset dir="${tmp.get.dir}" id="fileset-destination-followsymlinks" followsymlinks="true">
- <include name="alpha/**"/>
- </fileset>
- <fileset dir="${tmp.get.dir}" id="fileset-destination-nofollowsymlinks" followsymlinks="false">
- <include name="alpha/**"/>
- </fileset>
-
- <filelist dir="${tmp.local}" id="timed-files" files="A.timed,B.timed,C.timed,D.timed"/>
-
- <patternset id="timed-test-files">
- <include name="A.timed"/>
- <include name="B.timed"/>
- <include name="C.timed"/>
- <include name="D.timed"/>
- </patternset>
-
- <target name="setup">
- <mkdir dir="${tmp.get.dir}"/>
- <mkdir dir="${tmp.dir}/alpha/beta/gamma"/>
- <touch file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
- <touch file="${tmp.dir}/alpha/beta/beta.xml"/>
- </target>
-
- <target name="ftp-get-with-selector">
- <ftp action="get"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.dir}">
- <fileset refid="fileset-destination-with-selector"/>
- </ftp>
- </target>
- <target name="children-of-excluded-dir-setup" depends="setup">
- <mkdir dir="${tmp.dir}/delta"/>
- <touch file="${tmp.dir}/delta/delta.xml"/>
- </target>
- <target name="cleanup">
- <delete dir="${tmp.dir}" quiet="true"/>
- <delete dir="${tmp.get.dir}" quiet="true"/>
- </target>
- <target name="symlink-setup" depends="setup">
- <mkdir dir="${tmp.dir}/epsilon/gamma"/>
- <delete dir="${tmp.dir}/alpha/beta"/>
- <symlink link="${tmp.dir}/alpha/beta" resource="${tmp.dir}/epsilon"/>
- <touch file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
- </target>
- <target name="ftp-get-directory-symbolic-link" depends="symlink-setup">
- <ftp action="get"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.dir}"
- >
- <fileset refid="fileset-destination-followsymlinks"/>
- </ftp>
- </target>
- <target name="ftp-get-directory-no-symbolic-link" depends="symlink-setup">
- <ftp action="get"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.dir}"
- >
- <fileset refid="fileset-destination-nofollowsymlinks"/>
- </ftp>
- </target>
- <target name="symlink-file-setup" depends="setup">
- <delete file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
- <symlink link="${tmp.dir}/alpha/beta/gamma/gamma.xml"
- resource="${tmp.dir}/alpha/beta/beta.xml"/>
- </target>
- <target name="ftp-delete">
- <!-- this target can produce an error if the rmdir does not work -->
- <!-- there can be problems with the rmdir action if the directories are not removed in a proper order -->
- <!-- which means beginning by the leaves of the tree, going back to the trunk -->
- <ftp action="del"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- remotedir="${tmp.dir}">
- <fileset dir="${tmp.get.dir}">
- <include name="**"/>
- </fileset>
- </ftp>
- <ftp action="rmdir"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- remotedir="${tmp.dir}">
- <fileset dir="${tmp.get.dir}">
- <include name="**"/>
- </fileset>
- </ftp>
- </target>
-
- <target name="timed.test.setup">
- <touch>
- <filelist refid="timed-files"/>
- </touch>
- <ftp action="put"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- >
- <fileset dir="${tmp.local}">
- <patternset refid="timed-test-files"/>
- </fileset>
- </ftp>
- </target>
-
- <target name="timed.test.put.older">
- <tstamp>
- <format property="one.minute.older" pattern="${tstamp.format}" offset="-60" unit="second"/>
- </tstamp>
-
- <touch datetime="${one.minute.older}" pattern="${tstamp.format}" verbose="true">
- <fileset dir="${tmp.remote}">
- <include name="A.timed"/>
- </fileset>
- </touch>
- <ftp action="put"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- newer="true"
- serverTimeZoneConfig="${ftp.server.timezone}"
- >
- <fileset dir="${tmp.local}">
- <patternset refid="timed-test-files"/>
- </fileset>
- </ftp>
- </target>
- <target name="timed.test.get.older">
- <tstamp>
- <format property="five.minutes.older" pattern="${tstamp.format}" offset="-5" unit="minute"/>
- </tstamp>
-
- <touch datetime="${five.minutes.older}" pattern="${tstamp.format}" verbose="true">
- <fileset dir="${tmp.local}">
- <include name="A.timed"/>
- <include name="C.timed"/>
- <include name="D.timed"/>
- </fileset>
- </touch>
- <ftp action="get"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- preservelastmodified="true"
- newer="true"
- serverTimeZoneConfig="${ftp.server.timezone}"
- >
- <fileset dir="${tmp.local}">
- <patternset refid="timed-test-files"/>
- </fileset>
- </ftp>
- </target>
-
- <target name="configuration.1">
- <ftp action="list"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- serverTimeZoneConfig="${ftp.server.timezone}"
- listing="${ftp.listing.file}"
- >
- <fileset dir="${tmp.local}"/>
- </ftp>
- </target>
- <target name="configuration.2">
- <ftp action="list"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- serverTimeZoneConfig="${ftp.server.timezone}"
- listing="${ftp.listing.file}"
- systemTypeKey="WINDOWS"
- >
- <fileset dir="${tmp.local}"/>
- </ftp>
- </target>
- <target name="configuration.3">
- <ftp action="list"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- defaultDateFormatConfig="yyyy/MM/dd HH:mm"
- listing="${ftp.listing.file}"
- systemTypeKey="UNIX"
- >
- <fileset dir="${tmp.local}"/>
- </ftp>
- </target>
- <target name="configuration.lang.good">
- <ftp action="list"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- serverLanguageCodeConfig="de"
- listing="${ftp.listing.file}"
- >
- <fileset dir="${tmp.local}"/>
- </ftp>
- </target>
- <target name="configuration.lang.bad">
- <ftp action="list"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- serverLanguageCodeConfig="QQ"
- listing="${ftp.listing.file}"
- >
- <fileset dir="${tmp.local}"/>
- </ftp>
- </target>
- <target name="configuration.none">
- <ftp action="list"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- listing="${ftp.listing.file}"
- >
- <fileset dir="${tmp.local}"/>
- </ftp>
- </target>
- <target name="ftp-get-with-selector-retryable">
- <ftp action="get"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.dir}"
- retriesAllowed="${ftp.retries}"
- >
- <fileset refid="fileset-destination-with-selector"/>
- </ftp>
- </target>
- <target name="test-initial-command">
- <ftp action="put"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- initialSiteCommand="umask 222"
- >
- <fileset dir="${tmp.local}">
- <patternset refid="timed-test-files"/>
- </fileset>
- </ftp>
- </target>
-
- <target name="test-site-action">
- <ftp action="site"
- server="${ftp.host}"
- userid="${ftp.user}"
- password="${ftp.password}"
- separator="${ftp.filesep}"
- remotedir="${tmp.remote}"
- siteCommand="umask 222"
- >
- </ftp>
- </target>
-</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/propertyfile.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/propertyfile.xml
deleted file mode 100644
index 20a17271..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/propertyfile.xml
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="propertyfile-test" default="main" basedir=".">
-
- <import file="../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- </target>
-
- <property file="${output}/propertyfile.build.properties"/>
-
- <target name="main">
- <fail>
- This file is for testing purposes only...
- @see PropertyFileTest.java for more info.
- </fail>
- </target>
-
- <target name="update-existing-properties">
- <propertyfile
- file="${output}/${test.propertyfile}"
- comment="unit test for the property file task..." >
- <entry key="firstname" value="${firstname}" />
- <entry key="lastname" value="${lastname}" />
- <entry key="email" value="${email}" />
- <entry key="phone" default="${phone}" />
- <entry key="age" default="${age}" type="int"/>
- <entry key="date" default="${date}" type="date"/>
- </propertyfile>
- </target>
-
- <target name="delete-properties">
- <echoproperties/>
- <propertyfile
- file="${output}/${test.propertyfile}"
- comment="unit test for the property file task..." >
- <entry key="firstname" operation="del" />
- </propertyfile>
- </target>
-
- <target name="exercise">
- <propertyfile file="${output}/${test.propertyfile}">
- <entry key="existing.prop"
- type="int"
- default="23"/>
- <entry key="ethans.birth"
- value="2002/01/21 12:18"
- type="date"/>
- <entry key="first.birthday"
- value="1"
- default="2002/01/21"
- pattern="yyyy/MM/dd"
- unit="year"
- type="date"
- operation="+"/>
- <entry key="int.with.default"
- value="1"
- default="2"
- operation="+"
- type="int"/>
- <entry key="int.without.value"
- default="5"
- operation="+"
- type="int"/>
- <entry key="int.without.default"
- value="1"
- operation="+"
- type="int"/>
- <entry key="string.with.default"
- value="&gt;"
- default="--"
- operation="+"/>
- <entry key="string.without.default"
- value="."
- operation="+"/>
- <entry key="olderThanAWeek"
- type="date"
- default="0201"
- operation="-"
- value="8"
- pattern="MMdd"/>
- </propertyfile>
- <property file="${output}/${test.propertyfile}"/>
- </target>
-
- <target name="createfile">
- <echo file="${output}/${overwrite.test.propertyfile}">
- foo=3
- </echo>
- </target>
-
- <target name="bugDemo1" depends="createfile,bugDemoInit"/>
-
- <target name="bugDemo2" depends="bugDemoInit">
- <property file="${output}/${overwrite.test.propertyfile}"/>
- </target>
-
- <target name="bugDemoInit">
- <propertyfile file="${output}/${overwrite.test.propertyfile}">
- <entry key="foo" default="0" value="1" operation="+" type="int"/>
- </propertyfile>
- </target>
-
-</project>
-
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/pvcs.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/pvcs.xml
deleted file mode 100644
index 99bfcff4..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/pvcs.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="pvcs-test" basedir="." default="test1">
-
- <taskdef name="pvcs" classname="org.apache.tools.ant.taskdefs.Pvcs"/>
-
- <target name="test1">
- <pvcs/>
- </target>
-
- <target name="test2">
- <pvcs pvcsbin="/home/tc/projects/pvcsant/src/etc/testcases/taskdefs" repository="/mnt/pvcs"/>
- </target>
-
- <target name="test3">
- <pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" repository="/mnt/pvcs" pvcsproject="/qviknet"/>
- </target>
-
- <target name="test4">
- <pvcs pvcsbin="\home\cvs\pvcsant\src\etc\testcases\taskdefs" repository="/mnt/pvcs" pvcsproject="/qviknet" workspace="/@/Public/buildws"/>
- </target>
-
- <target name="test5" description="Get the latest from PVCS">
- <pvcs pvcsbin="/home/cvs/pvcsant/src/etc/testcases/taskdefs"
- repository="//ct4serv2/pvcs/monitor"/>
- </target>
-
- <target name="test6" description="No pcli to be found">
- <pvcs pvcsbin="/never/heard/of/a/directory/structure/like/this"
- repository="//ct4serv2/pvcs/monitor"/>
- </target>
-
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.properties b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.properties
deleted file mode 100644
index d7f057e6..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-OldAbc=Def
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.xml
deleted file mode 100644
index 58fdc59c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="test" default="def" basedir=".">
- <import file="../../buildfiletest-base.xml"/>
-
- <property name="root" location="../../../../.."/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- <copy file="replaceregexp.properties" tofile="${output}/test.properties" />
- </target>
-
- <target name="def">
- <fail>This build file should only be run from within the testcase</fail>
- </target>
-
- <target name="setUp-nl">
- <mkdir dir="${output}" />
- <copy file="replaceregexp2.properties" tofile="${output}/test.properties" />
- </target>
-
- <target name="testReplace" depends="setUp">
- <replaceregexp file="${output}/test.properties" byline="true">
- <regexp pattern="Old(.*)=(.*)" />
- <substitution expression="NewProp=\1\2" />
- </replaceregexp>
- </target>
- <!-- use in conjunction with testDirectoryDateDoesNotChange to make sure something will happen -->
- <target name="touchDirectory">
- <copy file="replaceregexp.properties" tofile="${output}/test.properties" />
-
- </target>
- <target name="testDirectoryDateDoesNotChange">
- <replaceregexp file="${output}/test.properties" byline="true">
- <regexp pattern="foo" />
- <substitution expression="bar"/>
- </replaceregexp>
- </target>
-
- <target name="testDontAddNewline1" depends="setUp-nl">
- <replaceregexp file="${output}/test.properties" byline="false">
- <regexp pattern="Old(.*)=(.*)" />
- <substitution expression="NewProp=\1\2" />
- </replaceregexp>
- </target>
-
- <target name="testDontAddNewline2" depends="setUp-nl">
- <replaceregexp file="${output}/test.properties" byline="true">
- <regexp pattern="Old(.*)=(.*)" />
- <substitution expression="NewProp=\1\2" />
- </replaceregexp>
- </target>
-
- <target name="lastModifiedSetup">
- <echo file="${output}/test.txt">Hello, world!</echo>
- </target>
-
- <target name="testNoPreserve">
- <replaceregexp match="world" replace="Ant" file="${output}/test.txt"/>
- </target>
-
- <target name="testPreserve">
- <replaceregexp match="world" replace="Ant" file="${output}/test.txt"
- preserveLastModified="true"/>
- </target>
-
-</project>
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.properties b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.properties
deleted file mode 100644
index ada77277..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-OldAbc=Def \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.result.properties b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.result.properties
deleted file mode 100644
index 6393cd7a..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/replaceregexp2.result.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-NewProp=AbcDef \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/schemavalidate.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/schemavalidate.xml
deleted file mode 100644
index f43201e7..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/schemavalidate.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="validate" default="default" basedir=".">
-
-
- <property name="doc.xsd" location="xml/doc.xsd"/>
- <property name="doc-in-ns.xsd" location="xml/doc-in-ns.xsd"/>
- <property name="namespace" value="http://apache.org/ant/doc/" />
-
- <property name="endpiece-ns-no-location.xml"
- location="xml/endpiece-ns-no-location.xml"/>
-
- <target name="testNoNamespace">
- <schemavalidate
- noNamespaceFile="${doc.xsd}"
- file="xml/endpiece-noSchema.xml">
- </schemavalidate>
- </target>
-
- <target name="testNSMapping">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="${namespace}" file="${doc-in-ns.xsd}" />
- <schema namespace="http://apache.org/ant/2"
- url="http://ant.apache.org/" />
- </schemavalidate>
- </target>
-
- <target name="testNoEmptySchemaNamespace">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="" file="${doc-in-ns.xsd}" />
- </schemavalidate>
- </target>
-
- <target name="testNoEmptySchemaLocation">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="${namespace}" />
- </schemavalidate>
- </target>
-
- <target name="testNoFile">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="${namespace}" file="${namespace}" />
- </schemavalidate>
- </target>
-
- <target name="testNoDoubleSchemaLocation">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="${namespace}" file="${doc-in-ns.xsd}" url="${namespace}"/>
- </schemavalidate>
- </target>
-
- <target name="testNoDuplicateSchema">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="${namespace}" file="${doc-in-ns.xsd}" />
- <schema namespace="${namespace}"
- url="http://ant.apache.org/" />
- </schemavalidate>
- </target>
-
- <target name="testEqualsSchemasOK">
- <schemavalidate
- file="${endpiece-ns-no-location.xml}">
- <schema namespace="${namespace}" file="${doc-in-ns.xsd}" />
- <schema namespace="${namespace}" file="${doc-in-ns.xsd}" />
- </schemavalidate>
- </target>
-
- <target name="testFileset">
- <schemavalidate noNamespaceFile="${doc.xsd}"
- >
- <schema namespace="${namespace}" file="${doc-in-ns.xsd}" />
- <fileset dir="xml"
- includes="endpiece.xml, endpiece-ns-no-location.xml, endpiece-no-schema.xml" />
- </schemavalidate>
- </target>
-
-
- <target name="default" depends="testNoNamespace,testNSMapping" />
-</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script.xml
deleted file mode 100644
index 841f70d2..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="testproject" default="def" basedir=".">
-
- <target name="def">
- <fail>This build-file is intended to be run from the test cases</fail>
- </target>
-
- <target name="setup1">
-
- <script language="javascript"> <![CDATA[
-
- for (i=1; i<=10; i++) {
- echo = testproject.createTask("echo");
- setup1.addTask(echo);
- echo.setMessage(i*i);
- }
-
- ]]> </script>
-
- </target>
-
- <target name="example1" depends="setup1"/>
-
- <target name="useBeanshell">
- <script language="beanshell"><![CDATA[
- self.log("I'm here", org.apache.tools.ant.Project.MSG_INFO);
- ]]></script>
- </target>
-
-</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script/scriptdef.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script/scriptdef.xml
deleted file mode 100644
index 0d051eae..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script/scriptdef.xml
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="testproject" default="def" basedir=".">
-
- <target name="def">
- <fail>This build-file is intended to be run from the test cases</fail>
- </target>
-
- <target name="simple">
- <scriptdef name="scripttest" language="javascript">
- <attribute name="attr1"/>
- <element name="fileset" type="fileset"/>
- <![CDATA[
-
- project.log("Attribute attr1 = " + attributes.get("attr1"));
- project.log("Fileset basedir = "
- + elements.get("fileset").get(0).getDir(project));
-
- ]]>
- </scriptdef>
-
- <fileset id="testfileset" dir="."/>
- <scripttest attr1="test">
- <fileset refid="testfileset"/>
- </scripttest>
- </target>
-
- <target name="nolang">
- <scriptdef name="nolang">
- <![CDATA[
- java.lang.System.out.println("Hello");
- ]]>
- </scriptdef>
- </target>
-
- <target name="noname">
- <scriptdef language="javascript">
- <![CDATA[
- java.lang.System.out.println("Hello");
- ]]>
- </scriptdef>
- </target>
-
- <target name="nestedbyclassname">
- <scriptdef name="scripttest" language="javascript">
- <attribute name="attr1"/>
- <element name="fileset" classname="org.apache.tools.ant.types.FileSet"/>
- <![CDATA[
-
- project.log("Attribute attr1 = " + attributes.get("attr1"));
- project.log("Fileset basedir = "
- + elements.get("fileset").get(0).getDir(project));
-
- ]]>
- </scriptdef>
-
- <fileset id="testfileset" dir="."/>
- <scripttest attr1="test">
- <fileset refid="testfileset"/>
- </scripttest>
- </target>
-
- <target name="noelement">
- <scriptdef name="scripttest" language="javascript">
- <attribute name="attr1"/>
- <element name="fileset" type="fileset"/>
- <![CDATA[
- java.lang.System.out.println("Attribute attr1 = " + attributes.get("attr1"));
- ]]>
- </scriptdef>
-
- <scripttest attr1="test">
- </scripttest>
- </target>
-
- <target name="exception">
- <scriptdef name="scripttest" language="javascript">
- <attribute name="attr1"/>
- <element name="fileset" classname="org.apache.tools.ant.types.FileSet"/>
- <![CDATA[
-
- java.lang.System.out.println("Attribute attr1 = " + attributes.get("attr1"));
- java.lang.System.out.println("Fileset basedir = "
- + elements.get("fileset").get(0).getDir(project));
-
- ]]>
- </scriptdef>
-
- <scripttest attr1="test">
- </scripttest>
- </target>
-
- <target name="doubledef">
- <scriptdef name="task1" language="javascript">
- <![CDATA[
- project.log("Task1");
- ]]>
- </scriptdef>
- <scriptdef name="task2" language="javascript">
- <![CDATA[
- project.log("Task2");
- ]]>
- </scriptdef>
- <task1/>
- <task2/>
- </target>
-
- <target name="doubleAttributeDef">
- <scriptdef name="scripttest" language="javascript">
- <attribute name="attr1"/>
- <attribute name="attr1"/>
- </scriptdef>
- </target>
-
- <target name="property">
- <scriptdef name="scripttest" language="javascript">
- <attribute name="attr1"/>
- <![CDATA[
-
- project.log("Attribute value = " + attributes.get("attr1"));
- ]]>
- </scriptdef>
-
- <property name="testproperty" value="test"/>
- <scripttest attr1="${testproperty}">
- </scripttest>
- </target>
-
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script_reference.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script_reference.xml
deleted file mode 100644
index 82ccb1ff..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/script_reference.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="test-reference" default="script">
- <target name="script">
- <script language="javascript">
- </script>
- </target>
- <target name="def">
- <taskdef name="my.echo" classname="org.apache.tools.ant.taskdefs.Echo"/>
- <my.echo id="my.echo.ref" message="hello world"/>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/sos/sos.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/sos/sos.xml
deleted file mode 100644
index 982b47ca..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/sos/sos.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="sos-test" basedir="." default="sosget.1">
-
- <!--
- ===========================================================================
- Test SOSGet missing attributes
- ===========================================================================
- -->
- <target name="sosget.1">
- <sosget/>
- </target>
-
- <target name="sosget.2">
- <sosget sosserverpath="192.168.0.1:8888"/>
- </target>
-
- <target name="sosget.3">
- <sosget sosserverpath="192.168.0.1:8888"
- username="ant"/>
- </target>
-
- <target name="sosget.4">
- <sosget sosserverpath="192.168.0.1:8888"
- username="ant"
- vssserverpath="\\server\vss\srcsafe.ini"/>
- </target>
-
- <!--
- ===========================================================================
- Test SOSCheckin missing attributes
- ===========================================================================
- -->
- <target name="soscheckin.1">
- <soscheckin/>
- </target>
-
- <target name="soscheckin.2">
- <soscheckin sosserverpath="192.168.0.1:8888"/>
- </target>
-
- <target name="soscheckin.3">
- <soscheckin sosserverpath="192.168.0.1:8888"
- username="ant"/>
- </target>
-
- <target name="soscheckin.4">
- <soscheckin sosserverpath="192.168.0.1:8888"
- username="ant"
- vssserverpath="\\server\vss\srcsafe.ini"/>
- </target>
-
- <!--
- ===========================================================================
- Test SOSCheckout missing attributes
- ===========================================================================
- -->
- <target name="soscheckout.1">
- <soscheckout/>
- </target>
-
- <target name="soscheckout.2">
- <soscheckout sosserverpath="192.168.0.1:8888"/>
- </target>
-
- <target name="soscheckout.3">
- <soscheckout sosserverpath="192.168.0.1:8888"
- username="ant"/>
- </target>
-
- <target name="soscheckout.4">
- <soscheckout sosserverpath="192.168.0.1:8888"
- username="ant"
- vssserverpath="\\server\vss\srcsafe.ini"/>
- </target>
-
- <!--
- ===========================================================================
- Test SOSLabel missing attributes
- ===========================================================================
- -->
- <target name="soslabel.1">
- <soslabel/>
- </target>
-
- <target name="soslabel.2">
- <soslabel sosserverpath="192.168.0.1:8888"/>
- </target>
-
- <target name="soslabel.3">
- <soslabel sosserverpath="192.168.0.1:8888"
- username="ant"/>
- </target>
-
- <target name="soslabel.4">
- <soslabel sosserverpath="192.168.0.1:8888"
- username="ant"
- vssserverpath="\\server\vss\srcsafe.ini"/>
- </target>
-
- <target name="soslabel.5">
- <soslabel sosserverpath="192.168.0.1:8888"
- username="ant"
- vssserverpath="\\server\vss\srcsafe.ini"
- projectpath="$/SourceRoot/Project"/>
- </target>
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/splash-test.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/splash-test.xml
deleted file mode 100644
index 5b5bbe28..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/splash-test.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project default="test_new_features" name="splash-test" basedir=".">
-
- <target name="test_old_behaviour">
- <echo>Old behaviour</echo>
- <splash showduration="0"/>
- <sleep seconds="1"/>
- <sleep seconds="1"/>
- <sleep seconds="1"/>
- <sleep seconds="1"/>
- <sleep seconds="1"/>
- </target>
-
- <target name="test_new_features">
- <echo>New features</echo>
- <splash progressregexp="Progress: (.*)%" showduration="0" displayText="Test text"/>
- <sleep seconds="1"/>
- <echo>Progress: 10%</echo>
- <sleep seconds="1"/>
- <echo>Progress: 20%</echo>
- <sleep seconds="1"/>
- <echo>Progress: 50%</echo>
- <sleep seconds="1"/>
- <echo>Progress: 70%</echo>
- <sleep seconds="1"/>
- <echo>Progress: 100%</echo>
- <sleep seconds="3"/>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/unix/symlink.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/unix/symlink.xml
deleted file mode 100644
index f039a622..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/unix/symlink.xml
+++ /dev/null
@@ -1,354 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!--
-
-/*
- * Since the initial version of this file was deveolped on the clock on
- * an NSF grant I should say the following boilerplate:
- *
- * This material is based upon work supported by the National Science
- * Foundaton under Grant No. EIA-0196404. Any opinions, findings, and
- * conclusions or recommendations expressed in this material are those
- * of the author and do not necessarily reflect the views of the
- * National Science Foundation.
- */
-
--->
-
-<project name="symlink-test" basedir="." default="all">
-
- <!--
- Since the symlink task and some of these targets rely on
- calls to exec, it may be possible for the JVM to outrun the
- execution of the command line system calls, so this value is
- the number of seconds we give the operating system to
- catch up before executing a task that depends on the
- completion of previous tasks. This delay is also added to
- the end of each target so junit doesn't go testing things
- before they have finnished (hopefully). Tweak if needed.
- -->
-
- <property name="delay" value="0"/>
-
- <import file="../../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- </target>
-
-
- <target name="all"
- depends="setUp, test-single, test-delete, test-record, test-recreate, tearDown"/>
-
- <!-- test for action = single -->
- <!--
- Creates:
- File: ${output}/symlink.test
- Link: ${output}/singletest
- -->
- <target name="test-single">
- <touch file="${output}/symlink.test"/>
- <symlink resource="${output}/symlink.test"
- link="${output}/singletest"
- failonerror="yes"/>
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
- <available file="${output}/symlink.test"
- property="test.single.file.created"/>
- <available file="${output}/singletest"
- property="test.single.link.created"/>
- </target>
-
-
-
- <!-- test for action = delete (no calls to command line so no sleep) -->
-
- <!--
- Creates:
- (none)
- Deletes:
- Link: ${output}/singletest
- -->
-
- <target name="test-delete">
- <touch file="${output}/symlink.test"/>
- <symlink resource="${output}/symlink.test"
- link="${output}/singletest"
- failonerror="yes"/>
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <symlink action="delete" link="${output}/singletest" failonerror="yes"/>
- <symlink action="delete" link="${output}/symlink.test" failonerror="no"/>
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <available file="${output}/symlink.test"
- property="test.delete.file.still.there"/>
- <available file="${output}/singletest"
- property="test.delete.link.still.there"
- value="ERROR: link deletion failed"/>
-
- </target>
-
-
-
- <!-- test for action = record -->
-
- <!--
- Creates:
- Dir: ${output}/symtest1
- Dir: ${output}/symtest1/symtest2
- Dir: ${output}/symtest1/symtest3
- File: ${output}/symtest1/file1
- File: ${output}/symtest1/symtest2/file2
- File: ${output}/symtest1/symtest3/fileA
- File: ${output}/symtest1/symtest3/fileB
- File: ${output}/symtest1/symtest3/fileC
- Link: ${output}/symtest1/link1==>${output}/symtest1/file1
- Link: ${output}/symtest1/link2==>${output}/symtest1/symtest2/file2
- Link: ${output}/symtest1/symtest2/link3==>
- ${output}/symtest1/symtest2/file2
- Link: ${output}/symtest1/dirlink==>${output}/symtest1/symtest3
- Link: ${output}/symtest1/dirlink2==>${output}/symtest1/symtest3
- Link: ${output}/symtest1/dirlink3==>${output}/symtest1/symtest3
- File: ${output}/symtest1/recorded.links
- File: ${output}/symtest1/symtest2/recorded.links
- Deletes:
- (none)
- -->
-
- <target name="test-record">
-
- <mkdir dir="${output}/symtest1"/>
- <mkdir dir="${output}/symtest1/symtest2"/>
- <mkdir dir="${output}/symtest1/symtest3"/>
- <touch file="${output}/symtest1/file1"/>
- <touch file="${output}/symtest1/symtest2/file2"/>
-
- <touch file="${output}/symtest1/symtest3/fileA"/>
- <touch file="${output}/symtest1/symtest3/fileB"/>
- <touch file="${output}/symtest1/symtest3/fileC"/>
-
- <symlink resource="${output}/symtest1/file1"
- link="${output}/symtest1/link1"
- failonerror="no" />
- <symlink resource="${output}/symtest1/symtest2/file2"
- link="${output}/symtest1/link2"
- failonerror="no" />
- <symlink resource="${output}/symtest1/symtest2/file2"
- link="${output}/symtest1/symtest2/link3"
- failonerror="no" />
- <symlink resource="${output}/symtest1/symtest3"
- link="${output}/symtest1/dirlink"
- failonerror="no" />
- <symlink resource="${output}/symtest1/symtest3"
- link="${output}/symtest1/dirlink2"
- failonerror="no"/>
- <symlink resource="${output}/symtest1/symtest3"
- link="${output}/symtest1/dirlink3"
- failonerror="no"/>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <symlink action="record" linkfilename="recorded.links">
- <fileset dir="${output}/symtest1" includes="**/**"/>
- </symlink>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <!-- Test to see if the directories were created -->
-
- <available file="${output}/symtest1"
- type="dir"
- property="test.record.dir1.created"/>
-
- <available file="${output}/symtest1/symtest2"
- type="dir"
- property="test.record.dir2.created"/>
-
- <available file="${output}/symtest1/symtest3"
- type="dir"
- property="test.record.dir3.created"/>
-
- <!-- Test to see if the Files were created -->
-
- <available file="${output}/symtest1/file1"
- property="test.record.file1.created"/>
-
- <available file="${output}/symtest1/symtest2/file2"
- property="test.record.file2.created"/>
-
- <available file="${output}/symtest1/symtest3/fileA"
- property="test.record.fileA.created"/>
-
- <available file="${output}/symtest1/symtest3/fileB"
- property="test.record.fileB.created"/>
-
- <available file="${output}/symtest1/symtest3/fileC"
- property="test.record.fileC.created"/>
-
- <!-- Test to see if the links were created -->
-
- <available file="${output}/symtest1/link1"
- property="test.record.link1.created"/>
-
- <available file="${output}/symtest1/link2"
- property="test.record.link2.created"/>
-
- <available file="${output}/symtest1/symtest2/link3"
- property="test.record.link3.created"/>
-
- <available file="${output}/symtest1/dirlink"
- property="test.record.dirlink.created"/>
-
- <!-- this is redundant for this test, but used in the recreate test -->
-
- <available file="${output}/symtest1/dirlink2"
- property="test.record.dirlink2.created"/>
-
- <!-- Test to see if the linkfiles were created -->
-
- <available file="${output}/symtest1/recorded.links"
- property="test.record.dir1.recorded"/>
-
- <available file="${output}/symtest1/symtest2/recorded.links"
- property="test.record.dir2.recorded"/>
-
- <!-- THIS should not be set -->
-
- <available file="${output}/symtest1/symtest3/recorded.links"
- property="test.record.dir3.recorded"
- value="ERROR: symtest3/recorded.links should not exist"/>
-
-
- </target>
-
- <!-- test for action = recreate -->
-
- <!--
- Deletes:
- Link: ${output}/symtest1/link1==>${output}/symtest1/file1
- Link: ${output}/symtest1/link2==>${output}/symtest1/symtest2/file2
- Link: ${output}/symtest1/symtest2/link3==>
- ${output}/symtest1/symtest2/file2
- Link: ${output}/symtest1/dirlink==>${output}/symtest1/symtest3
- Link: ${output}/symtest1/dirlink3==>${output}/symtest1/symtest3
-
- Creates
- Link: ${output}/symtest1/dirlink3==>${output}/symtest1/symtest2
-
- Recreates:
- Link: ${output}/symtest1/link1==>${output}/symtest1/file1
- Link: ${output}/symtest1/link2==>${output}/symtest1/symtest2/file2
- Link: ${output}/symtest1/symtest2/link3==>
- ${output}/symtest1/symtest2/file2
- Link: ${output}/symtest1/dirlink==>${output}/symtest1/symtest3
-
- Should Change:
- Link: ${output}/symtest1/dirlink3==>${output}/symtest1/symtest2
- to
- ${output}/symtest1/dirlink3==>${output}/symtest1/symtest3
-
- Should Not Create (bug 25181):
- Link: ${output}/symtest1/symtest3/dirlink2==>${output}/symtest1/symtest3
- -->
-
- <target name="test-recreate" depends="test-record">
-
- <symlink action="delete" link="${output}/symtest1/link1"/>
- <symlink action="delete" link="${output}/symtest1/link2"/>
- <symlink action="delete" link="${output}/symtest1/symtest2/link3"/>
- <symlink action="delete" link="${output}/symtest1/dirlink"/>
- <!-- dirlink2 intentionally not deleted to test bug 25181 -->
- <symlink action="delete" link="${output}/symtest1/dirlink3"/>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <symlink resource="${output}/symtest1/symtest2"
- link="${output}/symtest1/dirlink3"
- failonerror="no"/>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <available file="${output}/symtest1/link1"
- property="test.recreate.link1.not.removed"
- value="ERROR: rm -f symtest1/link1 failed"/>
-
- <available file="${output}/symtest1/link2"
- property="test.recreate.link2.not.removed"
- value="ERROR: rm -f symtest1/link2 failed"/>
-
- <available file="${output}/symtest1/symtest2/link3"
- property="test.recreate.link3.not.removed"
- value="ERROR: rm -f symtest1/symtest2/link3 failed"/>
-
- <available file="${output}/symtest1/zdirlink"
- property="test.recreate.zdirlink.not.removed"
- value="ERROR: rm -f symtest1/zdirlink failed"/>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to do the execs -->
-
- <symlink action="recreate">
- <fileset dir="${output}/symtest1" includes="**/recorded.links"/>
- </symlink>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to catch up -->
-
- <available file="${output}/symtest1/link1"
- property="test.recreate.link1.recreated"/>
-
- <available file="${output}/symtest1/link2"
- property="test.recreate.link2.recreated"/>
-
- <available file="${output}/symtest1/symtest2/link3"
- property="test.recreate.link3.recreated"/>
-
- <available file="${output}/symtest1/dirlink"
- property="test.recreate.dirlink.recreated"/>
-
- <!-- this should not get set -->
- <available file="${output}/symtest1/symtest3/symtest3"
- property="test.recreate.dirlink2.recreated.twice"
- value="ERROR: dirlink2 was created a second time (bug 25181)"/>
-
- <touch file="${output}/symtest1/dirlink3/WhereAmI"/>
-
- <sleep seconds="${delay}"/> <!-- make sure OS has time to do the execs -->
-
- <available file="${output}/symtest1/symtest3/WhereAmI"
- property="test.recreate.dirlink3.was.altered"/>
- </target>
-
-
- <!-- actually tests the symlink methods in FileUtils, but this
- testfixture already has all the necessary envirnment in place
- -->
- <target name="test-fileutils" depends="setUp">
- <mkdir dir="${output}/dir1"/>
- <mkdir dir="${output}/dir2"/>
- <touch file="${output}/file1"/>
- <touch file="${output}/file2"/>
- <symlink link="${output}/dir.there" resource="${output}/dir1"/>
- <symlink link="${output}/dir.notthere" resource="${output}/dir2"/>
- <symlink link="${output}/file.there" resource="${output}/file1"/>
- <symlink link="${output}/file.notthere" resource="${output}/file2"/>
- <delete dir="${output}/dir2"/>
- <delete file="${output}/file2"/>
- </target>
-
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/vss/vss.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/vss/vss.xml
deleted file mode 100644
index 7c6c0d39..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/vss/vss.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="vss-test" basedir="." default="vssget.1">
-
- <!--
- ===========================================================================
- Test required attributes
- ===========================================================================
- -->
- <target name="vssget.1">
- <vssget/>
- </target>
-
- <target name="vsslabel.1">
- <vsslabel/>
- </target>
-
- <target name="vsslabel.2">
- <vsslabel vsspath="$/SourceRoot/Project"/>
- </target>
-
- <target name="vsshistory.1">
- <vsshistory/>
- </target>
-
- <target name="vsscheckin.1">
- <vsscheckin/>
- </target>
-
- <target name="vsscheckout.1">
- <vsscheckout/>
- </target>
-
- <target name="vsscheckout.2">
- <vsscheckout
- vsspath="$/SourceRoot/Project"
- filetimestamp="blah"/>
- </target>
-
- <target name="vssadd.1">
- <vssadd/>
- </target>
-
- <target name="vsscp.1">
- <vsscp/>
- </target>
-
- <target name="vsscreate.1">
- <vsscreate/>
- </target>
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xalan-redirect-in.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xalan-redirect-in.xsl
deleted file mode 100644
index b9d07949..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xalan-redirect-in.xsl
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
- xmlns:lxslt="http://xml.apache.org/xslt"
- xmlns:redirect="http://xml.apache.org/xalan/redirect"
- extension-element-prefixes="redirect">
-<!--
-This is a test to ensure that systemid is set correctly
-for a xsl...the behavior might be dependent on Xalan1
-and Xalan2...this will be a problem to erase the files :(
-Can take as a systemid the base for the xsl document or
-the base or the JVM working dir just like: new File("xalan-redirect-out.tmp")
--->
-<xsl:param name="xalan-version" select="'x'"/>
-
-<xsl:template match="/">
-<redirect:write file="./xalan{$xalan-version}-redirect-out.tmp">
- <test>This should be written to the file</test>
-</redirect:write>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/about.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/about.xml
deleted file mode 100644
index f6a9dab5..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/about.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!DOCTYPE doc PUBLIC
- "-//stevo//DTD doc 1.0//EN"
- "http://chemical/brothers"
- >
-<doc>
- <section title="About">
- in the absence of technology, there is only marketing
- </section>
-</doc>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/apache.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/apache.xsl
deleted file mode 100644
index 120addf8..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/apache.xsl
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="xml"/>
-
- <xsl:template match="/">
- <authors>
- <xsl:apply-templates/>
- </authors>
- </xsl:template>
- <xsl:template match="author">
- <author>
- <xsl:attribute name="name">
- <xsl:value-of select="@name"/>
- </xsl:attribute>
- </author>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/books.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/books.xml
deleted file mode 100644
index 17923d7d..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/books.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<books>
- <book name="hamlet">
- <author name="shakespeare"/>
- </book>
- <book name="the lord of rings">
- <author name="tolkien"/>
- </book>
- <book name="le malade imaginaire">
- <author name="moliere"/>
- </book>
-</books> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/catalog b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/catalog
deleted file mode 100644
index 1c9bddf2..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/catalog
+++ /dev/null
@@ -1,2 +0,0 @@
-PUBLIC "-//stevo//DTD doc 1.0//EN" "doc.dtd"
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc-in-ns.xsd b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc-in-ns.xsd
deleted file mode 100644
index b34147c4..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc-in-ns.xsd
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://apache.org/ant/doc/"
- xmlns:tns="http://apache.org/ant/doc/"
- elementFormDefault="qualified">
- <xs:element name="doc">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="tns:section"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="section">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="title" type="xs:string"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
-</xs:schema>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.dtd b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.dtd
deleted file mode 100644
index 51629d58..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.dtd
+++ /dev/null
@@ -1,24 +0,0 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!ELEMENT doc (section) >
-<!ELEMENT section (#PCDATA)>
-<!ATTLIST section title CDATA #IMPLIED>
-
-
-
-
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsd b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsd
deleted file mode 100644
index eeedbcaf..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsd
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xs:schema
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified">
- <xs:element name="doc">
- <xs:complexType>
- <xs:sequence>
- <xs:element ref="section"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="section">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="title" type="xs:string"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- </xs:element>
-</xs:schema>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsl
deleted file mode 100644
index 3d9c2a4e..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/doc.xsl
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:template="struts template"
- version="1.0">
-<xsl:output method="text"/>
-<xsl:template match="/">
-<xsl:value-of select="/doc/section"/>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml
deleted file mode 100644
index 6435c328..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/docwithentity.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!DOCTYPE books [
- <!ENTITY globaldefinitions SYSTEM "entity.xml">
-]>
-<books>
- &globaldefinitions;
- <book name="the lord of rings">
- <author name="tolkien"/>
- </book>
- <book name="le malade imaginaire">
- <author name="moliere"/>
- </book>
-</books> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema-invalid.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema-invalid.xml
deleted file mode 100644
index ec580854..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema-invalid.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!--
- Invalid test XML file without any schema refeferences
--->
-<doc>
- <section title="endpiece">
- With a little luck, the network will pick me up.
- This is Ripley - last survivor of The Nostromo - signing off.
- </section>
-
- <invalidelement/>
-
-</doc>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema.xml
deleted file mode 100644
index 7ae559d9..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-noSchema.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!--
- Test XML file without any schema refeferences
--->
-<doc>
- <section title="endpiece">
- With a little luck, the network will pick me up.
- This is Ripley - last survivor of The Nostromo - signing off.
- </section>
-
-</doc>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-ns-no-location.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-ns-no-location.xml
deleted file mode 100644
index 3fe93c7c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece-ns-no-location.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="doc-in-ns.xsd" xmlns="http://apache.org/ant/doc/">
- <section title="endpiece">
- With a little luck, the network will pick me up.
- This is Ripley - last survivor of The Nostromo - signing off.
- </section>
-</doc>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece.xml
deleted file mode 100644
index 3fe93c7c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="doc-in-ns.xsd" xmlns="http://apache.org/ant/doc/">
- <section title="endpiece">
- With a little luck, the network will pick me up.
- This is Ripley - last survivor of The Nostromo - signing off.
- </section>
-</doc>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece2.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece2.xml
deleted file mode 100644
index eec49f6f..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/endpiece2.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="doc.xsd"
- xmlns="http://Massive/Attack+Mezzanine">
- <section title="endpiece">
- With a little luck, the network will pick me up.
- This is Ripley - last survivor of The Nostromo - signing off.
- <illegal-element/>
- </section>
-</doc>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/entity.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/entity.xml
deleted file mode 100644
index a9340e56..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/entity.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
- <book name="hamlet">
- <author name="shakespeare"/>
- </book>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/iso-2022-jp.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/iso-2022-jp.xml
deleted file mode 100644
index b325e6da..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/iso-2022-jp.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="iso-2022-jp"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!DOCTYPE test [
- <!ELEMENT test (#PCDATA)>
-]>
-<test>
-ISO-2022-JP $B$N%U%!%$%k!#(B
-</test>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_include.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_include.xsl
deleted file mode 100644
index 9c1ffad7..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_include.xsl
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:template match="author">
- <author>
- <xsl:attribute name="name">
- <xsl:value-of select="@name"/>
- </xsl:attribute>
- </author>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_with_include.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_with_include.xsl
deleted file mode 100644
index b1feaca8..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/stylesheet_with_include.xsl
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="xml"/>
- <xsl:include href="stylesheet_include.xsl"/>
- <xsl:template match="/">
- <authors>
- <xsl:apply-templates/>
- </authors>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xml
deleted file mode 100644
index 7f2abe00..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<root>
- <a>this is the first line</a>
- <b><c>not indented</c></b>
- <b>
- <c>indented</c>
- </b>
-</root>
- \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xsl
deleted file mode 100644
index 8d28eb3f..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/test.xsl
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-<!-- Copy every node and attributes recursively -->
- <xsl:template match="node()|@*">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
-</xsl:stylesheet> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/utf-8.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/utf-8.xml
deleted file mode 100644
index db442a36..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/utf-8.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!DOCTYPE test [
- <!ELEMENT test (#PCDATA)>
-]>
-<test>
-Liberté, égalité, fraternité!
-</test>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/validate.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/validate.xml
deleted file mode 100644
index cade722a..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xml/validate.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="validate" default="testValidate" basedir=".">
-
- <target name="testValidate">
- <xmlvalidate warn="false">
- <fileset dir="." includes="about.xml"/>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlvalidate>
- </target>
-
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xmlvalidate.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xmlvalidate.xml
deleted file mode 100644
index cd7cc45e..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xmlvalidate.xml
+++ /dev/null
@@ -1,208 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<project name="validate" default="testValidate" basedir=".">
-
- <target name="testValidate">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="xml/doc.dtd"/>
- </xmlvalidate>
- </target>
-
- <target name="testDeepValidate">
- <ant dir="xml"
- antfile="validate.xml"
- target="testValidate"/>
- </target>
-
- <target name="xmlcatalog">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalogViaRefid">
- <xmlcatalog classpath="xml" id="cat">
- <dtd publicID="-//stevo//DTD doc 1.0//EN" location="doc.dtd"/>
- </xmlcatalog>
- <xmlvalidate warn="false">
- <xmlcatalog refid="cat"/>
- <fileset dir="xml" includes="**/about.xml"/>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalognested">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <entity publicID = "bogusImage"
- location = "/i/dont/exist.jpg"/>
- <xmlcatalog>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <!-- The -override tests should pass without resolver.jar -->
- <target name="xmlcatalogfiles-override">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <catalogpath>
- <fileset dir="xml" includes="catalog"/>
- </catalogpath>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalogpath-override">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <catalogpath>
- <pathelement location="xml/catalog"/>
- </catalogpath>
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="doc.dtd"/>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalogfiles">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <catalogpath>
- <fileset dir="xml" includes="catalog"/>
- </catalogpath>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="xmlcatalogpath">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="**/about.xml"/>
- <xmlcatalog classpath="xml">
- <catalogpath>
- <pathelement location="xml/catalog"/>
- </catalogpath>
- </xmlcatalog>
- </xmlvalidate>
- </target>
-
- <target name="testSchemaGood">
- <xmlvalidate warn="false" lenient="no" >
- <fileset dir="xml" includes="endpiece.xml"/>
-
- <attribute name="http://xml.org/sax/features/validation"
- value="false"/>
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="false"/>
-
- </xmlvalidate>
- </target>
-
- <target name="testSchemaBad">
- <xmlvalidate warn="false">
- <fileset dir="xml" includes="endpiece2.xml"/>
-
- <attribute name="http://xml.org/sax/features/validation"
- value="true"/>
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="true"/>
- </xmlvalidate>
- </target>
-
- <target name="testIso2022Jp">
- <xmlvalidate warn="false" file="xml/iso-2022-jp.xml"/>
- </target>
-
- <target name="testUtf8">
- <xmlvalidate warn="false" file="xml/utf-8.xml"/>
- </target>
-
-
- <!-- Tests property element with XML file that satisfies schema -->
- <target name="testProperty.validXML">
-
- <!-- Converts path to URL format -->
- <pathconvert dirsep="/" property="xsd.file">
- <path>
- <pathelement location="xml/doc.xsd"/>
- </path>
- </pathconvert>
-
- <xmlvalidate file="xml/endpiece-noSchema.xml" lenient="false"
- failonerror="true" warn="true">
-
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="true"/>
-
- <property
- name="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"
- value="${xsd.file}"/>
- </xmlvalidate>
- </target>
-
-
- <!-- Tests property element with XML file that fails schema validation -->
- <target name="testProperty.invalidXML">
-
- <!-- Converts path to URL format -->
- <pathconvert dirsep="/" property="xsd.file">
- <path>
- <pathelement location="xml/doc.xsd"/>
- </path>
- </pathconvert>
-
- <xmlvalidate file="xml/endpiece-noSchema-invalid.xml" lenient="false"
- failonerror="true" warn="true">
-
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="true"/>
-
- <property
- name="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"
- value="${xsd.file}"/>
- </xmlvalidate>
- </target>
-
- <target name="testSchemaWithXSD">
- <xmlvalidate warn="false" lenient="false"
- file="xml/endpiece-noSchema.xml">
-
- <attribute name="http://apache.org/xml/features/validation/schema"
- value="true"/>
- <property
- name="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"
- value="${xsd.file}"/>
-
- </xmlvalidate>
- </target>
-
-</project>
-
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xslt.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xslt.xml
deleted file mode 100644
index d872ea8c..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xslt.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<project name="xslt" default="tearDown" basedir=".">
-
- <import file="../../buildfiletest-base.xml"/>
-
- <target name="setUp">
- <mkdir dir="${output}" />
- </target>
-
- <target name="initNonAscii" depends="setUp">
- <property name="nonasciidir" value="${output}/&#0227;nt"/>
- <mkdir dir="${nonasciidir}"/>
- <copy todir="${nonasciidir}">
- <fileset dir="xml">
- <include name="docwithentity.xml"/>
- <include name="entity.xml"/>
- </fileset>
- </copy>
- </target>
-
- <target name="testCatchNoDtd" depends="setUp">
- <xslt basedir="xml" destdir="${output}"
- includes="about.xml"
- extension=".txt"
- style="xml/doc.xsl">
- </xslt>
- </target>
-
- <xmlcatalog id="xdocs.catalog">
- <dtd publicID="-//stevo//DTD doc 1.0//EN"
- location="xml/doc.dtd"/>
- </xmlcatalog>
-
- <target name="testCatalog" depends="setUp">
- <xslt destdir="${output}"
- includes="about.xml"
- extension=".txt"
- style="xml/doc.xsl">
- <xmlcatalog refid="xdocs.catalog"/>
- </xslt>
- </target>
-
- <target name="testOutputProperty" depends="setUp">
- <xslt in="xml/test.xml"
- out="${output}/test-out.xml"
- style="xml/test.xsl">
- <outputproperty name="method" value="xml"/>
- <outputproperty name="standalone" value="yes"/>
- <outputproperty name="encoding" value="iso8859_1"/>
- <outputproperty name="indent" value="yes"/>
- </xslt>
- </target>
-
-
- <target name="testFactory" depends="setUp">
- <xslt in="xml/test.xml"
- out="${output}/test-out.xml"
- style="xml/test.xsl">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl"/>
- </xslt>
- </target>
-
- <target name="testAttribute" depends="setUp">
- <xslt in="xml/test.xml"
- out="${output}/test-out.xml"
- style="xml/test.xsl">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
- </factory>
- </xslt>
- </target>
- <!-- inspired by bug report 37348 -->
- <target name="testXMLWithEntitiesInNonAsciiPath" depends="initNonAscii">
- <xslt in="${nonasciidir}/docwithentity.xml"
- out="${output}/test-out.xml"
- style="xml/apache.xsl">
- </xslt>
- </target>
- <target name="testStyleSheetWithInclude" depends="setUp">
- <xslt in="xml/books.xml"
- out="${output}/test-out.xml"
- style="xml/stylesheet_with_include.xsl">
- </xslt>
- </target>
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xml
deleted file mode 100644
index 80d93369..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<root>
- <message>éàèïù</message>
-</root>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xsl
deleted file mode 100644
index f19bf820..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-encoding-in.xsl
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
-<xsl:template match="/">
- <root>
- <xsl:for-each select="/root/message">
- <message><xsl:value-of select="."/></message>
- </xsl:for-each>
- </root>
-</xsl:template>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xml
deleted file mode 100644
index a4b0247b..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!DOCTYPE project [
- <!ENTITY include SYSTEM "xsltliaison-include.xml">
-]>
-<project>
- &include;
-</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xsl
deleted file mode 100644
index 852d38af..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-in.xsl
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-<xsl:include href="xsltliaison-include.xsl"/>
-</xsl:stylesheet>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xml
deleted file mode 100644
index aebef339..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- to be included by xsltliaison-include.xsl -->
-<task/>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xsl b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xsl
deleted file mode 100644
index 986f1b3e..00000000
--- a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/optional/xsltliaison-include.xsl
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-<!-- to be included by xsltliaison-in.xsl -->
-</xsl:stylesheet>