Skip to content

Commit

Permalink
Use the version in pom.xml as the single source of truth
Browse files Browse the repository at this point in the history
  • Loading branch information
ibbem committed Feb 26, 2024
1 parent 592e4d3 commit a032d73
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ./.;
Expand Down
2 changes: 1 addition & 1 deletion replication/esecfse22/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion replication/splc23-views/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/genUltimateResults.sh
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion scripts/runValidation.sh
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion scripts/runViewFeasibilityStudy.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a032d73

Please sign in to comment.