DoubleQuotes around input argument not possible when using joker
Status: Alpha
Brought to you by:
cscheuble
It's convenient not to have to enumerate every single input file, but to use the joker sign instead (e.g. somefolder/tif.*) Unfortunately, you then cannot use double quotes around this argument, which is neccessary when having spaces in your inputfolder.
Good suggestion.
Looks like Apache has a helper class for this: org.apache.commons.io.filefilter.WildcardFileFilter.
Found this in StackOverflow: https://stackoverflow.com/questions/794381/how-to-find-files-that-match-a-wildcard-string-in-java
TODO:
check for wild card characters ? or * in the input file name. If one exists then treat the file name as a file name filter:
split the the folder (default to the current folder if a folder isn't specified in the file name) from the file name
search for all matching files in the folder using the WildcardFileFilter
add matching file names to the file name parameter list
Note - Java 7 added glob file name matching but this works like Ant's file matching and I think that is not what most people would be using. It will also force this project to Java 7.