[1.0.1] Java: Settings.BundlePath not work --- use the ImageLocator methods
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
Hi,
When i was used new Sikuli 1.0.1 Sikuli-Java.jar i find the Settings.BundlePath not work well, i write follow code to test:
System.
Settings.
Then find the output is :
E:\qa\automatio
E:\qa\automatio
I am not sure it is a bug or i am wrong, but i sure it is work on last version.
But i find another way to work around:
ImageLocator
System.
The output is :
E:\qa\automatio
E:/qa/automatio
Below is my environment information:
OS: windows 7 x64
Java: 1.7.0_06
I wait for your reply, thanks.
--BR
Xian
summary: |
- Settings.BundlePath not work + [1.0.1] Java: Settings.BundlePath not work --- use the ImageLocator + methods |
Changed in sikuli: | |
status: | New → Fix Committed |
importance: | Undecided → Critical |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
this not rely a bug, but caused by weak documentation.
On the Java level with version 1.0.1 one should only use the ImageLocator methods to handle the image path.
... and the term BundlePath together with any setters and getters is there for historical reasons and internal usage in the IDE.
with respect to the image path this is simply the first entry in the list and the only entry, that can be handled directly.
For all other entries we have addImagePath (adds to the end) and removeImagePath (remove specified path).
On the Java level setBundlePath() can be seen as a convenience, if you only have the need to feel with one image folder at one time.
with version 1.1.0 all image path handling is moved to class ImagePath haven more features and the respective ImageLocator methods are deprecated and redirected.