Skip to content

Commit

Permalink
updated run scripts (+ bat)
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgesl committed Sep 18, 2024
1 parent e80f974 commit 62f8695
Show file tree
Hide file tree
Showing 27 changed files with 530 additions and 54 deletions.
18 changes: 0 additions & 18 deletions jmmc-tools/bin/run.sh

This file was deleted.

20 changes: 19 additions & 1 deletion jmmc-tools/bin/run_AppLauncher-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,23 @@
# GUI AppLauncher
#

bash run.sh fr.jmmc.smprun.AppLauncher "$@"

# set main class:
CLASS=fr.jmmc.smprun.AppLauncher

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

27 changes: 27 additions & 0 deletions jmmc-tools/bin/run_Aspro2-gui.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
REM Windows batch file
REM
REM GUI Aspro2
REM

REM enable/disable BB models :
REM SET JAVA_OPTS="-Djmal.bb=false"

REM set main class:
SET CLASS=fr.jmmc.aspro.Aspro2

SET DIR="."

REM --- template-start ---
REM jdk17+: add "--illegal-access=permit"
SET JAVA_OPTS="-Xms512m -Xmx4g %JAVA_OPTS%"

echo "Java version:"
java -version

echo "JAVA_OPTS: '%JAVA_OPTS%'"
echo "JAVA_TUNING: '%JAVA_TUNING%'"

java %JAVA_TUNING% %JAVA_OPTS% -cp %DIR%\jmmc-tools-TRUNK-jar-with-dependencies.jar %CLASS% %*

REM --- template-end ---

22 changes: 21 additions & 1 deletion jmmc-tools/bin/run_Aspro2-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,25 @@
# GUI Aspro2
#

bash run.sh fr.jmmc.aspro.Aspro2 "$@"
# enable/disable BB models :
#export JAVA_OPTS="-Djmal.bb=false"

# set main class:
CLASS=fr.jmmc.aspro.Aspro2

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

25 changes: 25 additions & 0 deletions jmmc-tools/bin/run_LITpro-gui.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
REM Windows batch file
REM
REM GUI LITpro
REM


REM set main class:
SET CLASS=fr.jmmc.mf.LITpro

SET DIR="."

REM --- template-start ---
REM jdk17+: add "--illegal-access=permit"
SET JAVA_OPTS="-Xms512m -Xmx4g %JAVA_OPTS%"

echo "Java version:"
java -version

echo "JAVA_OPTS: '%JAVA_OPTS%'"
echo "JAVA_TUNING: '%JAVA_TUNING%'"

java %JAVA_TUNING% %JAVA_OPTS% -cp %DIR%\jmmc-tools-TRUNK-jar-with-dependencies.jar %CLASS% %*

REM --- template-end ---

20 changes: 19 additions & 1 deletion jmmc-tools/bin/run_LITpro-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,23 @@
# GUI LITpro
#

bash run.sh fr.jmmc.mf.LITpro "$@"

# set main class:
CLASS=fr.jmmc.mf.LITpro

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

25 changes: 25 additions & 0 deletions jmmc-tools/bin/run_OIFitsExplorer-gui.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
REM Windows batch file
REM
REM GUI OIFitsExplorer
REM


REM set main class:
SET CLASS=fr.jmmc.oiexplorer.OIFitsExplorer

SET DIR="."

REM --- template-start ---
REM jdk17+: add "--illegal-access=permit"
SET JAVA_OPTS="-Xms512m -Xmx4g %JAVA_OPTS%"

echo "Java version:"
java -version

echo "JAVA_OPTS: '%JAVA_OPTS%'"
echo "JAVA_TUNING: '%JAVA_TUNING%'"

java %JAVA_TUNING% %JAVA_OPTS% -cp %DIR%\jmmc-tools-TRUNK-jar-with-dependencies.jar %CLASS% %*

REM --- template-end ---

20 changes: 19 additions & 1 deletion jmmc-tools/bin/run_OIFitsExplorer-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,23 @@
# GUI OIFitsExplorer
#

