File: XmlPropertyTaskTest.xml

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (14 lines) | stat: -rw-r--r-- 572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<project name="XmlPropertyTaskTest" default="testXmlPropertyFile" basedir=".">

    <target name="testXmlPropertyFile" description="Loading properties with XmlPropertyTask">
        <xmlproperty file="../properties.xml"/>
        <echo>Username: ${config.username}</echo>
        <echo>Temp dir: ${config.temp-dir}</echo>
    </target>

    <target name="testOptionalMissingFileShouldNotFail" description="A missing optional file should not fail the build">
        <xmlproperty file="always-missing.xml"/>
    </target>

</project>