ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18884] New: - stcheckout should handle a convertCRLF flag
Date Wed, 09 Apr 2003 22:11:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18884>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18884

stcheckout should handle a convertCRLF flag

           Summary: stcheckout should handle a convertCRLF flag
           Product: Ant
           Version: 1.5.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: aaron_deforest@rosettabio.com


The stcheckout optional task should be able to checkout files without messing 
with the eol characters.

When you use this task to checkout Unix files onto an NT system, say, all of 
the files are in DOS format.  The fixcrlf task doesn't help me in this 
situation because some of my files are in binary format.

I looked in the StarTeamCheckout class and in StarTeam's API and I think all 
you have to do is something like ,...

add:
    private boolean convertCRLF = true;

    public void setConvertCRLF(boolean value) {
        this.convertCRLF = value;
    }

change line 533 (in 1.5.3 source) to:
                 !this.useRepositoryTimeStamp, this.convertCRLF, true);

Mime
View raw message