bash run.sh fr.jmmc.oiexplorer.OIFitsExplorer "$@"

# set main class:
CLASS=fr.jmmc.oiexplorer.OIFitsExplorer

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

20 changes: 19 additions & 1 deletion jmmc-tools/bin/run_OIFitsProcessor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,23 @@
# CLI OIFitsProcessor
#

bash run.sh fr.jmmc.oitools.OIFitsProcessor "$@"

# set main class:
CLASS=fr.jmmc.oitools.OIFitsProcessor

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

27 changes: 27 additions & 0 deletions jmmc-tools/bin/run_OImaging-gui.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
REM Windows batch file
REM
REM GUI OImaging
REM

REM enable/disable using local docker image:
REM SET JAVA_OPTS="-DRemoteExecutionMode.local=false"

REM set main class:
SET CLASS=fr.jmmc.oimaging.OImaging

SET DIR="."

REM --- template-start ---
REM jdk17+: add "--illegal-access=permit"
SET JAVA_OPTS="-Xms512m -Xmx4g %JAVA_OPTS%"

echo "Java version:"
java -version

echo "JAVA_OPTS: '%JAVA_OPTS%'"
echo "JAVA_TUNING: '%JAVA_TUNING%'"

java %JAVA_TUNING% %JAVA_OPTS% -cp %DIR%\jmmc-tools-TRUNK-jar-with-dependencies.jar %CLASS% %*

REM --- template-end ---

21 changes: 19 additions & 2 deletions jmmc-tools/bin/run_OImaging-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@
#

# enable/disable using local docker image:
export JAVA_OPTS="-DRemoteExecutionMode.local=false"
#export JAVA_OPTS="-DRemoteExecutionMode.local=false"

bash run.sh fr.jmmc.oimaging.OImaging "$@"
# set main class:
CLASS=fr.jmmc.oimaging.OImaging

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

25 changes: 25 additions & 0 deletions jmmc-tools/bin/run_SearchCal-gui.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
REM Windows batch file
REM
REM GUI SearchCal
REM


REM set main class:
SET CLASS=fr.jmmc.sclgui.SearchCal

SET DIR="."

REM --- template-start ---
REM jdk17+: add "--illegal-access=permit"
SET JAVA_OPTS="-Xms512m -Xmx4g %JAVA_OPTS%"

echo "Java version:"
java -version

echo "JAVA_OPTS: '%JAVA_OPTS%'"
echo "JAVA_TUNING: '%JAVA_TUNING%'"

java %JAVA_TUNING% %JAVA_OPTS% -cp %DIR%\jmmc-tools-TRUNK-jar-with-dependencies.jar %CLASS% %*

REM --- template-end ---

20 changes: 19 additions & 1 deletion jmmc-tools/bin/run_SearchCal-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,23 @@
# GUI SearchCal
#

bash run.sh fr.jmmc.sclgui.SearchCal "$@"

# set main class:
CLASS=fr.jmmc.sclgui.SearchCal

DIR="."

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

18 changes: 0 additions & 18 deletions jmmc-tools/run.sh

This file was deleted.

20 changes: 19 additions & 1 deletion jmmc-tools/run_AppLauncher-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,23 @@
# GUI AppLauncher
#

bash run.sh fr.jmmc.smprun.AppLauncher "$@"

# set main class:
CLASS=fr.jmmc.smprun.AppLauncher

DIR="bin"

# --- template-start ---
# jdk17+: add "--illegal-access=permit"
JAVA_OPTS="-Xms512m -Xmx4g $JAVA_OPTS"

echo "Java version:"
java -version

echo "JAVA_OPTS: '$JAVA_OPTS'"
echo "JAVA_TUNING: '$JAVA_TUNING'"

java $JAVA_TUNING $JAVA_OPTS -cp "$DIR/jmmc-tools-TRUNK-jar-with-dependencies.jar" $CLASS "$@"

# --- template-end ---

Loading

0 comments on commit 62f8695

Please sign in to comment.