Skip to content
Permalink
Browse files

Merge pull request #7 from jerous86/master

Fix pom.xml
  • Loading branch information...
sbondorf committed Apr 9, 2019
2 parents d6519e6 + bf7095c commit f4c81c8360e732c489d1bb9a2f50589da73a2dca
Showing with 18 additions and 1 deletion.
  1. +1 −1 pom.xml
  2. +17 −0 run.sh
@@ -81,7 +81,7 @@
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.networkcalculus.snc.calculator.SNC</mainClass>
<mainClass>org.networkcalculus.snc.SNC</mainClass>
</manifest>
</archive>
</configuration>
17 run.sh
@@ -0,0 +1,17 @@
#!/bin/sh

# This script runs the jar-file.
# If the jar-file is not present, it will compile using maven.
# Note that if the source has changed, the project will not recompile until the jar-file
# is removed.

set -ue

VERSION=$(cat pom.xml | paste -s - | grep -Eoi '<groupId>org.networkcalculus.snc.*?/version' | sed 's:.*version>\(.*\)</version.*:\1:g')
TARGET_JAR="target/SNC-${VERSION}-jar-with-dependencies.jar"
if [ ! -f "$TARGET_JAR" ]; then
mvn package
fi

java -jar "$TARGET_JAR"

0 comments on commit f4c81c8

Please sign in to comment.
You can’t perform that action at this time.