[1.1.2] images not loaded from jar using class-based imagepath --- fixed 1.1.2 2018-03-03 build#117

Bug #1753132 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

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.

RaiMan (raimund-hocke)
summary: - [1.1.2] images not loaded from jar using class-based imagepath
+ [1.1.2] images not loaded from jar using class-based imagepath --- fixed
+ 1.1.2 2018-03-03 build#117
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
Revision history for this message
Mike Bedwell (bedwell2012) wrote : Re: [Bug 1753132] [NEW] [1.1.2] images not loaded from jar using class-based imagepath --- fixed 1.1.2 2018-03-03 build#117

Just pulled the most recent sources after this patch, and can confirm it’s working beautifully again. I really appreciate your efforts and your project.

—Mike

> On Mar 3, 2018, at 9:49 AM, RaiMan <email address hidden> wrote:
>
> Public bug reported:
>
> 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.
>
> ** Affects: sikuli
> Importance: Critical
> Assignee: RaiMan (raimund-hocke)
> Status: Fix Committed
>
> ** Summary changed:
>
> - [1.1.2] images not loaded from jar using class-based imagepath
> + [1.1.2] images not loaded from jar using class-based imagepath --- fixed 1.1.2 2018-03-03 build#117
>
> ** Changed in: sikuli
> Status: New => Fix Committed
>
> ** Changed in: sikuli
> Importance: Undecided => Critical
>
> ** Changed in: sikuli
> Assignee: (unassigned) => RaiMan (raimund-hocke)
>
> ** Changed in: sikuli
> Milestone: None => 1.1.2
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1753132
>
> Title:
> [1.1.2] images not loaded from jar using class-based imagepath ---
> fixed 1.1.2 2018-03-03 build#117
>
> Status in Sikuli:
> Fix Committed
>
> Bug description:
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sikuli/+bug/1753132/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.