ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject RE: Cannot copy an entire directory into another directory :(
Date Fri, 01 Nov 2002 21:03:33 GMT
The correct way:

  <copy todir="${dist.www.dir}/${www.dir.name}">
    <fileset dir="${www.dir}"/>
  </copy>


- Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
{ http://www.inventigo.com/ } Inventigo LLC
Pleasant Hill, CA (GMT-8 usually)


-----Original Message-----
From: David McTavish [mailto:dmctavish@SANDVINE.com] 
Sent: Friday, November 01, 2002 12:59 PM
To: 'Ant Users List'
Subject: RE: Cannot copy an entire directory into another directory :(

try


  <copy todir="${dist.www.dir}">
    <fileset dir="${www.dir}/..">
       <include name="${www.dir}/**/*" />
    </fileset>
  </copy>


d.

-----Original Message-----
From: Ben Hart [mailto:ben.hart@itouch.co.uk] 
Sent: Friday, November 01, 2002 8:30 AM
To: 'ant-user@jakarta.apache.org'
Subject: Cannot copy an entire directory into another directory :(


I want to copy a directory (with contents + subdirectories) into another.
According to the ant manual, this should work:

  <copy todir="${dist.www.dir}">
    <fileset dir="${www.dir}"/>
  </copy>

However, this copies the contents of ${www.dir} into ${dist.www.dir}, not
${www.dir} itself. Am I missing something?

I am using Ant 1.4.1.

Cheers,

Ben
IMPORTANT NOTICE: This is an email from iTouch UK Ltd.  We do not accept
responsibility for any changes to this email or its attachments made after
we have transmitted it.  We do not accept responsibility for attachments by
others to this email. INTERNET E-MAIL CONFIDENTIALITY CLAUSE: The
information contained in this document (including any attachment) is
CONFIDENTIAL and may also be LEGALLY PRIVILEGED and is intended only for the
addressee. All comments made are without prejudice. If you are not the
addressee, you are hereby notified that any use or dissemination of this
information and the copying of the document is strictly prohibited. If you
are not the addressee, please notify us immediately by phone on +44 (0)20
7613 6000 then delete this email together with all attachments. VIRUSES:
iTouch UK Ltd. does not represent or warrant that the files attached to this
email are free from computer viruses or other defects. Any attached files
are provided, and may be used, on the basis that the user assumes
responsibility for any loss, damage or consequence resulting directly or
indirectly from the use of the attached files.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message