aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions')
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/antversion.xml66
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/http.xml57
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfailure.xml65
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfileselected.xml70
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreachable.xml105
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreference.xml60
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/issigned.xml78
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/apassword.jarbin0 -> 1708 bytes
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/nosign.jarbin0 -> 451 bytes
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/pass.jarbin0 -> 1690 bytes
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/parsersupports.xml95
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/typefound.xml75
-rw-r--r--framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/xor.xml112
13 files changed, 783 insertions, 0 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/antversion.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/antversion.xml
new file mode 100644
index 00000000..8a54cb01
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/antversion.xml
@@ -0,0 +1,66 @@
+<?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="testantversion" default="testatleast">
+
+ <target name="testatleast">
+ <fail>
+ <condition>
+ <not>
+ <antversion atleast="1.7" />
+ </not>
+ </condition>
+ Should be at least 1.7
+ </fail>
+ </target>
+
+ <target name="testexactly">
+ <fail>
+ <condition>
+ <not>
+ <antversion exactly="1.9.6" />
+ </not>
+ </condition>
+ Should be exactly 1.9.6
+
+ </fail>
+ </target>
+
+ <target name="testatleastfail">
+ <property name="version" value="1.8.9" />
+ <fail>
+ <condition>
+ <not>
+ <antversion atleast="1.9.6" />
+ </not>
+ </condition>
+ Should be at least 1.9.6
+ </fail>
+ </target>
+
+ <target name="testexactlyfail">
+ <property name="version" value="1.8.0" />
+ <fail>
+ <condition>
+ <not>
+ <antversion exactly="1.9.6" />
+ </not>
+ </condition>
+ Should be exactly 1.9.6
+ </fail>
+ </target>
+</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/http.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/http.xml
new file mode 100644
index 00000000..76e87cbe
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/http.xml
@@ -0,0 +1,57 @@
+<?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 default="nope">
+
+ <target name="nope">
+ <fail>This build file should be run by a testcase</fail>
+ </target>
+
+ <target name="basic-no-method">
+ <condition property="basic-no-method">
+ <http url="http://ant.apache.org/"/>
+ </condition>
+ <condition property="basic-no-method-bad-url">
+ <http url="http://ant.apache.org/this-page-does-not-exist"/>
+ </condition>
+ </target>
+
+ <target name="test-head-request">
+ <condition property="test-head-request">
+ <http url="http://ant.apache.org/" requestMethod="HEAD"/>
+ </condition>
+ <condition property="test-head-request-bad-url">
+ <http url="http://ant.apache.org/this-page-does-not-exist" requestMethod="HEAD"/>
+ </condition>
+ </target>
+
+ <target name="test-get-request">
+ <condition property="test-get-request">
+ <http url="http://ant.apache.org/" requestMethod="GET"/>
+ </condition>
+ <condition property="test-get-request-bad-url">
+ <http url="http://ant.apache.org/this-page-does-not-exist" requestMethod="GET"/>
+ </condition>
+ </target>
+
+ <target name="bad-request-method">
+ <condition property="bad-request-method">
+ <http url="http://ant.apache.org" requestMethod="UNKNOWN"/>
+ </condition>
+ </target>
+
+</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfailure.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfailure.xml
new file mode 100644
index 00000000..b5d1a6a4
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfailure.xml
@@ -0,0 +1,65 @@
+<?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="testisfailure">
+
+ <target name="testisfailure">
+ <fail>
+ <condition>
+ <or>
+ <and>
+ <os family="openvms" />
+ <or>
+ <isfailure code="1" />
+ <isfailure code="3" />
+ <isfailure code="5" />
+ <isfailure code="7" />
+ <isfailure code="9" />
+ <not>
+ <and>
+ <isfailure code="0" />
+ <isfailure code="2" />
+ <isfailure code="4" />
+ <isfailure code="6" />
+ <isfailure code="8" />
+ </and>
+ </not>
+ </or>
+ </and>
+ <and>
+ <not>
+ <os family="openvms" />
+ </not>
+ <or>
+ <isfailure code="0" />
+ <not>
+ <and>
+ <isfailure code="1" />
+ <isfailure code="10" />
+ <isfailure code="50" />
+ <isfailure code="100" />
+ <isfailure code="255" />
+ </and>
+ </not>
+ </or>
+ </and>
+ </or>
+ </condition>
+ </fail>
+ </target>
+
+</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfileselected.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfileselected.xml
new file mode 100644
index 00000000..0626eedb
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isfileselected.xml
@@ -0,0 +1,70 @@
+<?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>
+ <macrodef name="pass">
+ <element name="conditions" implicit="yes"/>
+ <attribute name="failmessage"/>
+ <sequential>
+ <fail message="@{failmessage}">
+ <condition>
+ <not>
+ <conditions/>
+ </not>
+ </condition>
+ </fail>
+ </sequential>
+ </macrodef>
+
+ <target name="simple">
+ <pass failmessage="a simple test">
+ <isfileselected file="jars/pass.jar">
+ <signedselector/>
+ </isfileselected>
+ </pass>
+ </target>
+
+ <target name="name">
+ <pass failmessage="name did not match">
+ <isfileselected file="jars/nosign.jar">
+ <filename name="jars/nosign.jar"/>
+ </isfileselected>
+ </pass>
+ </target>
+
+ <target name="basedir">
+ <pass failmessage="name did not match with a basedir change">
+ <isfileselected file="jars/nosign.jar" basedir="jars">
+ <filename name="nosign.jar"/>
+ </isfileselected>
+ </pass>
+ </target>
+
+ <target name="type">
+ <pass failmessage="type selector did not work">
+ <isfileselected file="isfileselected.xml">
+ <type type="file"/>
+ </isfileselected>
+ </pass>
+ </target>
+
+ <target name="not.selector">
+ <fileset dir=".">
+ <isfileselected file="nosigned.jar"/>
+ </fileset>
+ </target>
+</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreachable.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreachable.xml
new file mode 100644
index 00000000..3f74aef7
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreachable.xml
@@ -0,0 +1,105 @@
+<?xml version="1.0"?>
+<project name="isreachable">
+<!--
+ 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.
+-->
+
+
+ <macrodef name="assertHostReachable">
+ <attribute name="host"/>
+ <sequential>
+ <fail message="not reachable: @{host}">
+ <condition>
+ <not>
+ <isreachable host="@{host}"/>
+ </not>
+ </condition>
+ </fail>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="assertHostNotReachable">
+ <attribute name="host"/>
+ <sequential>
+ <fail message="unexpectedly reachable: @{host}">
+ <condition>
+ <isreachable host="@{host}"/>
+ </condition>
+ </fail>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="assertUrlReachable">
+ <attribute name="url"/>
+ <sequential>
+ <fail message="not reachable: @{url}">
+ <condition>
+ <not>
+ <isreachable url="@{url}"/>
+ </not>
+ </condition>
+ </fail>
+ </sequential>
+ </macrodef>
+
+ <target name="testLocalhost">
+ <assertHostReachable host="localhost"/>
+ </target>
+
+ <!-- bugs in XPSP2 mean this is the only IPv4 loopback addr allowed -->
+ <target name="testIpv4localhost">
+ <assertHostReachable host="127.0.0.1"/>
+ </target>
+
+ <target name="testBoth">
+ <condition property="both">
+ <isreachable host="localhost" url="http://localhost"/>
+ </condition>
+ <fail>Expected failure before here</fail>
+ </target>
+
+ <target name="testLocalhostURL">
+ <assertUrlReachable url="http://localhost"/>
+ </target>
+
+ <target name="testIpv4localhostURL">
+ <assertUrlReachable url="http://127.0.0.1/"/>
+ </target>
+
+ <target name="testFTPURL">
+ <assertUrlReachable url="ftp://localhost"/>
+ </target>
+
+ <target name="testFile">
+ <assertUrlReachable url="file://build.xml"/>
+ </target>
+
+ <target name="testBadURL">
+ <assertUrlReachable url="uuid:3349-4404-0ac0ddee"/>
+ </target>
+
+ <target name="testBadTimeout">
+ <condition property="testBadTimeout">
+ <isreachable host="localhost" timeout="-1"/>
+ </condition>
+ </target>
+
+ <target name="testNoTargets">
+ <condition property="none">
+ <isreachable/>
+ </condition>
+ </target>
+</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreference.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreference.xml
new file mode 100644
index 00000000..d1f86db9
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/isreference.xml
@@ -0,0 +1,60 @@
+<?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="nope">
+ <path id="global-path-id"/>
+ <echo id="echo-id"/>
+
+ <target name="nope">
+ <fail>This build file should be run by a testcase</fail>
+ </target>
+
+ <target name="define">
+ <path id="target-path-id"/>
+ </target>
+
+ <target name="basic" depends="define">
+ <condition property="global-path">
+ <isreference refid="global-path-id"/>
+ </condition>
+ <condition property="target-path">
+ <isreference refid="target-path-id"/>
+ </condition>
+ </target>
+
+ <target name="isreference-incomplete">
+ <condition property="foo">
+ <isreference/>
+ </condition>
+ </target>
+
+ <target name="type">
+ <condition property="global-path">
+ <isreference refid="global-path-id" type="path"/>
+ </condition>
+ <condition property="global-path-as-fileset">
+ <isreference refid="global-path-id" type="fileset"/>
+ </condition>
+ <condition property="global-path-as-foo">
+ <isreference refid="global-path-id" type="foo"/>
+ </condition>
+ <condition property="global-echo">
+ <isreference refid="echo-id" type="echo"/>
+ </condition>
+ </target>
+
+</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/issigned.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/issigned.xml
new file mode 100644
index 00000000..7cbf328f
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/issigned.xml
@@ -0,0 +1,78 @@
+<?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="all">
+
+ <target name="pass" description="check if a name of pass is ok">
+ <fail message="name of pass not seen in the signed pass.jar">
+ <condition>
+ <not>
+ <issigned file="jars/pass.jar" name="pass"/>
+ </not>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="password" description="check if a name of password is *not* ok">
+ <fail message="name of password is seen in the signed pass.jar">
+ <condition>
+ <issigned file="jars/pass.jar" name="password"/>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="apassword" description="check if the 8 letter shorting works">
+ <fail message="8 letter shorting does not work 1">
+ <condition>
+ <not>
+ <issigned file="jars/apassword.jar" name="apasswor"/>
+ </not>
+ </condition>
+ </fail>
+ <fail message="8 letter shorting does not work 2">
+ <condition>
+ <not>
+ <issigned file="jars/apassword.jar" name="apassword"/>
+ </not>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="allsigned" description="check the signed / not signed status">
+ <fail message="pass.jar should be signed">
+ <condition>
+ <not>
+ <issigned file="jars/pass.jar"/>
+ </not>
+ </condition>
+ </fail>
+ <fail message="nosign.jar should not be signed">
+ <condition>
+ <issigned file="jars/nosign.jar"/>
+ </condition>
+ </fail>
+
+ <fail message="apassword.jar should be signed">
+ <condition>
+ <not>
+ <issigned file="jars/apassword.jar"/>
+ </not>
+ </condition>
+ </fail>
+ </target>
+
+</project>
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/apassword.jar b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/apassword.jar
new file mode 100644
index 00000000..6bd4af1f
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/apassword.jar
Binary files differ
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/nosign.jar b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/nosign.jar
new file mode 100644
index 00000000..d1b7f8d2
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/nosign.jar
Binary files differ
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/pass.jar b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/pass.jar
new file mode 100644
index 00000000..cd49f15d
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/jars/pass.jar
Binary files differ
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/parsersupports.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/parsersupports.xml
new file mode 100644
index 00000000..c80fd350
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/parsersupports.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0"?>
+<project name="parsersupports" >
+<!--
+ * 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.
+ *
+-->
+
+ <target name="testEmpty">
+ <condition property="empty">
+ <parsersupports />
+ </condition>
+ <fail>Expected failure before here</fail>
+ </target>
+
+ <target name="testBoth">
+ <condition property="both">
+ <parsersupports property="http://bar" feature="http://foo"/>
+ </condition>
+ <fail>Expected failure before here</fail>
+ </target>
+
+ <target name="testNamespaces">
+ <fail>
+ <condition >
+ <not>
+ <parsersupports feature="http://xml.org/sax/features/namespaces"/>
+ </not>
+ </condition>
+ Expected namespace support
+ </fail>
+ </target>
+
+ <target name="testPropertyInvalid">
+ <fail>
+ <condition>
+ <not>
+ <parsersupports
+ property="http://xml.org/sax/properties/declaration-handler"
+ value="undefined"/>
+ </not>
+ </condition>
+ Expected DTD declaration property settable.
+ </fail>
+ </target>
+
+ <target name="testPropertyNoValue">
+ <fail>
+ <condition>
+ <not>
+ <parsersupports
+ property="http://xml.org/sax/properties/declaration-handler"
+ />
+ </not>
+ </condition>
+ Expected no property
+ </fail>
+ </target>
+
+ <target name="testUnknownProperty">
+ <fail>
+ <condition>
+ <parsersupports property="http://org.apache.ant/something"
+ value="undefined"/>
+ </condition>
+ Expected unsupported property.
+ </fail>
+ </target>
+
+ <target name="testXercesProperty">
+ <fail>
+ <condition>
+ <not>
+ <parsersupports
+ property="http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"
+ value="parsersupports.xml"/>
+ </not>
+ </condition>
+ Expected XSD support on Xerces.
+ </fail>
+ </target>
+
+</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/typefound.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/typefound.xml
new file mode 100644
index 00000000..054ca673
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/typefound.xml
@@ -0,0 +1,75 @@
+<?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="typefound">
+
+
+ <target name="testTask">
+ <condition property="testTask">
+ <typefound name="echo"/>
+ </condition>
+ </target>
+
+
+ <target name="testUndefined">
+ <condition property="testUndefined">
+ <typefound />
+ </condition>
+ </target>
+
+ <target name="testTaskThatIsntDefined">
+ <condition property="testTaskThatIsntDefined">
+ <typefound name="invalid-and-undefined-task-name"/>
+ </condition>
+ </target>
+
+ <target name="testTaskThatDoesntReallyExist">
+ <taskdef name="invalid-task-name" onerror="ignore"
+ classname="org.example.invalid.task.name.hopefully"/>
+ <condition property="testTaskThatDoesntReallyExist">
+ <typefound name="invalid-task-name"/>
+ </condition>
+ </target>
+
+ <target name="testType">
+ <condition property="testType">
+ <typefound name="path"/>
+ </condition>
+ </target>
+
+ <target name="testPreset">
+ <presetdef name="important-echo">
+ <echo level="error"/>
+ </presetdef>
+ <condition property="testPreset">
+ <typefound name="important-echo"/>
+ </condition>
+ </target>
+
+ <target name="testMacro">
+ <macrodef name="error-message">
+ <element name="text" optional="false"/>
+ <sequential>
+ <echo level="error">@{text}</echo>
+ </sequential>
+ </macrodef>
+ <condition property="testMacro">
+ <typefound name="error-message"/>
+ </condition>
+ </target>
+
+</project> \ No newline at end of file
diff --git a/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/xor.xml b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/xor.xml
new file mode 100644
index 00000000..895dccdb
--- /dev/null
+++ b/framework/src/ant/apache-ant-1.9.6/src/etc/testcases/taskdefs/conditions/xor.xml
@@ -0,0 +1,112 @@
+<?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="all">
+
+<!--
+ Xor semantics
+
+ in out
+ == ===
+ 00 0
+ 01 1
+ 10 1
+ 00 0
+
+-->
+
+ <target name="testEmpty" >
+ <fail message="empty test">
+ <condition>
+ <xor/>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="test1" >
+ <fail message="testTrue">
+ <condition>
+ <not>
+ <xor>
+ <istrue value="true" />
+ </xor>
+ </not>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="test0" >
+ <fail message="testFalse">
+ <condition>
+ <xor>
+ <istrue value="" />
+ </xor>
+ </condition>
+ </fail>
+ </target>
+
+
+ <target name="test10" >
+ <fail message="test10">
+ <condition>
+ <not>
+ <xor>
+ <istrue value="true" />
+ <istrue value="" />
+ </xor>
+ </not>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="test01" >
+ <fail message="test01">
+ <condition>
+ <not>
+ <xor>
+ <istrue value="" />
+ <istrue value="true" />
+ </xor>
+ </not>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="test00" >
+ <fail message="test10">
+ <condition>
+ <xor>
+ <istrue value="" />
+ <istrue value="" />
+ </xor>
+ </condition>
+ </fail>
+ </target>
+
+ <target name="test11" >
+ <fail message="test11">
+ <condition>
+ <xor>
+ <istrue value="" />
+ <istrue value="" />
+ </xor>
+ </condition>
+ </fail>
+ </target>
+
+
+</project>