forked from harvard-lts/fits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fits.bat
28 lines (21 loc) · 1.05 KB
/
fits.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
::-----------------------------------------------------------------
:: Windows script to execute FITS
@echo off
setlocal
:: Set FITS_HOME
set PRGDIR=%~dp0
set FITS_HOME=%PRGDIR:~0,-1%
cd %FITS_HOME%
:: Update JARS variable with JAR files in the following
:: NOTE--
:: all subdirectories of ${FITS_HOME}\lib\ get loaded dynamically at runtime. DO NOT add here!
for %%i in (lib\*.jar) do call "%FITS_HOME%\cpappend.bat" %%i
:: The Java classpath can be set using either the -classpath option when calling a JDK tool (the preferred method) or by setting the CLASSPATH environment variable.
:: The -classpath option is preferred because you can set it individually for each application without affecting other applications and without other applications modifying its value.
set APPCLASSPATH=.%JARS%
:: uncomment following line to see classpath
:: echo classpath=%APPCLASSPATH%
:: optionally set Java maximum heap size - uncomment and adjust as necessary
set JAVA_OPTS=
:: set JAVA_OPTS="-Xmx2048m"
java %JAVA_OPTS% -classpath %APPCLASSPATH% edu.harvard.hul.ois.fits.Fits %*