On Thu, 6 Dec 2001, Anthony Rodriguez <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to