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 21:58:44 GMT
I am using this format:

<property name="fromDir" value="xxx"/>

(actually, fromDir is an attribute in a macrodef which enclosed all this 
so it's: <attribute name="fromDir" value="" /> and I reference it with 
@{fromDir})

--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Alexey N. Solofnenko wrote:
> I think you defined fromDir as following:
> 
> <property name="fromDir" location="xxx"/>
> 
> In that case fromDir becomes a full path. If this is true, please use
> the following:
> 
> <property name="fromDir" value="xxx"/>
> 
> - Alexey.
> 
> Jeffrey Bacon wrote:
> 
>  > 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>
>  >
> 
> ---------------------------------------------------------------------
> 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