iirc, that would copy the *contents* of ${source} under ${tdestination}

try this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="bollo" default="copydir" basedir=".">

    <target name="copydir">
        <copy todir="y">
            <fileset dir=".">
                <include name="x"/>
            </fileset>
        </copy>
    </target>
    
</project>

/t


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
>Of yitzle
>Sent: Friday, June 15, 2007 2:59 PM
>To: Ant Users List
>Subject: Re: Whats the best syntax to use for a directory copy?
>
>On 6/14/07, Jim C. <[EMAIL PROTECTED]> wrote:
>> I have directory X and I want to copy it such that the copy becomes a
>> subdirectory of directory Y.  What's the easiest way to 
>accomplish this?
>
>I suggest:
>
>       <target name="directoryCopy">
>               <copy todir="${tdestination}">
>                       <fileset dir="${source}" />
>               </copy>
>       </target>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to