On 23 Jun 2005 09:32:12 -0700,
wrote:
> I'm trying to use the ant copy task to copy a directory plus all its
> contents and subdirectories to a new directory e.g.
>
> Source directory is d:\temp\dir1
>
> Target directory is c:\temp
>
> I want to execute the copy task on d:\temp\dir1 and end up with
> c:\temp\dir1
<not sure>
Make the target directory "c:\temp\dir1" or "c:\temp\dir1\" ?
</not sure>
I am pretty sure that ANT offers either
- automatic directory creation, or..
- the ability to make the directory specifically.
As an aside, your use of file/directory naming appears 'suspicious'.
1) If a drive is 'C' - I strongly recommend you refer to it
as 'C', rether than 'c'. Remove possible errors before they are
encountered in some possibly fragile code.
2) A quick check of some of the ANT build.xml's on my
system, (largely obtained from folks that know what
they are doing), use the '/' consistently, and these
build files work just fine on Windows. I suggest you
use forward slashes.
So 'c:\temp\dir1' -> 'C:/temp/dir1'
HTH
--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane