ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RADEMAKERS Tanguy" <Tanguy.RADEMAK...@swift.com>
Subject RE: Whats the best syntax to use for a directory copy?
Date Fri, 15 Jun 2007 13:42:54 GMT
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: anexpert@gmail.com [mailto:anexpert@gmail.com] 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. <jlistnews@gmail.com> 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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message