ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Jones" <robertgbjo...@gmail.com>
Subject Re: Copying everything except one file
Date Wed, 06 Aug 2008 19:32:22 GMT
On Wed, Aug 6, 2008 at 8:28 PM, <dave.alvarado@remanresource.com> wrote:

> Hi,
>
> I'm using this command to copy a directory
>
>  <target name="copyDevConf"
> depends="dev-create-log-dir,dev-create-conf-dir">
>        <delete>
>                <fileset dir="${conf-dir}">
>                        <include name="*.properties"/>
>                </fileset>
>        </delete>
>        <copy toDir="${conf-dir}">
>                 <fileset dir="${basedir}/conf/dev">
>                   <include name="*.properties"/>
>                 </fileset>
>       </copy>
>  </target>
>
> but what I would like to copy all files in that directory except the one
> named "mine.properties".  What is the quickest way to do this?
>
>  - Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
After the<include ...> line use <exclude name="mine.properties">.

-- 
ACCU - Professionalism in programming - http://www.accu.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message