From a032d73f9b5389783d8e54e5320809de2a787ca7 Mon Sep 17 00:00:00 2001 From: Benjamin Moosherr Date: Mon, 26 Feb 2024 22:38:45 +0100 Subject: [PATCH] Use the version in pom.xml as the single source of truth --- default.nix | 2 +- replication/esecfse22/Dockerfile | 2 +- replication/splc23-views/Dockerfile | 2 +- scripts/genUltimateResults.sh | 4 ++-- scripts/runValidation.sh | 2 +- scripts/runViewFeasibilityStudy.sh | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/default.nix b/default.nix index a7a3d271..4ccd6805 100644 --- a/default.nix +++ b/default.nix @@ -12,7 +12,7 @@ }: pkgs.stdenvNoCC.mkDerivation rec { pname = "DiffDetective"; - version = "2.1.0"; + version = pkgs.lib.removeSuffix "\n" (pkgs.lib.readFile (pkgs.runCommandLocal "DiffDetective-version" {} "${pkgs.xq-xml}/bin/xq -x '/project/version' ${./pom.xml} > $out")); src = with pkgs.lib.fileset; toSource { root = ./.; diff --git a/replication/esecfse22/Dockerfile b/replication/esecfse22/Dockerfile index be350805..50dc493b 100644 --- a/replication/esecfse22/Dockerfile +++ b/replication/esecfse22/Dockerfile @@ -32,7 +32,7 @@ WORKDIR /home/sherlock # Copy the compiled JAR file from the first stage into the second stage # Syntax: COPY --from=STAGE_ID SOURCE_PATH TARGET_PATH WORKDIR /home/sherlock/holmes -COPY --from=0 /home/user/target/diffdetective-2.1.0-jar-with-dependencies.jar ./DiffDetective.jar +COPY --from=0 /home/user/target/diffdetective-*-jar-with-dependencies.jar ./DiffDetective.jar WORKDIR /home/sherlock RUN mkdir results diff --git a/replication/splc23-views/Dockerfile b/replication/splc23-views/Dockerfile index 27ced085..dbb1a24b 100644 --- a/replication/splc23-views/Dockerfile +++ b/replication/splc23-views/Dockerfile @@ -38,7 +38,7 @@ WORKDIR /home/sherlock # Copy the compiled JAR file from the first stage into the second stage # Syntax: COPY --from=STAGE_ID SOURCE_PATH TARGET_PATH WORKDIR /home/sherlock/holmes -COPY --from=0 /home/user/target/diffdetective-2.1.0-jar-with-dependencies.jar ./DiffDetective.jar +COPY --from=0 /home/user/target/diffdetective-*-jar-with-dependencies.jar ./DiffDetective.jar WORKDIR /home/sherlock # Copy the setup diff --git a/scripts/genUltimateResults.sh b/scripts/genUltimateResults.sh index d1548901..2ad0bf14 100755 --- a/scripts/genUltimateResults.sh +++ b/scripts/genUltimateResults.sh @@ -1,4 +1,4 @@ -resultsdir=$1 +resultsdir="$1" -java -cp "target/diffdetective-2.1.0-jar-with-dependencies.jar" org.variantsync.diffdetective.tablegen.MiningResultAccumulator $resultsdir $resultsdir +java -cp target/diffdetective-*-jar-with-dependencies.jar org.variantsync.diffdetective.tablegen.MiningResultAccumulator "$resultsdir" "$resultsdir" echo "genUltimateResults.sh DONE" diff --git a/scripts/runValidation.sh b/scripts/runValidation.sh index 0160f042..58b21ce3 100755 --- a/scripts/runValidation.sh +++ b/scripts/runValidation.sh @@ -1,2 +1,2 @@ -java -cp "target/diffdetective-2.1.0-jar-with-dependencies.jar" org.variantsync.diffdetective.validation.EditClassValidation +java -cp target/diffdetective-*-jar-with-dependencies.jar org.variantsync.diffdetective.validation.EditClassValidation echo "runValidation.sh DONE" diff --git a/scripts/runViewFeasibilityStudy.sh b/scripts/runViewFeasibilityStudy.sh index acb87597..f6349b9f 100755 --- a/scripts/runViewFeasibilityStudy.sh +++ b/scripts/runViewFeasibilityStudy.sh @@ -1,2 +1,2 @@ -java -cp "target/diffdetective-2.1.0-jar-with-dependencies.jar" org.variantsync.diffdetective.experiments.views.Main "docs/datasets/views.md" +java -cp target/diffdetective-*-jar-with-dependencies.jar org.variantsync.diffdetective.experiments.views.Main "docs/datasets/views.md" echo "runValidation.sh DONE"