I’m trying to get a custom resource I placed on my deamon example. I’m following the UR example where:
-
I copy my desired resource in the same way the deamon executable is copied in the pom:
cp
daemon/myres src/main/resources/com/ur/urcap/examples/mydaemon/impl/daemon/
. -
Then i call:
ClassLoader classLoader = getClass().getClassLoader();
File file = new File(classLoader.getResource(“com/ur/urcap/examples/mydaemon/impl/daemon/myres”).getFile());
So, inside the final .jar is present myres file as the HelloWorld provided in the example. But after several attempts and tests i cannot acquire my resource inside InstallationNodeContribution class. I also tried putting the abs path (src/main/…), the GUI folder path and others. I’m missing some step? Where the .jar is unpacked when the URSim or the real Controller run?

