ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: FixCRLF and Concat classes question
Date Thu, 06 Jul 2006 06:03:17 GMT
line.separator is set by the JVM.
Why you dont use "eol" attribute?

Jan 


>-----Urspr√ľngliche Nachricht-----
>Von: Alex Egg [mailto:eggie5@gmail.com] 
>Gesendet: Mittwoch, 5. Juli 2006 22:58
>An: user@ant.apache.org
>Betreff: FixCRLF and Concat classes question
>
>Hi,
>
>I notice that the Concat class constructor called a reset 
>method which reads a system property called line.separator, like this:
>
>   public Concat <javascript:searchRef('Concat')>() {
>        reset <javascript:searchRef('reset')>();
>    }
>
>    /**
>     * Reset state to default.
>     */
>    public void reset <javascript:searchRef('reset')>() {
>        append <javascript:searchRef('append')> = false;
>        forceOverwrite <javascript:searchRef('forceOverwrite')> = true;
>        destinationFile 
><javascript:searchRef('destinationFile')> = null;
>        encoding <javascript:searchRef('encoding')> = null;
>        outputEncoding <javascript:searchRef('outputEncoding')> = null;
>        fixLastLine <javascript:searchRef('fixLastLine')> = false;
>        filterChains <javascript:searchRef('filterChains')> = null;
>        footer <javascript:searchRef('footer')> = null;
>        header <javascript:searchRef('header')> = null;
>        binary <javascript:searchRef('binary')> = false;
>        outputWriter <javascript:searchRef('outputWriter')> = null;
>        textBuffer <javascript:searchRef('textBuffer')> = null;
>        eolString <javascript:searchRef('eolString')> = System 
><javascript:searchRef('System')>.getProperty
><javascript:searchRef('getProperty')>("line.separator");
>        rc <javascript:searchRef('rc')> = null;
>    }
>
>
>Now, when I run my ant build, I specify the property via the 
>command line like, -Dline.separator=\r\n. However, the file I 
>generate with Concat only uses LF's as line breaks? Why is 
>this so, and how can I specify the line breaks I want Concat 
>to use? Does anybody have expiring specif tying line breaks 
>with Concat, and did it work?
>
>Thanks
>

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


Mime
View raw message