ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: copy task with excludes
Date Fri, 07 Dec 2001 09:26:59 GMT
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
View raw message