irongit

An AI project that includes a scraper for NFL data, postgres database, and user interface. It uses a classification algorithm to predict winners.

Docker-Hackathon-2023/browsermob-proxy.bat
105 lines2.6 KBBatch File
1@REM ----------------------------------------------------------------------------
2@REM Copyright 2001-2004 The Apache Software Foundation.
3@REM
4@REM Licensed under the Apache License, Version 2.0 (the "License");
5@REM you may not use this file except in compliance with the License.
6@REM You may obtain a copy of the License at
7@REM
8@REM http://www.apache.org/licenses/LICENSE-2.0
9@REM
10@REM Unless required by applicable law or agreed to in writing, software
11@REM distributed under the License is distributed on an "AS IS" BASIS,
12@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13@REM See the License for the specific language governing permissions and
14@REM limitations under the License.
15@REM ----------------------------------------------------------------------------
16@REM
17
18@echo off
19
20set ERROR_CODE=0
21
22:init
23@REM Decide how to startup depending on the version of windows
24
25@REM -- Win98ME
26if NOT "%OS%"=="Windows_NT" goto Win9xArg
27
28@REM set local scope for the variables with windows NT shell
29if "%OS%"=="Windows_NT" @setlocal
30
31@REM -- 4NT shell
32if "%eval[2+2]" == "4" goto 4NTArgs
33
34@REM -- Regular WinNT shell
35set CMD_LINE_ARGS=%*
36goto WinNTGetScriptDir
37
38@REM The 4NT Shell from jp software
39:4NTArgs
40set CMD_LINE_ARGS=%$
41goto WinNTGetScriptDir
42
43:Win9xArg
44@REM Slurp the command line arguments. This loop allows for an unlimited number
45@REM of arguments (up to the command line limit, anyway).
46set CMD_LINE_ARGS=
47:Win9xApp
48if %1a==a goto Win9xGetScriptDir
49set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
50shift
51goto Win9xApp
52
53:Win9xGetScriptDir
54set SAVEDIR=%CD%
55%0\
56cd %0\..\..
57set BASEDIR=%CD%
58cd %SAVEDIR%
59set SAVE_DIR=
60goto repoSetup
61
62:WinNTGetScriptDir
63set BASEDIR=%~dp0\..
64
65:repoSetup
66
67
68if "%JAVACMD%"=="" set JAVACMD=java
69
70if "%REPO%"=="" set REPO=%BASEDIR%\lib
71
72set CLASSPATH="%BASEDIR%"\etc;"%REPO%"\*
73set EXTRA_JVM_ARGUMENTS=
74goto endInit
75
76@REM Reaching here means variables are defined and arguments have been captured
77:endInit
78
79%JAVACMD% %JAVA_OPTS% %EXTRA_JVM_ARGUMENTS% -classpath %CLASSPATH_PREFIX%;%CLASSPATH% -Dapp.name="browsermob-proxy" -Dapp.repo="%REPO%" -Dbasedir="%BASEDIR%" net.lightbody.bmp.proxy.Main %CMD_LINE_ARGS%
80if ERRORLEVEL 1 goto error
81goto end
82
83:error
84if "%OS%"=="Windows_NT" @endlocal
85set ERROR_CODE=1
86
87:end
88@REM set local scope for the variables with windows NT shell
89if "%OS%"=="Windows_NT" goto endNT
90
91@REM For old DOS remove the set variables from ENV - we assume they were not set
92@REM before we started - at least we don't leave any baggage around
93set CMD_LINE_ARGS=
94goto postExec
95
96:endNT
97@endlocal
98
99:postExec
100
101if "%FORCE_EXIT_ON_ERROR%" == "on" (
102 if %ERROR_CODE% NEQ 0 exit %ERROR_CODE%
103)
104
105exit /B %ERROR_CODE%