keep only one target definition

- target definitions for ide and maven (local and p2admin) were all very similar
  - only differences between ide and maven: bundle versions, attributes in <location> tags and order of tags
  - only differences between local and p2admin: once one uses the file:// url for local, then they are exactly the same but for the specific URL
- retain only one base target definition (use for normal ide and maven scenario)
- introduce a script that can generate the target definition for the local p2 repo
This commit is contained in:
Fredrik Teschke
2014-11-19 17:55:39 +01:00
parent 76121eb782
commit 56c25c50d7
9 changed files with 46 additions and 722 deletions
@@ -0,0 +1,6 @@
base="../definitions/race-analysis-p2"
remote_repo="http://p2.sapsailing.com/p2/sailing/"
local_repo="file://$(readlink -f ../../com.sap.sailing.targetplatform.base/gen/p2/)"
# replace remote p2-repo URL with local repo URL
sed -e "/^<repository location=\"/ s@$remote_repo@$local_repo@" $base-remote.target > $base-local.target