simon-brooke / geocsv

A wee tool to project data from a CSV file onto a map
0 stars 0 forks source link

get-pin-image-names fails when run from a jar file #8

Closed simon-brooke closed 4 years ago

simon-brooke commented 4 years ago

The REST call get-pin-image-names fails with an error

{"error":"java.lang.IllegalArgumentException: Not a file: jar:file:/home/simon/tmp/geocsv.jar!/public/img/map-pins"}

when 'geocsv' is run from a jar file (which is as I think it normally should be). We need to trap that error and, if we find it, search the jar file for the pin image names.