This issue report is based on using this JAR.
The regex file selection functionality in norma adds complexity without adding value.
That is because this functionality duplicates what is already offered by shells on modern operating systems, such as GNU Bash or Windows PowerShell. Such shells already feature globbing- and regular expression-based file selection.
For example:
$ java -jar norma-0.5.0-SNAPSHOT-jar-with-dependencies.jar --project publicPapers --fileFilter '.*/(.*).pdf' --makeProject '(\1)/fulltext.pdf'
could more naturally be expressed in Bash with a glob like:
$ java -jar norma-0.5.0-SNAPSHOT-jar-with-dependencies.jar --infiles publicPapers/*.pdf --makeProject 'fulltext.pdf'
If one's matching criteria require a regex rather than just a glob, this is also available with standard OS tools:
$ java -jar norma-0.5.0-SNAPSHOT-jar-with-dependencies.jar --infiles "$(find publicPapers -maxdepth 1 -type f -iregex '.*/\(pub\|phm\).*.pdf')" --makeProject 'fulltext.pdf'
Removing regex CLI functionality from norma would provide the following benefits:
This issue report is based on using this JAR.
The regex file selection functionality in
normaadds complexity without adding value.That is because this functionality duplicates what is already offered by shells on modern operating systems, such as GNU Bash or Windows PowerShell. Such shells already feature globbing- and regular expression-based file selection.
For example:
could more naturally be expressed in Bash with a glob like:
If one's matching criteria require a regex rather than just a glob, this is also available with standard OS tools:
Removing regex CLI functionality from
normawould provide the following benefits: