You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Anthony Rodriguez <An...@WeddingChannel.com> on 2001/12/06 02:06:34 UTC

copy task with excludes

Here is some of my build.xml file:

    <!--  Copying java to cabinet -->
    <copy todir="${noc}\${label}\java">
      <fileset dir="${stage.trustlib}" excludes="test/**"/>
    </copy>
    <copy todir="${noc}\${label}\daemons\code">
      <fileset dir="${stage.trustlib}" excludes="test/**"/>
    </copy>

    <!--  Copying asp to cabinet -->
    <copy todir="${noc}\${label}\asp\Site">
      <fileset dir="${viewpath}\Site"
excludes="**/mock_up/*,**/lost+found/*"/>
    </copy>


The cabinet refered to here is just a folder.  However, after running my
build.xml, I found that the test, lost+found, and mock_up dirs still existed
in the cabinet.  What I want to do is copy everything from ${stage.trustlib}
excluding the ${stage.trustlib}/test/ dir AND copy everything from
${viewpath}/Site excluding any lost+found and mock_up dirs.  Anyone know how
to accomplish this?

-Anthony

Re: copy task with excludes

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 5 Dec 2001, Anthony Rodriguez <An...@WeddingChannel.com>
wrote:

> Here is some of my build.xml file:
> 
>     <!--  Copying java to cabinet -->
>     <copy todir="${noc}\${label}\java">
>       <fileset dir="${stage.trustlib}" excludes="test/**"/>
>     </copy>
>     <copy todir="${noc}\${label}\daemons\code">
>       <fileset dir="${stage.trustlib}" excludes="test/**"/>
>     </copy>
> 
>     <!--  Copying asp to cabinet -->
>     <copy todir="${noc}\${label}\asp\Site">
>       <fileset dir="${viewpath}\Site"
> excludes="**/mock_up/*,**/lost+found/*"/>
>     </copy>
> 
> 
> The cabinet refered to here is just a folder.  However, after
> running my build.xml, I found that the test, lost+found, and mock_up
> dirs still existed in the cabinet.

Where?

Are you saying, that there are files in ${noc}\${label}\java\test
after the first copy task?

If so, could it be a case-sensitivity issue (maybe the directory's
name is Test or something)?

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>