"Fossies" - the Fresh Open Source Software Archive

Member "jdtaus-editor-3.1/bin/Editor.bat" (28 Oct 2016, 3875 Bytes) of package /linux/misc/jdtaus-editor-3.1-app.tar.bz2:


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. See also the last Fossies "Diffs" side-by-side code changes report for "Editor.bat": 3.0-app_vs_3.1-app.

    1 @REM
    2 @REM   Copyright (C) 2012-2015 Christian Schulte <cs@schulte.it>
    3 @REM
    4 @REM   All rights reserved. Copying, distribution, use or modification
    5 @REM   without prior written permission of the copyright holder prohibited.
    6 @REM
    7 @REM   THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
    8 @REM   WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    9 @REM   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   10 @REM   IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   11 @REM   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   12 @REM   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
   13 @REM   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   14 @REM   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
   15 @REM   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
   16 @REM   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
   17 @REM   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   18 @REM
   19 @REM   $SchulteIT: COPYRIGHT.txt 12215 2015-01-07 21:25:26Z schulte $
   20 
   21 @echo off
   22 
   23 set ERROR_CODE=0
   24 
   25 :init
   26 @REM Decide how to startup depending on the version of windows
   27 
   28 @REM -- Win98ME
   29 if NOT "%OS%"=="Windows_NT" goto Win9xArg
   30 
   31 @REM set local scope for the variables with windows NT shell
   32 if "%OS%"=="Windows_NT" @setlocal
   33 
   34 @REM -- 4NT shell
   35 if "%eval[2+2]" == "4" goto 4NTArgs
   36 
   37 @REM -- Regular WinNT shell
   38 set CMD_LINE_ARGS=%*
   39 goto WinNTGetScriptDir
   40 
   41 @REM The 4NT Shell from jp software
   42 :4NTArgs
   43 set CMD_LINE_ARGS=%$
   44 goto WinNTGetScriptDir
   45 
   46 :Win9xArg
   47 @REM Slurp the command line arguments.  This loop allows for an unlimited number
   48 @REM of arguments (up to the command line limit, anyway).
   49 set CMD_LINE_ARGS=
   50 :Win9xApp
   51 if %1a==a goto Win9xGetScriptDir
   52 set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
   53 shift
   54 goto Win9xApp
   55 
   56 :Win9xGetScriptDir
   57 set SAVEDIR=%CD%
   58 %0\
   59 cd %0\..\.. 
   60 set BASEDIR=%CD%
   61 cd %SAVEDIR%
   62 set SAVE_DIR=
   63 goto repoSetup
   64 
   65 :WinNTGetScriptDir
   66 set BASEDIR=%~dp0\..
   67 
   68 :repoSetup
   69 set REPO=
   70 
   71 
   72 if "%JAVACMD%"=="" set JAVACMD=java
   73 
   74 if "%REPO%"=="" set REPO=%BASEDIR%\lib
   75 
   76 set CLASSPATH="%BASEDIR%"\etc;"%REPO%"\*
   77 
   78 set ENDORSED_DIR=
   79 if NOT "%ENDORSED_DIR%" == "" set CLASSPATH="%BASEDIR%"\%ENDORSED_DIR%\*;%CLASSPATH%
   80 
   81 if NOT "%CLASSPATH_PREFIX%" == "" set CLASSPATH=%CLASSPATH_PREFIX%;%CLASSPATH%
   82 
   83 @REM Reaching here means variables are defined and arguments have been captured
   84 :endInit
   85 
   86 %JAVACMD% %JAVA_OPTS% -Djava.ext.dirs="%BASEDIR%"\lib\ext -Dapple.laf.useScreenMenuBar=true -Djava.net.useSystemProxies=true -Dhttp.keepAlive=false -Dcom.sun.jndi.dns.timeout.initial=2000 -Dcom.sun.jndi.dns.timeout.retries=2 -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -Dcom.sun.xml.bind.v2.runtime.JAXBContextImpl.fastBoot=true -Dorg.jomc.modlet.ModelContext.defaultLogLevel=ALL -Dorg.jomc.ri.DefaultObjectManager.defaultLogLevel=ALL -Dorg.jomc.ri.DefaultObjectManager.defaultModelObjectClasspathResolutionEnabled=true -splash:"%BASEDIR%"\bin\jdtaus.png -classpath %CLASSPATH% -Dapp.name="windows" -Dapp.repo="%REPO%" -Dapp.home="%BASEDIR%" -Dbasedir="%BASEDIR%" org.jdtaus.editor.application.Main %CMD_LINE_ARGS%
   87 if %ERRORLEVEL% NEQ 0 goto error
   88 goto end
   89 
   90 :error
   91 if "%OS%"=="Windows_NT" @endlocal
   92 set ERROR_CODE=%ERRORLEVEL%
   93 
   94 :end
   95 @REM set local scope for the variables with windows NT shell
   96 if "%OS%"=="Windows_NT" goto endNT
   97 
   98 @REM For old DOS remove the set variables from ENV - we assume they were not set
   99 @REM before we started - at least we don't leave any baggage around
  100 set CMD_LINE_ARGS=
  101 goto postExec
  102 
  103 :endNT
  104 @REM If error code is set to 1 then the endlocal was done already in :error.
  105 if %ERROR_CODE% EQU 0 @endlocal
  106 
  107 
  108 :postExec
  109 
  110 if "%FORCE_EXIT_ON_ERROR%" == "on" (
  111   if %ERROR_CODE% NEQ 0 exit %ERROR_CODE%
  112 )
  113 
  114 exit /B %ERROR_CODE%