From 8161ef4cf3e8ef85abfb466dd643bcc5346e82fe Mon Sep 17 00:00:00 2001 From: mayhew64 Date: Sat, 30 Sep 2006 13:47:15 +0000 Subject: [PATCH] Added items remotely C:\p4\depot\WebGoat\J2EE\main\eclipse.bat C:\p4\depot\WebGoat\J2EE\main\webgoat.bat C:\p4\depot\WebGoat\J2EE\main\webgoat.sh C:\p4\depot\WebGoat\J2EE\main\webgoat_8080.bat C:\p4\depot\WebGoat\J2EE\main\webscarab.bat git-svn-id: http://webgoat.googlecode.com/svn/trunk@17 4033779f-a91e-0410-96ef-6bf7bf53c507 --- webgoat/main/webgoat.bat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 webgoat/main/webgoat.bat diff --git a/ webgoat/main/webgoat.bat b/ webgoat/main/webgoat.bat new file mode 100644 index 000000000..885ccd849 --- /dev/null +++ b/ webgoat/main/webgoat.bat @@ -0,0 +1,25 @@ +@echo on + + +@REM Clear the lib env var as it can hose tomcat +SET lib= + +@REM Make sure the webgoat DB is writable +attrib -R .\tomcat\webapps\WebGoat\database\*.* + +@REM Set env vars for tomcat and java, use PWD as some machines don't have +@REM \. on their path +set PWD=%cd% +set CATALINA_HOME=%PWD%\tomcat +set JAVA_HOME=%PWD%\java + +delete .\tomcat\conf\server.xml +copy .\tomcat\conf\server_80.xml .\tomcat\conf\server.xml + +@REM Run tomcat: must have quotes incase var has spaces in it +call "%CATALINA_HOME%\bin\startup.bat" start + +echo +echo If the Tomcat DOS shell quit immediately, it is likely that +echo there is another service listening on port 80. +echo