Summary: | mkdir task parses path incorrectly when it includes "../" - Fix included. | ||
---|---|---|---|
Product: | Ant | Reporter: | Levent Guendogdu <l.guendogdu> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 1.6.5 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | Linux |
Description
Levent Guendogdu
2005-10-27 15:28:08 UTC
dir will already be normalized, this happens when Ant translates the string from dir="..." to the File instance passed to setDir. I can't see any problem with stefan@www:~/ASF/ant/ant-HEAD> cat test.xml <project basedir=".."> <mkdir dir="ant-HEAD/../../foo"/> </project> stefan@www:~/ASF/ant/ant-HEAD> ant -f test.xml Buildfile: test.xml [mkdir] Created dir: /home/stefan/ASF/foo BUILD SUCCESSFUL Total time: 1 second |