glencoesoftware / bioformats2raw

Bio-Formats image file format to raw format converter
GNU General Public License v2.0
77 stars 35 forks source link

Set wildcard classpath on Windows #202

Closed melissalinkert closed 1 year ago

melissalinkert commented 1 year ago

Fixes #14.

This worked for me on Windows. Without this PR, built and unzipped bioformats2raw-0.7.0-SNAPSHOT.zip, then:

> mv bioformats2raw-0.7.0-SNAPSHOT C:\Users\melissa\data\long-path-name-test\
> cd C:\Users\melissa\data\long-path-name-test\bioformats2raw-0.7.0-SNAPSHOT
> .\bin\bioformats2raw.bat test.fake test.zarr --compression null
The input line is too long.
The syntax of the command is incorrect.

With this PR, the same test should successfully create test.zarr.

If we're happy with this approach, raw2ometiff can get the same fix.

/cc @jburel

melissalinkert commented 1 year ago

I'm fairly certain a forward-slash in this case wouldn't be a problem in any modern Windows environment, but 916a0e0 switches to backslashes for completeness.