~ubuntu-branches/ubuntu/wily/maven-antrun-plugin/wily

« back to all changes in this revision

Viewing changes to src/it/custom-task-test/build.xml

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-07-19 19:38:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110719193853-4umqiv4uwqcbrdd0
Tags: 1.6-1
* Team upload.
* New upstream release.
* Bump Standards-Version to 3.9.2. No changes were required.
* Migrate to source package format 3.0 (quilt).
* Allow package to build twice in a row.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<project name="test1">
 
3
 
 
4
    <target name="test">
 
5
 
 
6
        <property name="property1" value="value"/>
 
7
        <property name="property2" value="${property1}"/>
 
8
        <property name="property3" value="prefix ${property1}"/>
 
9
        <echo>P1: ${property1}</echo>
 
10
        <echo>P2: ${property2}</echo>
 
11
        <echo>P3: ${property3}</echo>
 
12
        <echo message="P1: ${property1}"/>
 
13
        <echo message="P2: ${property2}"/>
 
14
        <echo message="P3: ${property3}"/>
 
15
        <echo message="${property1}"/>
 
16
        <echo message="${property2}"/>
 
17
        <echo message="${property3}"/>
 
18
 
 
19
        <fail message="Some property contains null in build.xml">
 
20
          <condition>
 
21
            <or>
 
22
              <contains string="${property1}" substring="null" casesensitive="no"/>
 
23
              <contains string="${property2}" substring="null" casesensitive="no"/>
 
24
              <contains string="${property3}" substring="null" casesensitive="no"/>
 
25
            </or>
 
26
          </condition>
 
27
        </fail>
 
28
 
 
29
    </target>
 
30
 
 
31
</project>