You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rick Reumann <ma...@reumann.net> on 2002/06/06 16:34:22 UTC

fileset not supporting nested selector?

I'm trying to delete all files in a destination directory that are no
longer in the directory I copied from. I'm trying to do this with:

<delete>
   <fileset dir="${dest}/users">
      <not>
         <present targetdir="${from}/users"/>
      </not>
   </fileset>
</delete>

I keep getting the error:

The <fileset> data type doesn't support the nested "not" element.

Now matter what kind of selector I put inside the fileset I get a
similar type of error so I'm not sure what I'm doing wrong.

Thanks for any help.


-- 

Rick
mailto:maillist@reumann.net


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


Re[2]: fileset not supporting nested selector?

Posted by Rick Reumann <ma...@reumann.net>.
On Thursday, June 6, 2002, 10:39:12 AM, Stefan wrote:

SB> You are using 1.5beta2, yes?

    No, I guess that's the problem huh? I'm using 1.4.1. I didn't
    realize the manual was for 1.5 sorry about that. I'll download
    1.5.

    Question, though, while I'm at it...

    What I want to make sure of is that the destination where all my
    files are going always has a duplicate of all my original files.
    So that if I delete some files on my side I also want the
    destination directories to not contain any of these deleted files
    any more.

    What is the best way to handle this? I was thinking just to delete
    the root of the target directory and have it rebuild everything
    each time but I'm not sure if that's the best way to go.

    It's just my first day using ant..so I'm a true newbie. Thanks for
    the patience.



-- 

Rick
mailto:maillist@reumann.net


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


Re: fileset not supporting nested selector?

Posted by Stefan Bodewig <bo...@apache.org>.
You are using 1.5beta2, yes?

Stefan

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