https://bz.apache.org/bugzilla/show_bug.cgi?id=58808

            Bug ID: 58808
           Summary: Delete task shows no message for nested sets if not
                    verbose
           Product: Ant
           Version: 1.9.6
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 33411
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33411&action=edit
A patched version of Delete.java from 1.9.6 with "//CHANGE:" for changed lines

Without verbose set, the Delete task only shows a message when a single "file"
or "dir" is specified, but nothing if nested fileset/dirset are specified.  If
you set verbose on, then you'll see individual delete messages.

The Copy task shows a count based message when not verbose, otherwise
individual copy messages when it is set.

I'm including a patch that's adds a log() call for this, and clarifies other
log() calls that don't specify "file" or "directory".

I used the following to try the changes out:

        <echo message="" />
        <mkdir dir="${build.dir}/foo" />
        <delete dir="${build.dir}/foo" />

        <echo message="foo1" file="${build.dir}/foo.bar" />
        <delete file="${build.dir}/foo.bar" />

        <mkdir dir="${build.dir}/foo" />
        <mkdir dir="${build.dir}/foo/bar1" />
        <mkdir dir="${build.dir}/foo/bar2" />
        <echo message="foo" file="${build.dir}/foo.bar1" />
        <echo message="foo" file="${build.dir}/foo.bar2" />
        <delete verbose="true">
            <fileset dir="${build.dir}">
                <include name="foo.bar1" />
                <include name="foo.bar2" />
            </fileset>
            <dirset dir="${build.dir}/foo" />
        </delete>

The uploaded file has "//CHANGE:" for the lines I altered.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to