You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/11/11 00:19:29 UTC
DO NOT REPLY [Bug 40946] New: - stcheckout ignores convertEOL when used with "asofdate"
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40946>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40946
Summary: stcheckout ignores convertEOL when used with "asofdate"
Product: Ant
Version: 1.6.5
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Optional SCM tasks
AssignedTo: dev@ant.apache.org
ReportedBy: dawn.weiss@quest.com
The ant task, stcheckout, ignores the "convertEOL" option if used in
conjunction with the option,"asofdate", see example here:
<stcheckout servername="STARTEAMSERVER"
serverport="49201"
projectname="MyProject"
viewname="MyView"
username="user"
password="secret"
rootlocalfolder="C:\MyProject"
asofdate="20061110121500"
asofdateformat="yyyyMMddHHmmss"
forced="false"
userepositorytimestamp="true"
convertEOL="false"/>
I suspect line 493 from the sources taken from the Nov 07, 2006 build.
boolean success = eachFile.checkoutByLabelID(
localFile,
getIDofLabelInUse(),
this.lockStatus,
!this.useRepositoryTimeStamp,
true,<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Hard Coded to true
false);
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 40946] - stcheckout ignores convertEOL when used with "asofdate"
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40946>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40946
------- Additional Comments From eric.smith@mckesson.com 2007-07-13 10:51 -------
Hello. I wanted to report hitting a similar problem which is caused by the
same bug in StarTeamCheckout.java. Again stcheckout ignores convertEOL but in
this case when used with "label" to check out items associated with a specific
revision label.
It happens under ANT 1.7.0 using starteam80.jar (STARTEAM 2005 release 2).
The starteam SDK doc for checkoutByLabelID,
http://info.borland.com/techpubs/starteam/2005R2/EN_SDK/api/com/starbase/starte
am/File.html#checkoutByLabelID(java.io.File,%20int,%20int,%20boolean,%
20boolean,%20boolean), shows that the 5th argument is eol:
public boolean checkoutByLabelID(java.io.File checkoutTo,
int labelID,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
As originally reported in this bug the eol arg has been hardcoded to true in
\apache-ant-1.7.0
\src\main\org\apache\tools\ant\taskdefs\optional\starteam\StarTeamCheckout.java
; it looks like it should be using this.convertEOL as is already being done by
the checkout call in the same code:
eachFile.checkout(this.lockStatus,!this.useRepositoryTimeStamp,
this.convertEOL, false);
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org