summaryrefslogtreecommitdiffstats
path: root/test/resources/property/propertyselector.xml
blob: d03eea0558605e8ddad71539e8c815c20e60afe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<project name="Project" default="build" basedir=".">

    <taskdef resource="net/sf/antcontrib/antcontrib.properties" />

    <property file="propertyselector.properties" />

    <target name="init">
        <taskdef resource="net/sf/antcontrib/antcontrib.properties">
            <classpath location="${antcontrib.jar}"/>
        </taskdef>
        <property file="propertyselector.properties" />
    </target>

    <target name="select.test.grouping.0" depends="init">
        <propertyselector property="module.list"
            match="module\.([^\.]*)\.id"
            delimiter=","
            casesensitive="false" />

        <echo message="${module.list}" />
    </target>

    <target name="select.test.grouping.1" depends="init">
        <propertyselector property="module.list"
            match="module\.([^\.]*)\.id"
            select="\1"
            delimiter=","
            casesensitive="false" />

        <echo message="${module.list}" />
    </target>

</project>