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 36880] New: - copy task's includeEmptyDirs= changes after being set true
Date Fri, 30 Sep 2005 18:44:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36880>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36880

           Summary: copy task's includeEmptyDirs= changes after being set
                    true
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tedn@shaw.ca


The <copy .. /> statement's includeEmptyDirs attribute has a default of false.
However, if you create a target that has multiple <copy .. /> statements in it,
and set the includeEmptyDirs="true" attribute for one of them, then all
subsequent <copy .. /> statements will also include empty dirs unless you
explicity set each one of them to includeEmptyDirs="false".

I found it using the following:

<copy todir="${dest1.dir}" flatten="true" includeEmptyDirs="true">
    <fileset dir="${source1.dir}">
        <exclude name=".svn/*" />
    </fileset>
</copy>

<copy todir="${dest2.dir}" flatten="true">
    <fileset dir="${source2.dir}">
        <exclude name=".svn/*" />
    </fileset>
</copy>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message