ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <shenne...@goldenhourdata.com>
Subject RE: Problem with FixCRLF
Date Wed, 04 Jun 2003 01:38:36 GMT
Credit Conor one wager..

So for HTML files one could help <fixcrlf> with the use of a fileset to
exclude those SHIFT_JIS files provided the charset attribute is set.
What is one to do with those free form files (*.txt)? Embed comments to
declare encodeing?

<target name="non.nippondenso.fixcrlf.tgt">
  <fileset dir="${webroot.dir}" includes="**/*.html">
      <not>
       <contains text="charset=SHIFT_JIS" casesensitive="no"/>
      </not>
  </fileset>
  <fixcrlf srcdir="${webroot.dir}" eol="lf"
     javafiles="no"
     defaultexcludes="yes" >
  </fixcrlf>
</target>

-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Tuesday, June 03, 2003 5:04 PM
To: Ant Users List
Subject: Re: Problem with FixCRLF


On Wed, 4 Jun 2003 08:12 am, W. Sean Hennessy wrote:
> I'll wager the fixcrlf task is not multi-byte char set capable.

I'll take that wager :-)

The fixcrlf task is multi-byte capable but, as Antoine stated, you need to
tell it the encoding used for the files to be processed. The encoding
attribute allows you to specify this and it defaults to the platform default
encoding, which in many cases is not multi-byte. This has been available
since Ant 1.5

Conor


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




Mime
View raw message