Wrong Deployment Package URL sent by DeploymentAgentService [message #1793949] |
Tue, 21 August 2018 00:13  |
Eclipse User |
|
|
|
Hello.
I'm currently writing a module that tracks when a Deployment Package is installed, so i subscribe to the DeploymentAgentService.EVENT_INSTALLED_TOPIC event topic. When i run this module on eclipse kura emulator and try to install a deployment package, i get a URL that points to /tmp/deploymentpackage.dp , which is wrong, because the deployment package is actually in /tmp/kura/packages/deploymentpackage.dp . After the deployment package being already installed and me running the kura emulator again, it gives the correct URL.
Is this an eclipse issue, or is there something i'm not understanding here?
[Updated on: Tue, 21 August 2018 00:15] by Moderator
|
|
|
|
|
Re: Wrong Deployment Package URL sent by DeploymentAgentService [message #1794257 is a reply to message #1794247] |
Tue, 28 August 2018 03:32  |
Eclipse User |
|
|
|
Hi,
there is no difference in behaviour between the emulator and an end device. The code is simply the same.
What you can do is to explore the dpa.properties file, when you get the installation event, to get the path to the jars that will be installed at the next reboot.
But maybe you can leverage some OSGi apis to get manifest file information directly from the runtime. I remember that we used OSGi APIs, for example, to get component properties . To see if there are similar APIs for the manifest file.
Best regards,
Matteo
|
|
|
Powered by
FUDForum. Page generated in 0.06102 seconds