Bug 36201 - No complain about asterisks in file names
Summary: No complain about asterisks in file names
Status: RESOLVED WONTFIX
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.6.5
Hardware: Other other
: P2 minor (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords: ErrorMessage
Depends on:
Blocks:
 
Reported: 2005-08-16 11:08 UTC by Zdenek Wagner
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Wagner 2005-08-16 11:08:53 UTC
FileList should complain loudly if the file name in the files attribute contains
an asterisk. Reason: if a user writes by mistake <srcfilelist dir='something'
files='*.xml'/>, the <dependset> task silently deletes all target files althoug
they are uptodate (unless -v is specified). Ant should display something like:
Asterisk not allowed in file names in FileList. Didn't you intend to use FileSet?
Comment 1 Steve Loughran 2005-11-24 17:17:44 UTC
what if * really is a legitimate name of a file. I know DOS may not like it, but
unix will let you do it.
Comment 2 Zdenek Wagner 2005-11-24 17:30:17 UTC
(In reply to comment #1)
> what if * really is a legitimate name of a file. I know DOS may not like it, but
> unix will let you do it.

Is it possible to find somehow from the JVM properties whether asterisks are
allowed in the file name? I did not know that it may be legal but we have just
tried in GNU/Linux and you are right.
Comment 3 Peter Reilly 2006-09-06 07:42:53 UTC
One can mount
unix filesystems in windows, and in
this case * would be valid.