mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
bug4811: fixed patching remote to local target definition
This commit is contained in:
@@ -3,8 +3,11 @@ source ./../../../configuration/correctFilePathInRelationToCurrentOs.sh
|
||||
# generate a target definition pointing to the locally built p2 repo from the race-analysis-p2-remote target defintion
|
||||
base="../definitions/race-analysis-p2"
|
||||
remote_repo="https://p2.sapsailing.com/p2/sailing/"
|
||||
remote_repo_aws_sdk="https://p2.sapsailing.com/p2/aws-sdk/"
|
||||
#reading the filepath and editing it, so it fits for eclipse #currently save works for cygwin, gitbash and linux
|
||||
local_repo=$(correct_file_path "`readlink -f ../../com.sap.sailing.targetplatform.base/target/repository/`")
|
||||
local_repo="file:/$local_repo"
|
||||
local_repo_aws_sdk=$(correct_file_path "`readlink -f ../../com.amazon.aws.aws-java-api.updatesite/target/repository/`")
|
||||
local_repo_aws_sdk="file:/$local_repo_aws_sdk"
|
||||
# replace remote p2-repo URL with local repo URL
|
||||
sed -e "/^<repository location=\"/ s@$remote_repo@$local_repo@" -e 's/target name="Race Analysis Target"/target name="Race Analysis Local Target"/' $base-remote.target > $base-local.target
|
||||
sed -e "/^<repository location=\"/ s@$remote_repo@$local_repo@" -e "/^<repository location=\"/ s@$remote_repo_aws_sdk@$local_repo_aws_sdk@" -e 's/target name="Race Analysis Target"/target name="Race Analysis Local Target"/' $base-remote.target > $base-local.target
|
||||
|
||||
Reference in New Issue
Block a user