ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/etc/testcases/taskdefs loadfile.xml
Date Tue, 25 Dec 2001 06:14:40 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message