From 10482c44948bfc304a2cbe6d5d402cac2acccc56 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Fri, 1 Mar 2024 11:49:09 +0100 Subject: [PATCH] Fix dev launch scripts for version change --- debug-client.sh | 7 ++++++- debug-server.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/debug-client.sh b/debug-client.sh index d593cde..a24fb7a 100755 --- a/debug-client.sh +++ b/debug-client.sh @@ -1,6 +1,11 @@ #!/bin/bash -mvn -DskipTests=true install # needed for pairgoth-common +VERSION=$(grep '' pom.xml | head -1 | egrep -o '[0-9.]+') + +if [ !-f "$HOME/.m2/repository/org/jeudego/pairgoth/pairgoth-common/$VERSION/pairgoth-common-$VERSION.jar" ] +then + mvn -DskipTests=true install # needed for pairgoth-common +fi trap 'kill $CSSWATCH; exit' INT ( cd view-webapp; ./csswatch.sh ) & diff --git a/debug-server.sh b/debug-server.sh index c7367c9..9693505 100755 --- a/debug-server.sh +++ b/debug-server.sh @@ -1,6 +1,11 @@ #!/bin/bash -mvn -DskipTests=true install # needed for pairgoth-common +VERSION=$(grep '' pom.xml | head -1 | egrep -o '[0-9.]+') + +if [ !-f "$HOME/.m2/repository/org/jeudego/pairgoth/pairgoth-common/$VERSION/pairgoth-common-$VERSION.jar" ] +then + mvn -DskipTests=true install # needed for pairgoth-common +fi export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005" mvn -DskipTests=true --projects api-webapp package jetty:run -Dpairgoth.mode=server