Use separate fork-project build structure#3064
Draft
Igor Demin (igordmn) wants to merge 7 commits into
Draft
Conversation
9660b43 to
85c78a3
Compare
``` mkdir fork-project cp -r buildSrc gradle build.gradle settings.gradle gradlew gradlew.bat gradle.properties fork-project/ ``` Change-Id: Iac6caa4bd0fe55837467934e1eb1875671f4dc7f
…tings.gradle
```
#!/usr/bin/env bash
script_dir="$(cd -- "$(dirname -- "$0")" && pwd)"
settings_file="$script_dir/fork-project/settings.gradle"
project_root="$script_dir"
while IFS= read -r line; do
[[ $line =~ ^[[:space:]]*includeProject\(\"([^\"]+)\"([[:space:]]*,[[:space:]]*\"([^\"]+)\")? ]] || continue
project_name="${BASH_REMATCH[1]}"
project_path="${BASH_REMATCH[3]}"
[ -n "$project_path" ] || project_path="${project_name#:}"
project_path="${project_path//:/\/}"
source_file="$project_root/$project_path/build.gradle"
target_file="$project_root/$project_path/build-fork.gradle"
[ -f "$source_file" ] && cp "$source_file" "$target_file"
done < "$settings_file"
```
Change-Id: I6f7aecdf980af621807738b5cab764005e40d67c
85c78a3 to
cd2e7d6
Compare
Change-Id: I4f8c714e996e8796ad2b7b63ca88f0e14b1f5278
cd2e7d6 to
38aa9fc
Compare
Change-Id: Idd9194322b7f6f81988e70a2382c41d8722c8212
2f18a6b to
b578b47
Compare
Change-Id: I2246431da2a06adc66671df93929ab1686c625e4
b578b47 to
25632e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release Notes
N/A