ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Rodriguez <Anth...@WeddingChannel.com>
Subject RE: copy task with excludes
Date Fri, 07 Dec 2001 18:33:19 GMT
Thanks.  That is exactly what I wanted to do.  I'm sorry, in the first email
I stated that "cabinet" just means a folder.  The syntax you gave me works
great.  Again, thanks.

-Anthony

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Friday, December 07, 2001 1:27 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: copy task with excludes
> 
> 
> On Thu, 6 Dec 2001, Anthony Rodriguez <Anthony@WeddingChannel.com>
> wrote:
> 
> > I am trying to copy from c:\ant_Build\StageTrustlib\ to the java dir
> > in the cabinet.
> 
> I'm a little puzzled by the nomenclature, "cabinet" doesn't mean
> anything to me, sorry.  I'll simply treat it as a directory, OK?
> 
> > There are some class files and two dirs, com and test, under
> > StageTrustlib. I want to copy everything under StageTrustlib excpet
> > that test dir.
> 
> OK, that would be
> 
> c:\ant_Build\StageTrustlib\
>                            test\
>                                 A.class
>                                 B.something
>                            com\
>                                C.class
>                                D.whatever
>                            E.class
> 
> and you have an empty "cabinet", say
> 
> C:\cabinet
> 
> and you want
> 
> C:\cabinet\java\
>                 com\
>                     C.class
>                     D.whatever
>                 E.class
> 
> correct so far?
> 
> Not using any properties:
> 
> <mkdir dir="C:\cabinet\java\" />
> <copy todir="C:\cabinet\java\">
>   <fileset dir="c:\ant_Build\StageTrustlib\">
>     <exclude name="test/**" />
>   </fileset>
> </copy>
> 
> should work.  If it doesn't, what is wrong?
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

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