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 14128] New: - PVCS CreateFolders method is incorrect
Date Thu, 31 Oct 2002 14:25:46 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=14128>.
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=14128

PVCS CreateFolders method is incorrect

           Summary: PVCS CreateFolders method is incorrect
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: mpfeifer@sprynet.com


The PVCS CreateFolders method currently has...

if (line.startsWith("\"\\") ||
                    line.startsWith("\"/") ||
                    line.startsWith(getLineStart())) {

However to get it to work, we had to use the following:

if(line.startsWith("\"\\") ||
				               line.startsWith("\"/") ||
				               (line.length() > 3
				                && line.startsWith("\"") &&
				                Character.isLetter(line.charAt
(1)) &&
				                String.valueOf(line.charAt
(2)).equals(":") &&
				                String.valueOf(line.charAt
(3)).equals("\\")
                )) {

Thanks,
Mark

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message