Skip to content

Commit

Permalink
Allow passing the test-repository URL via parameter "-r" when running…
Browse files Browse the repository at this point in the history
… launch-dev-server.sh for JetBrains Backend Plugin development

If the parameter is not passed, it will use the default test-repository: https://github.com/gitpod-io/spring-petclinic
  • Loading branch information
felladrin authored and roboquat committed Sep 13, 2022
1 parent 23f216b commit 8c035ef
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions components/ide/jetbrains/backend-plugin/launch-dev-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ GITPOD_PLUGIN_DIR=/workspace/gitpod/components/ide/jetbrains/backend-plugin
$GITPOD_PLUGIN_DIR/gradlew buildPlugin

# TODO(ak) actually should be gradle task to make use of output
GITPOD_PLUGIN_DIST="$GITPOD_PLUGIN_DIR/build/distributions/gitpod-remote-0.0.1.zip"
GITPOD_PLUGIN_DIST="$GITPOD_PLUGIN_DIR/build/distributions/gitpod-remote.zip"
unzip $GITPOD_PLUGIN_DIST -d $TEST_PLUGINS_DIR

TEST_REPO=https://github.com/gitpod-io/spring-petclinic
TEST_DIR=/workspace/spring-petclinic
TEST_DIR=/workspace/test-repo
if [ ! -d "$TEST_DIR" ]; then
git clone $TEST_REPO $TEST_DIR
TEST_REPO=https://github.com/gitpod-io/spring-petclinic
while getopts "r:" OPTION
do
case $OPTION in
r) TEST_REPO=$OPTARG ;;
*) ;;
esac
done
git clone "$TEST_REPO" $TEST_DIR
fi

export JB_DEV=true
Expand Down

0 comments on commit 8c035ef

Please sign in to comment.