Skip to content

Commit

Permalink
Yet another run script
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkont committed Aug 19, 2013
1 parent 2a366c3 commit d766c7a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clean-install-run
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

# if we're not on a terminal, use batch mode to avoid ugly log files
[ ! -t 1 ] && BATCH="-B"
mvn $BATCH -f ../pom.xml clean install && . ../run "$@"
mvn $BATCH -f ../pom.xml clean && . ../install-run "$@"
13 changes: 13 additions & 0 deletions install-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Shortcut for
# mvn -f ../pom.xml clean install && mvn scala:run -Dlauncher=... -DaddArgs=...
# Must be called with one of the modules (core/, dump/, ...) as current directory.
# Example:
# extraction_framework/core> ../clean-install-run LAUNCHER ARG1 ARG2 ARG3
# is equivalent to
# extraction_framework/core> mvn -f ../pom.xml clean install && mvn scala:run "-Dlauncher=LAUNCHER" "-DaddArgs=ARG1|ARG2|ARG3"

# if we're not on a terminal, use batch mode to avoid ugly log files
[ ! -t 1 ] && BATCH="-B"
mvn $BATCH -f ../pom.xml install && . ../run "$@"

0 comments on commit d766c7a

Please sign in to comment.