Just spelling out the answer already given, which is correct.
Just spelling out the answer already given, which is correct... This moves foo to foo-HHMM. For example: $ find . .. /build.
Xml . /foo . /foo/bar.
Txt $ $ ant Buildfile: C:\tmp\ant\build. Xml move: BUILD SUCCESSFUL Total time: 0 seconds $ $ find . .. /build.
Xml . /foo-1145 . /foo-1145/bar.
Txt $.
I change tofile to todir and it works fine. Thanks. – JLau Jul 1 '09 at 18:54 I tried tofile and todir, neither work.It complains that 'foo' cannot be found - it exists, but is a directory.
– Daniel Earwicker Oct 13 at 10:35 Works for me. Is the foo in the same dir as build. Xml?
– sudocode Oct 13 at 10:45.
I think the move task is what you want. Is there some reason you don't want to use it? It sounds like you're proposing moving the folder in which your build.
Xml file lives. Is that right? If so, I imagine ant might not be too happy it.
Right now in my build. Xml I have it to delete the folder and then unzip a zip file which automatically creates a new folder with the same folder name. Now instead of delete the folder,I'd like to have it renamed with a timestamp appended to the folder name.
– JLau Jun 25 '09 at 12:51.
The move task does do what you're after, but the naming is a bit confusing. If you consider your directory is a 'file' in the Java sense - a file being a filesystem handle that can represent, among others a directory or a file in the usual sense - then the move task makes sense. So the following means rename/move the directorymySourceDirName to be instead myTargetDirName.
The following then means to move the directory mySourceDirName to become a child directory of the existing someExistingDir directory. So, in ant the 'file' attribute refers to the target in question, and the 'todir' attribute refers to the directory that is the new parent location for the target file or directory.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.