https://issues.apache.org/bugzilla/show_bug.cgi?id=46614
Summary: <rename required to rename a folder
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: patricia_shan8@hotmail.com
Rename is deprecated, but it is needed to rename a folder.
Using Move does not rename the folder, it creates a new one, w/o the folders
and files in the old one.
This happened whether I used fileset, or file.
Please keep Rename :)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46614]
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46614
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2009-01-27 20:57:34 PST ---
Hmm,
seems to work using
<project>
<mkdir dir="${java.io.tmpdir}/foo/bar"/>
<touch file="${java.io.tmpdir}/foo/baz"/>
<move file="${java.io.tmpdir}/foo"
tofile="${java.io.tmpdir}/xyzzy"/>
</project>
stefan@birdy:~$ ant -f /tmp/test.xml
Buildfile: /tmp/test.xml
[mkdir] Created dir: /tmp/foo/bar
[touch] Creating /tmp/foo/baz
BUILD SUCCESSFUL
Total time: 0 seconds
stefan@birdy:~$ ls /tmp/xyzzy/
bar baz
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.