ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54077] New: Filename Selector does not apply when used more than once, where include does
Date Tue, 30 Oct 2012 14:15:40 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54077

          Priority: P2
            Bug ID: 54077
          Assignee: notifications@ant.apache.org
           Summary: Filename Selector does not apply when used more than
                    once, where include does
          Severity: normal
    Classification: Unclassified
          Reporter: christopher.roscoe@braintribe.com
          Hardware: PC
            Status: NEW
           Version: 1.8.4
         Component: Core
           Product: Ant

Created attachment 29531
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29531&action=edit
Testcase

The documentation
(https://ant.apache.org/manual/Types/selectors.html#filenameselect) says:
"The <filename> tag acts like the <include> and <exclude> tags within a
fileset"

But when i have more than one filename in a fileset nothing is matched.
If i replace <filename> with <include>, it works as expected.

I prepared a testcase (see the attachment).
Here is the output, when i run the test on my Windows 7 machine.

d:\tmp\ant-test>ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012

d:\tmp\ant-test>ant copy_with_filename
Buildfile: d:\tmp\ant-test\build.xml

copy_with_filename:

BUILD SUCCESSFUL
Total time: 0 seconds

d:\tmp\ant-test>ant copy_with_include
Buildfile: d:\tmp\ant-test\build.xml

copy_with_include:
     [copy] Copying 1 file to d:\tmp\ant-test\target
     [copy] Copying d:\tmp\ant-test\modules\blub_bla.TXT to
d:\tmp\ant-test\target\blub_bla.TXT

BUILD SUCCESSFUL
Total time: 0 seconds

I would expect, that with target "copy_with_filename" the file is copyied. But
it is not.
Maybe i misunderstood the selector semantics, but then i would expected some
notification telling me, what i did wrong.

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

Mime
View raw message