ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Bacon <jba...@magmic.com>
Subject Re: stupid copy question
Date Fri, 25 Jun 2004 22:11:39 GMT
but if I'm copying a ${src.dir}/**/* will it create [toDir]/src for me 
and put the stuff there?
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Mani G. Iyer wrote:
> You need to create whatever you set in todir.  The copy task will not create
> the todir for you.  HTH
> mani
> 
> -----Original Message-----
> From: Jeffrey Bacon [mailto:jbacon@magmic.com] 
> Sent: Friday, June 25, 2004 6:03 PM
> To: Ant Users List
> Subject: Re: stupid copy question
> 
> done.
> 
> do I need to make the temp/src and temp/res directories and then do this:
> 
> <copy preservelastmodified="true"
>         todir="${basedir}/${temp.dir}/${src.dir}"
>         overwrite="yes"
>         failonerror="true">
>       <fileset dir="${basedir}/${fromDir}/${src.dir}"
>                includes="${src.includes}"
>                excludes="${src.excludes}" />
> </copy>
> <copy preservelastmodified="true"
>         todir="${basedir}/${temp.dir}/${res.dir}"
>         overwrite="yes"
>         failonerror="true">
>       <fileset dir="${basedir}/${fromDir}/${res.dir}"
>                includes="${res.includes}"
>                excludes="${res.excludes}" />
> </copy>
> 
> --
> Jeffrey Bacon
> jbacon@magmic.com
> Creative Developer
> http://www.magmic.com
> 
> 
> Mani G. Iyer wrote:
> 
>>I think you need to do  a <mkdir dir="${basedir}/${temp.dir}" /> before
> 
> the
> 
>>copy.  HTH.
>>mani
>>
>>-----Original Message-----
>>From: Jeffrey Bacon [mailto:jbacon@magmic.com]
>>Sent: Friday, June 25, 2004 5:34 PM
>>To: Ant Users List
>>Subject: stupid copy question
>>
>>ok, so I have directory with 'src' and 'res' subdirectories.  I want to
>>copy the src & res dirs to the temp directory preserving thier directory
>>structure but using a inclues/excludes pattern to onle copy certain
>>files (ex. *.java & *.png).  I though the below would do that but it
>>doesn't see to copy anything or create the temp/src and temp/res dirs.
>>
>><copy preservelastmodified="true"
>>       todir="${basedir}/${temp.dir}"
>>       overwrite="yes"
>>       failonerror="true">
>>     <fileset dir="${basedir}/${fromDir}"
>>              includes="${src.dir}/${src.includes}"
>>              excludes="${src.dir}/${src.excludes}" />
>>     <fileset dir="${basedir}/${fromDir}"
>>              includes="${res.dir}/${res.includes}"
>>              excludes="${res.dir}/${res.excludes}" />
>></copy>
>>
>>-- 
>>-- 
>>Jeffrey Bacon
>>jbacon@magmic.com
>>Creative Developer
>>http://www.magmic.com
>>
>>---------------------------------------------------------------------
>>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
>>
> 
> 
> ---------------------------------------------------------------------
> 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
> 

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


Mime
View raw message