jarURL already contains "file:" that what I see from ImagePath.get() is
"jar:file:file:C:/xxx/yyy/myartifact.jar!/images".
And it finally fails to locate the image file.
The workaround I'm using is to call ImagePath.addJar() instead of ImagePath.add().
However, the final artifact executable jar name is less consistent than the class name, so it would be great if I could call ImagePath.add() to get it worked.
Also I don't think the behavior is intended?
https://github.com/RaiMan/SikuliX-2014/blob/1bac29ed14a5872a2c35ca2382f28364ad83b209/API/src/main/java/org/sikuli/basics/FileManager.java#L911
https://github.com/RaiMan/SikuliX-2014/blob/1bac29ed14a5872a2c35ca2382f28364ad83b209/API/src/main/java/org/sikuli/script/ImagePath.java#L654
jarURL already contains "file:" that what I see from ImagePath.get() is "jar:file:file:C:/xxx/yyy/myartifact.jar!/images". And it finally fails to locate the image file.
The workaround I'm using is to call ImagePath.addJar() instead of ImagePath.add(). However, the final artifact executable jar name is less consistent than the class name, so it would be great if I could call ImagePath.add() to get it worked. Also I don't think the behavior is intended?