summaryrefslogtreecommitdiffstats
path: root/test/antunit/property
diff options
context:
space:
mode:
authormattinger <[email protected]>2007-03-07 21:25:39 +0000
committermattinger <[email protected]>2007-03-07 21:25:39 +0000
commit1bce0a66a11f4cbf8d6bcc46fbd9a36cb7ebe64a (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /test/antunit/property
parent391a3b1becbcb9b778b8f86ff11793123ec04f78 (diff)
Removing old stuff
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/branches/ant-1.7.0-upgrade@99 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'test/antunit/property')
-rw-r--r--test/antunit/property/pathtofileset.xml75
-rw-r--r--test/antunit/property/propertycopy.xml42
-rw-r--r--test/antunit/property/propertyselector.xml44
-rw-r--r--test/antunit/property/variable.xml72
4 files changed, 0 insertions, 233 deletions
diff --git a/test/antunit/property/pathtofileset.xml b/test/antunit/property/pathtofileset.xml
deleted file mode 100644
index 8ce9292..0000000
--- a/test/antunit/property/pathtofileset.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<project name="pathtofileset"
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:antcontrib="antlib:net.sf.antcontrib">
- <import file="../common.xml" />
-
- <target name="setUp" depends="common.setUp">
- <property name="test.dir" value="${root.dir}/target/resources/pathtofileset"/>
- <mkdir dir="${test.dir}/0/0"/>
- <mkdir dir="${test.dir}/0/1"/>
- <mkdir dir="${test.dir}/1/0"/>
- <mkdir dir="${test.dir}/1/1"/>
- <touch file="${test.dir}/0/0/0.java"/>
- <touch file="${test.dir}/0/1/1.java"/>
- <touch file="${test.dir}/1/0/2.java"/>
- <touch file="${test.dir}/1/1/3.java"/>
- </target>
-
- <target name="testSimple">
- <path id="simple">
- <fileset dir="${test.dir}/0" includes="**/*.java"/>
- <fileset dir="${test.dir}/1" includes="**/*.java"/>
- </path>
-
- <antcontrib:pathtofileset
- dir="${test.dir}/0"
- pathrefid="simple"
- ignoreNonRelative="yes"
- name="simple.0.fileset"/>
-
- <pathconvert
- targetos="unix"
- refid="simple.0.fileset"
- property="simple.0.property"/>
-
- <antcontrib:pathtofileset
- dir="${test.dir}/1"
- pathrefid="simple"
- ignoreNonRelative="yes"
- name="simple.1.fileset"/>
-
- <pathconvert
- targetos="unix"
- refid="simple.1.fileset"
- property="simple.1.property"/>
-
-
- <au:assertTrue>
- <and>
- <contains string="${simple.0.property}" substring="0.java" />
- <contains string="${simple.0.property}" substring="1.java" />
- <not><contains string="${simple.0.property}" substring="2.java" /></not>
- <not><contains string="${simple.0.property}" substring="3.java" /></not>
- <contains string="${simple.1.property}" substring="2.java" />
- <contains string="${simple.1.property}" substring="3.java" />
- <not><contains string="${simple.1.property}" substring="0.java" /></not>
- <not><contains string="${simple.1.property}" substring="1.java" /></not>
- </and>
- </au:assertTrue>
- </target>
-
- <target name="testSimpleException">
- <path id="simple">
- <fileset dir="${test.dir}/0" includes="**/*.java"/>
- <fileset dir="${test.dir}/1" includes="**/*.java"/>
- </path>
-
- <au:expectfailure expectedMessage="is not relative to">
- <antcontrib:pathtofileset
- dir="${test.dir}/0"
- pathrefid="simple"
- name="simple.0.fileset"/>
- </au:expectfailure>
- </target>
-
-</project> \ No newline at end of file
diff --git a/test/antunit/property/propertycopy.xml b/test/antunit/property/propertycopy.xml
deleted file mode 100644
index 87f5d6e..0000000
--- a/test/antunit/property/propertycopy.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<project name="propertycopy"
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:antcontrib="antlib:net.sf.antcontrib">
- <import file="../common.xml" />
-
- <target name="testCopy">
- <property name="org" value="MyOrg" />
- <property name="org.MyOrg.DisplayName" value="My Organiziation" />
- <antcontrib:propertycopy name="displayName" from="org.${org}.DisplayName" />
-
- <au:assertPropertyEquals name="displayName"
- value="${org.MyOrg.DisplayName}"
- message="displayName failed" />
- </target>
-
- <target name="testSilent">
- <antcontrib:propertycopy name="foo" from="bar" silent="true"/>
- <au:assertTrue>
- <not>
- <isset property="foo" />
- </not>
- </au:assertTrue>
- </target>
-
- <target name="testNotSilent">
- <au:expectfailure expectedmessage="Property 'bar' is not defined.">
- <antcontrib:propertycopy name="foo" from="bar"/>
- </au:expectfailure>
- </target>
-
- <target name="testMissingName">
- <au:expectfailure expectedmessage="You must specify a property to set.">
- <antcontrib:propertycopy from="bar"/>
- </au:expectfailure>
- </target>
-
- <target name="testMissingFrom">
- <au:expectfailure expectedmessage="Missing the 'from' attribute.">
- <antcontrib:propertycopy name="foo"/>
- </au:expectfailure>
- </target>
-</project> \ No newline at end of file
diff --git a/test/antunit/property/propertyselector.xml b/test/antunit/property/propertyselector.xml
deleted file mode 100644
index 016f159..0000000
--- a/test/antunit/property/propertyselector.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<project name="propertycopy"
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:antcontrib="antlib:net.sf.antcontrib">
- <import file="../common.xml" />
-
- <property name="module.Module1.id" value="1" />
- <property name="module.Module1.name" value="Module 1" />
- <property name="module.Module2.id" value="2" />
- <property name="module.Module2.name" value="Module 2" />
- <property name="module.Module2.foo.id" value="3" />
- <property name="module.Module2.foo.name" value="Module 3" />
-
- <target name="testGrouping0">
- <antcontrib:propertyselector property="module.list"
- match="module\.([^\.]*)\.id"
- delimiter=","
- casesensitive="false" />
-
- <au:assertTrue>
- <and>
- <contains string="${module.list}" substring="module.Module1.id" />
- <contains string="${module.list}" substring="module.Module2.id" />
- <not><contains string="${module.list}" substring="module.Module3.foo.id" /></not>
- </and>
- </au:assertTrue>
- </target>
-
- <target name="testGrouping1">
- <antcontrib:propertyselector property="module.list"
- match="module\.([^\.]*)\.id"
- select="\1"
- delimiter=","
- casesensitive="false" />
- <au:assertTrue>
- <and>
- <not><contains string="${module.list}" substring="module." /></not>
- <not><contains string="${module.list}" substring=".id" /></not>
- <contains string="${module.list}" substring="Module1" />
- <contains string="${module.list}" substring="Module2" />
- <not><contains string="${module.list}" substring="Module3" /></not>
- </and>
- </au:assertTrue>
- </target>
-</project> \ No newline at end of file
diff --git a/test/antunit/property/variable.xml b/test/antunit/property/variable.xml
deleted file mode 100644
index acd3ad1..0000000
--- a/test/antunit/property/variable.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-<project name="propertycopy"
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:antcontrib="antlib:net.sf.antcontrib">
- <import file="../common.xml" />
-
- <!-- use like a standard property -->
- <target name="test1">
- <antcontrib:var name="x" value="6" />
- <au:assertPropertyEquals name="x" value="6" />
- </target>
-
- <!-- use like a standard property -->
- <target name="test2">
- <antcontrib:var name="x" value="12" />
- <au:assertPropertyEquals name="x" value="12" />
- </target>
-
- <!-- can append to itself -->
- <target name="test3">
- <antcontrib:var name="x" value="12" />
- <antcontrib:var name="x" value="6 + ${x}" /> <!-- 6 + 12 -->
- <au:assertPropertyEquals name="x" value="6 + 12" />
- </target>
-
- <!-- property can't override -->
- <target name="test4">
- <antcontrib:var name="x" value="6" />
- <property name="x" value="12" />
- <au:assertPropertyEquals name="x" value="6" />
- </target>
-
- <!-- can append multiple times -->
- <target name="test5">
- <antcontrib:var name="str" value="I" />
- <antcontrib:var name="str" value="${str} am" />
- <antcontrib:var name="str" value="${str} a" />
- <antcontrib:var name="str" value="${str} string." />
- <au:assertPropertyEquals name="str" value="I am a string." />
- </target>
-
- <!-- property can't override -->
- <target name="test6">
- <antcontrib:var name="x" value="blue" />
- <tstamp>
- <format property="x" pattern="EEEE" />
- </tstamp>
- <antcontrib:var name="x" value="Today is ${x}."/>
- <au:assertPropertyEquals name="x" value="Today is blue." />
- </target>
-
- <!-- can override property -->
- <target name="test7">
- <property name="x" value="12" />
- <antcontrib:var name="x" value="6" />
- <au:assertPropertyEquals name="x" value="6" />
- </target>
-
- <target name="test9">
- <property name="i" value="2"/>
- <antcontrib:var name="i" unset="true"/>
- <au:assertTrue>
- <not><isset property="i" /></not>
- </au:assertTrue>
- </target>
-
- <target name="test10">
- <antcontrib:var name="x" value="test"/>
- <antcontrib:var name="x" unset="true"/>
- <property name="x" value="xxx"/>
- <au:assertPropertyEquals name="x" value="xxx" />
- </target>
-</project> \ No newline at end of file