You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/06/26 01:13:43 UTC

DO NOT REPLY [Bug 45284] New: allow for regular expressions in FileSet include and exclude

https://issues.apache.org/bugzilla/show_bug.cgi?id=45284

           Summary: allow for regular expressions in FileSet include and
                    exclude
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: patricia_shan8@hotmail.com


In fileset includes and excludes, it would be helpful to be able to use regular
expressions, not just wild cards.
My immediate problem is that we have previous directories which are dates, eg
/20080624/, containing archived files, which I want to exclude from my fileset.

Also, in current directories, we have obsolete files which include the date in
the name. eg., a common pattern for this is : abc.jarOLD20080624
I can't excluded files using *old* because "old" is part of legitimate names.

I ended up renaming the folders consisting of a date by adding "BAK" to the
end; I was already excluding this pattern ("**/*bak/"

But I don't have control over what other people name files and folders, so I
have to spend time checking that I'm not copying and jarring stuff I don't want
that's been added since the last time, w/o excluding stuff I do want.

Being able to test for a filename using a regular expression (eg., containing 8
consecutive numerals) would be very useful.


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

DO NOT REPLY [Bug 45284] allow for regular expressions in FileSet include and exclude

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45284


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Stefan Bodewig <bo...@apache.org>  2008-08-14 06:33:08 PST ---
new regex attributes have been added to the filename file selector and name
resource selector in svn revision 685887


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 45284] allow for regular expressions in FileSet include and exclude

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45284


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |notifications@ant.apache.org
         AssignedTo|notifications@ant.apache.org|bodewig@apache.org
           Severity|normal                      |enhancement
   Target Milestone|---                         |1.8.0




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2008-08-08 05:46:54 PST ---
for some reason we have a selector for files containing a regexp but none for
those whose name matches a regexp, strange.

Yes, this would be a reasonable enhancement, but I'd make it a selector and
would extend filename.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.

DO NOT REPLY [Bug 45284] allow for regular expressions in FileSet include and exclude

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45284


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hauser@acm.org




--- Comment #4 from Stefan Bodewig <bo...@apache.org>  2008-11-14 06:46:41 PST ---
*** Bug 23760 has been marked as a duplicate of this bug. ***


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 45284] allow for regular expressions in FileSet include and exclude

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45284


Patricia Shannon <pa...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |patricia_shan8@hotmail.com




--- Comment #3 from Patricia Shannon <pa...@hotmail.com>  2008-08-14 07:35:04 PST ---
Wonderful. Thank you very  much. This will be very helpful.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 45284] allow for regular expressions in FileSet include and exclude

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45284


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michel.rvb@gmail.com




--- Comment #5 from Stefan Bodewig <bo...@apache.org>  2008-11-28 08:28:57 PST ---
*** Bug 46309 has been marked as a duplicate of this bug. ***


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.