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 35360] New: - ${basedir} can contain spaces
Date Tue, 14 Jun 2005 12:47:51 GMT
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=35360>.
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=35360

           Summary: ${basedir} can contain spaces
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: joerg@domaschka.org


when having a new project
<project name="xy" basedir=".">...</project>
the basedir representation does not take care of spaces in the current 
directory. this may become critical, if basedir is a parameter to a task 
(includepath for a preprocessor in my case). Instead of taking the entire 
basedir the called task takes the first part of basedir as the parameter. What 
happens to the second part (after the blank) is task dependent.

on sun solaris the situation is the same; thus I thik this behaviour is Java 
dependent. Ant uses java.io.File to change basedir to a string. File doesn't 
seem to take care of blanks in the name.

So perhaps it would make sense to extend java.io.File by a file implementation 
has it's own toString or whatever method

-- 
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


Mime
View raw message