ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11732] New: - move task on directories wont always delete original directories
Date Thu, 15 Aug 2002 17:44:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11732>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11732

move task on directories wont always delete original directories

           Summary: move task on directories wont always delete original
                    directories
           Product: Ant
           Version: 1.4.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: geoffm@isocra.com


unless you specify <move todir="foo"><fileset dir="bar"/></move>
or do an <includes name="**/*.*"/> or similar, the move task wont move a 
directory or number of directories across. It will indeed copy them and empty 
the original directories but they should be deleted as well.

E.g.
A
|-B
|-C
|-D

suppose I want to move A/C  and A/D to E/C and E/D respectively.
I should be able to do:

<move todir="E">
  <fileset dir="A">
    <include name="C/**/*.*"/>
    <include name="C"/>
    <include name="D/**/*.*"/>
    <include name="D"/>
  </fileset>
</move>

This doesn't delete the original directories where it should.
There seems to be no way roundthis (apart from maybe <dirset> or moving
each dir separately).

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message