Skip to content

Commit

Permalink
Add common variable JAVA_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
Phu2 committed Aug 15, 2024
1 parent e442499 commit c9acd9e
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion authorities
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.AuthorityAnalysis"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.AuthorityAnalysis"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion bl-classification
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Calling BL classification calculator
. ./common-variables

java -cp $JAR de.gwdg.metadataqa.marc.cli.BLClassificationAnalysis $@
java $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.BLClassificationAnalysis $@
2 changes: 1 addition & 1 deletion classifications
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.ClassificationAnalysis"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.ClassificationAnalysis"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
1 change: 1 addition & 0 deletions common-variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
JAVA_OPTIONS="-DentityExpansionLimit=0 -DtotalEntitySizeLimit=0 -Djdk.xml.totalEntitySizeLimit=0"
VERSION=0.8.0-SNAPSHOT
JAR=target/qa-catalogue-${VERSION}-jar-with-dependencies.jar
DIR=.
2 changes: 1 addition & 1 deletion completeness
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.Completeness"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.Completeness"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion export-schema
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Calling MappingToJson
. ./common-variables

java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.utils.MappingToJson $@
java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.utils.MappingToJson $@
2 changes: 1 addition & 1 deletion formatter
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Calling MARC formatter
. ./common-variables

java -cp $JAR de.gwdg.metadataqa.marc.cli.Formatter $@
java $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.Formatter $@
2 changes: 1 addition & 1 deletion functional-analysis
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.FunctionalAnalysis"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.FunctionalAnalysis"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ curl -s $SOLR_URL/update -H "Content-type: text/xml" --data-binary '<commit/>'
# ---END
# EOT

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.MarcToSolr"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.MarcToSolr"

# echo $CMD $PARAMS "$@"
# $CMD $PARAMS "$@"
Expand Down
2 changes: 1 addition & 1 deletion network-analysis
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Calling Validator
. ./common-variables

/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.NetworkAnalysis $@
/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.NetworkAnalysis $@
2 changes: 1 addition & 1 deletion record-patterns
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Calling MARC record-patterns
. ./common-variables

java -cp $JAR de.gwdg.metadataqa.marc.cli.DataElements $@
java $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.DataElements $@
2 changes: 1 addition & 1 deletion serial-score
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.SerialScore"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.SerialScore"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion shacl4bib
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.Shacl4bib"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.Shacl4bib"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion shelf-ready-completeness
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.ShelfReadyCompleteness"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.ShelfReadyCompleteness"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion tt-completeness
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx2g -cp $JAR de.gwdg.metadataqa.marc.cli.ThompsonTraillCompleteness"
CMD="/usr/bin/java -Xmx2g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.ThompsonTraillCompleteness"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"
2 changes: 1 addition & 1 deletion validate
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if [[ $HELP -eq 1 ]]; then
show_usage
fi

CMD="/usr/bin/java -Xmx8g -cp $JAR de.gwdg.metadataqa.marc.cli.ValidatorCli"
CMD="/usr/bin/java -Xmx8g $JAVA_OPTIONS -cp $JAR de.gwdg.metadataqa.marc.cli.ValidatorCli"

echo $CMD $PARAMS "$@"
$CMD $PARAMS "$@"

0 comments on commit c9acd9e

Please sign in to comment.