add runners

This commit is contained in:
MAUREL Yoann
2019-03-05 13:45:12 +01:00
parent 800273801e
commit a176363d1f
3 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@@ -234,3 +234,4 @@ Temporary Items
# End of https://www.gitignore.io/api/osx,java,linux,maven,eclipse,intellij
jetty-runner.jar
webapp-runner.jar

10
webapp-runner.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Téléchargement du runner jetty (https://www.eclipse.org/jetty/documentation/9.4.x/runner.html)
wget -O webapp-runner.jar -c http://central.maven.org/maven2/com/github/jsimone/webapp-runner/9.0.16.0/webapp-runner-9.0.16.0.jar
# Compilation du war dans target
mvn package
# Lancement du projet (à adapter si le jar change)
java -jar webapp-runner.jar target/pr.tp.web-0.0.1-SNAPSHOT.war