Introduce FileUtils#stripFilenameVersion

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a unit test for FileUtils#stripFilenameVersion

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Deprecate FileUtils#matchVersionedFilename

The only valid use we have for it is really to strip out versions
from versioned file names, but we have a better method now:
FileUtils#stripFilenameVersion.

That version is also forward-compatible because the regular expression
behind matchVersionedFilename is about to introduce new groups (and
therefore group(5) will not reliably match the extension).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Handle miglayout in FileUtils#stripFilenameVersion

MigLayout has -swt and -swing classifiers. They actually do not refer
to different versions of the same artifact, but to different artifacts.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Verify that miglayout is handled well by FileUtils#stripFilenameVersion

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make FileUtils#matchVersionedFilename backwards-compatible

It used to return a matcher whose group(5) -- formerly the last
capturing group -- returns the file extension. Now, group(5) returns the
classifier and the file extension, while the last capturing group still
returns the file extension.

But really, the code using #matchVersionedFilename should be upgraded to
use #stripFilenameVersion instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge branch 'file-version-utils'

This addresses the problem we had with miglayout's versioned filenames:
They include an extra classifier -swt and -swing, respectively, which
is *not* part of the version, but refers to the fact that they are
really different artifacts.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge remote-tracking branch 'origin/master'

Somebody dared to push while I was merging. *shakesfist*

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>