|
|
|
Re: How to build a Kura Deployment Package with Tycho? [message #1665695 is a reply to message #1656125] |
Wed, 11 March 2015 10:54 |
Alessandro Da Rugna Messages: 43 Registered: December 2014 |
Member |
|
|
What about creating a "first-time-setup" script? The script will
1. wget/curl the developer workspace; skip if zipfile already downloaded
2. unzip it under <clone location>/ws; skip if already unzipped
3. SED through pom.xml and replace a placeholder token with the full path to <clone location>/ws/target-definition/equinox_3.8.1/repository/
edit: I created a small example [1] , take a look at setup-pom.sh script. It does work on my machine (OSX 10.10), it may require a little of work to run on other platforms but you get the idea.
You can create a git post-checkout hook to run the script every time you switch branch/pull. If so, I would suggest to save the pom.xml as pom.xml.skeleton and modify/commit this one. Add the main pom.xml to .gitignore, so git will not complain about uncommited modifications when switching branches/pulling etc.
I'm still interested in the original question: How to build a Kura Deployment Package with Tycho? In my example [1] I'm using "eclipse-plugin" as packaging in the pom.xml. If I try to use "bundle" like the Paho example David linked the build breaks.
Can you take a look?
[1] https://github.com/darugnaa/deployment-package-example
My project: Kura web log level changer https://github.com/darugnaa/kura-web-log
My blog: http://darugnaa.github.io
[Updated on: Wed, 11 March 2015 15:00] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03091 seconds