ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Pracht <bpra...@nc.rr.com>
Subject FixCRLF not processing files specified
Date Fri, 06 Feb 2004 19:51:27 GMT
I'm trying to remove the EOF's and reformat source files to keep
the GCC people happy.  Unfortuanately, I can get the FixCRLF task to
work on one file, but not on my source tree.

I have code like this:
         <fixcrlf srcdir="native"
                  eof="remove">
                 <include name="ephcmwin.c"/>
         </fixcrlf>

which works, and
         <apply executable="ls"
               dir="filtered_source/debug/Linux/2.4.18-14/i386"
                failonerror="true">
             <arg line="-ld"/>
             <fileset dir="filtered_source/debug/Linux/2.4.18-14/i386">
               <include name="**/*.c"/>
               <include name="**/*.cpp"/>
               <include name="**/*.h"/>
               <include name="**/*.hpp"/>
               <include name="**/*.java"/>
               <include name="**/*.txt"/>
               <include name="**/*.fgl"/>
               <include name="**/*.shl"/>
               <include name="**/*.rul"/>
               <include name="**/*.ipr"/>
             </fileset>
         </apply>

which lists all the files I want to process, and

         <fixcrlf srcdir="filtered_source/debug/Linux/2.4.18-14/i386"
                  eof="remove">
               <include name="**/*.c"/>
               <include name="**/*.cpp"/>
               <include name="**/*.h"/>
               <include name="**/*.hpp"/>
               <include name="**/*.java"/>
               <include name="**/*.txt"/>
               <include name="**/*.fgl"/>
               <include name="**/*.shl"/>
               <include name="**/*.rul"/>
               <include name="**/*.ipr"/>
         </fixcrlf>

which was supposed to fix the CRLF/EOF issues to keep GCC/G++ from
fussing.

The apply task lists all the files I'm interested in.  The second 
fixcrlf task does nothing that I can see.  When I looked at the 
documentation and source, it looked like it checked timestamps between 
the source and destination directories.  I want to do an inplace 
transformation, so comparing timestamps doesn't make any sense.  But in 
case it does somehow make sense to someone, is there any way I can force
the fixcrlf task to just do it?

Btw.  Would anyone else be interested in this being implemented as a 
Filter also?

Thanks,
Ben Pracht
Thanks in advance,
Ben



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message