Bug 4520

Summary: Exit status wildcards
Product: jbatch Reporter: geofjamg
Component: sourceAssignee: cvignola
Status: RESOLVED WORKSFORME    
Severity: normal CC: issues, ScottKurz
Priority: P5    
Version: 1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description geofjamg 2013-01-16 21:47:36 UTC
Is there any reason not relying on a standard regex (very easy to implement with String.matches) instead of a custom matching system?
Comment 1 ScottKurz 2013-01-16 22:39:29 UTC
The current behavior is a form of globbing, so it's not as if it's uniquely custom to JSR 352. 

Glob patterns seem simpler to work with for simple cases 

E.g.
 A*B 
instead of 
 A.*B

so if you're not expecting JSL authors to take full advantage of regex(s), then 
I can see an advantage with globbing.   

I'd actually originally suggest we be explicit that there would be no backslash escaping, which isn't in the spec. 

Wikipedia has a nice breakdown of different globbing patterns:
 http://en.wikipedia.org/wiki/Glob_%28programming
and does show that there isn't a single, standard "glob" behavior.
Comment 2 cvignola 2013-01-17 14:40:44 UTC
We're sticking with the globbing approach.