Successful add of class-based image path, unable to load images --- fixed see related bug

Asked by Mike Bedwell

This is successful
ImagePath.add("com.jaditd.wood.Wood/images");

This is also successful
Pattern gather = new Pattern("/images/gatherWood.png");

This fails, though, I think since the Image path modification was successful, it shouldn't
Pattern gather = new Pattern("gatherWood.png");

How do I check the reason for the failure? The image is stored at src/main/resources/images and I have checked that in the jar file images/gatherWood.png exists.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#3

fixed after making it a bug

Revision history for this message
Mike Bedwell (bedwell2012) said :
#4

Thank you much. I was hesitant to report it as a bug, as I'm still quite a rookie with Java (I've spent my last 10 years stuck with the .net implementations my company uses) and wasn't sure I just didn't understand the intended path mechanism.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

--- I was hesitant to report it as a bug
... no problem, since I see everything SikuliX related and can turn everything vice versa ;-)

The most important thing as always is content - not headline:
Your description and evaluation was precise - it directly lead me into the buggy area.
Thanks.