"Fossies" - the Fresh Open Source Software Archive

Member "unicore-ucc-8.0.2/bin/ucc.bat" (18 May 2020, 1235 Bytes) of package /linux/misc/unicore-ucc-8.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 
    3 rem
    4 rem Windows startscript for the UCC
    5 rem
    6 
    7 rem Figure out where UCC is installed
    8 set UCC_HOME=%~d0%~p0..
    9 
   10 rem Creating user UCC configuration directory
   11 set USER_UCC_HOME=%HOMEPATH%\.ucc
   12 if not exist %USER_UCC_HOME% (
   13     echo Creating user's preferences directory at %USER_UCC_HOME%
   14     mkdir "%USER_UCC_HOME%"
   15 )
   16 
   17 rem Copying configuration files if not exists
   18 set USER_UCC_FILES=preferences extensions user-keystore.jks 
   19 for %%i in (%USER_UCC_FILES%) do (
   20     if not exist %USER_UCC_HOME%\%%i (
   21         echo Copying file %%i to %USER_UCC_HOME%
   22         @copy %UCC_HOME%\conf\%%i %USER_UCC_HOME%
   23     )
   24 )
   25 
   26 rem Build the Java classpath
   27 set CLASSPATH=.
   28 for %%i in ("%UCC_HOME%\lib\*.jar") do ( call :cpappend %%i )
   29 
   30 set VM_ARGS1="-Ducc.extensions=%UCC_HOME%\conf\extensions"
   31 set VM_ARGS2="-Dlog4j.configuration=file:///%UCC_HOME%\conf\logging.properties"
   32 set VM_ARGS3="-Ducc.preferences=%USER_UCC_HOME%\preferences"
   33 
   34 set CMD_LINE_ARGS=%*
   35 
   36 rem
   37 rem Go
   38 rem
   39 java %VM_ARGS1% %VM_ARGS2% %VM_ARGS3% de.fzj.unicore.ucc.UCC %CMD_LINE_ARGS%
   40 goto :eof
   41 
   42 
   43 rem
   44 rem Helper to append stuff to the classpath
   45 rem
   46 :cpappend
   47 if ""%1"" == """" goto done
   48 set CLASSPATH=%CLASSPATH%;%*
   49 shift
   50 goto :cpappend
   51 :done
   52 goto :eof