You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2001/12/25 07:14:40 UTC
cvs commit: jakarta-ant/src/etc/testcases/taskdefs loadfile.xml
stevel 01/12/24 22:14:40
Added: src/etc/testcases/taskdefs loadfile.xml
Log:
new loadfile task
Revision Changes Path
1.1 jakarta-ant/src/etc/testcases/taskdefs/loadfile.xml
Index: loadfile.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="loadfile-test" basedir="." default="testLoadAFile">
<!-- this is a latin one file containing the UKP � symbol -->
<target name="init">
</target>
<target name="testNoSourcefileDefined" depends="init">
<loadfile property="foo" />
</target>
<target name="testNoPropertyDefined"
depends="init">
<loadfile srcFile="somefile" />
</target>
<target name="testNoSourcefilefound"
depends="init">
<loadfile property="missing" srcFile="somefile" />
</target>
<target name="testFailOnError"
depends="init">
<loadfile
property="testFailOnError"
srcFile="somefile"
failonerror="false"/>
</target>
<target name="testLoadAFile"
depends="init">
<echo
message="What's it going to be then, eh?"
file="loadfile1.tmp"
/>
<loadfile property="testLoadAFile" srcFile="loadfile1.tmp" />
<echo>${testLoadAFile}</echo>
</target>
<target name="testLoadAFileEnc"
depends="init">
<loadfile property="testLoadAFileEnc"
srcFile="loadfile.xml"
encoding="ISO-8859-1"/>
</target>
<target name="cleanup">
<delete file="loadfile1.tmp"/>
</target>
</project>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>