sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55967
[Question #693497]: IntelliJ IDEA artifact.jar and ImagePath
New question #693497 on Sikuli:
https://answers.launchpad.net/sikuli/+question/693497
Hello, I am having trouble locating pattern images bundled inside .jar in IntelliJ IDEA IDE.
My project is setup like this:
https://i.imgur.com/rTxqZec.png
And the code is:
ImagePath.add("Main/patterns/")
for (ImagePath.PathEntry path : ImagePath.getPaths()) {
print(String.format("ImagePath: %s", path) + "\n");
}
Which works nicely when I run the project. I get:
null
/C:\(...)\patterns/
And everything works. But when I try to pack it inside .jar and I build an artifact and run it, I just get:
null
null
Weirdly the ImagePath.add("Main/patterns/") returns true. But finding patterns does not work.
This is the .jar structure when I unzip it:
https://i.imgur.com/QY8CCDG.png
Thanks for any help.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.