Let’s suppose I have a valid Ant build script which packs up and prepares my OSGi bundle.
Now, I would like to make the build process install/update the bundle to my local Felix installation as the last step, and – if possible, automatically start if not started by default.
Anyone has an idea how to do this?
I was thinking about making a simple Ant plugin to wrap up a system console commands sent to some shell, but is there some more nice way to do this?
You might have a look at the Apache Felix File Install. To quote from the intro:
So, all you need to do is to write a task that copies your bundle to the install directory.