On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote:
> If you haven't written one already, you might try the attached 
> build.xml.  Drop it in /tmp, copy some text file over as 
> /tmp/YourTextFile (or edit the "includes" value in build.xml, and run 
> ant.  The text file will be modified in place.

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
--

I've attached a typescript file of an attempt.

Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          [EMAIL PROTECTED]
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/
Script started on Fri Jul 20 09:21:06 2001
[gregor@sarek ant-test]$ cat build.xml
<?xml version="1.0"?>

<project default="testCRLF" basedir=".">
  <taskdef name="fixcrlf"
           classname="org.apache.tools.ant.taskdefs.FixCRLF"/>
  <target name="testCRLF">
    <fixcrlf srcdir="."
                   includes="YourTextFile"
                   tab="remove"
             cr="remove"
                   eof="remove"
                   />
  </target>

</project>

[gregor@sarek ant-test]$ cat YourTextFile
<?xml version="1.0"?>

<project default="testCRLF" basedir=".">
  <taskdef name="fixcrlf"
           classname="org.apache.tools.ant.taskdefs.FixCRLF"/>
  <target name="testCRLF">
    <fixcrlf srcdir="."
                   includes="YourTextFile"
                   tab="remove"
             cr="remove"
                   eof="remove"
                   />
  </target>

</project>

[gregor@sarek ant-test]$ time ant


real    37m19.108s
user    0m0.270s
sys     0m0.120s
[gregor@sarek ant-test]$ ls
build.xml  typescript  YourTextFile
[gregor@sarek ant-test]$ exit
exit

Script done on Fri Jul 20 09:58:45 2001

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to