Skip to content

Commit

Permalink
Added run-quiet.sh to run without maven output
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanmansum committed Nov 21, 2017
1 parent ad8a423 commit 0701c56
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
18 changes: 18 additions & 0 deletions run-quiet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
#
# Copyright (C) 2017 DANS - Data Archiving and Networked Services ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

QUIET="-q" run.sh $@
10 changes: 7 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

APPHOME=home

if [ -z $QUIET ]; then
QUIET=""
fi

if [ -z $LOGBACK_OPTS ]; then
LOGBACK_OPTS=""
fi
Expand All @@ -32,6 +36,6 @@ do
done

LC_ALL=en_US.UTF-8 \
mvn exec:java -Dapp.home=$APPHOME \
-Dlogback.configurationFile=$LOGBACK_CONFIG \
-Dexec.args="$ARGS" $LOGBACK_OPTS
mvn exec:java $QUIET -Dapp.home=$APPHOME \
-Dlogback.configurationFile=$LOGBACK_CONFIG \
-Dexec.args="$ARGS" $LOGBACK_OPTS

0 comments on commit 0701c56

Please sign in to comment.