ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Chmura" <B...@Explosivo.com>
Subject RE: Problem with FixCRLF
Date Wed, 04 Jun 2003 02:25:03 GMT
The wisdom of the lists is amazing...

Thanks much for the sample code too!



-----Original Message-----
From: W. Sean Hennessy [mailto:shennessy@goldenhourdata.com] 
Sent: Tuesday, June 03, 2003 9:54 PM
To: Ant Users List
Subject: RE: Problem with FixCRLF


Amending the previous post contents following test results..

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

-----Original Message-----
From: W. Sean Hennessy [mailto:shennessy@goldenhourdata.com]
Sent: Tuesday, June 03, 2003 6:39 PM
To: Ant Users List
Subject: RE: Problem with FixCRLF


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




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




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


Mime
View raw message