[1.1.0] Multiple ImagePaths for Jar not working

Bug #1532134 reported by RaiMan on 2016-01-08
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

I have images in different folders, e.g.
--- 1.png

--- 2.png

This works for running from Eclipse:
SikuliX is able to detect the correct folder for each image.

However, when I switch to a jar run:
ImagePath.add(Test.class.getName() + "/package/images/folder1", "src/main/resources");
ImagePath.add(Test.class.getName() + "/package/images/folder2", "src/main/resources");

SikuliX only looks in the first folder I add:
[error] Image: could not be loaded: jar:file:/D:/path/target/my.jar!/package/images/folder1/2.png
So the folder1 images can be loaded, but the folder2 images can't. The altPaths work fine when running from Eclipse though.

Could I please ask for your advice on this?

RaiMan (raimund-hocke) on 2016-01-08
Changed in sikuli:
status: New → In Progress
status: In Progress → Opinion
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions