diff --git a/Start NoConsole.bat b/Start NoConsole.bat deleted file mode 100644 index bc5e942..0000000 --- a/Start NoConsole.bat +++ /dev/null @@ -1 +0,0 @@ -javaw -cp ./Scripts;./lib/rs.jar;./lib/bis.jar;bot.jar; ClientInit NOCONSOLE \ No newline at end of file diff --git a/Start WithConsole.bat b/Start WithConsole.bat deleted file mode 100644 index 65f530e..0000000 --- a/Start WithConsole.bat +++ /dev/null @@ -1 +0,0 @@ -javaw -cp ./Scripts;./lib/rs.jar;./lib/bis.jar;bot.jar; ClientInit \ No newline at end of file diff --git a/build.xml b/build.xml index 1101169..36b3053 100644 --- a/build.xml +++ b/build.xml @@ -1,54 +1,71 @@ - - - - - + + + - - - + + + + + + + + + + + + + + + + + + + - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/compile.cmd b/compile.cmd deleted file mode 100644 index 2292d5c..0000000 --- a/compile.cmd +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -SET antpath="apache-ant-1.10.5\bin\" - -%antpath%ant -f build.xml compile \ No newline at end of file diff --git a/compile_all.cmd b/compile_all.cmd new file mode 100644 index 0000000..ac980a3 --- /dev/null +++ b/compile_all.cmd @@ -0,0 +1,7 @@ +@echo off +SET antpath="apache-ant-1.10.5\bin\" + +echo Compiling bot and scripts ... +echo. +call %antpath%ant -f build.xml compile-all +pause diff --git a/compile_scripts.cmd b/compile_scripts.cmd new file mode 100644 index 0000000..46016cb --- /dev/null +++ b/compile_scripts.cmd @@ -0,0 +1,12 @@ +@echo off + +SET antpath="apache-ant-1.10.5\bin\" + +IF NOT EXIST bot.jar ( + call compile_all.cmd +) ELSE ( + echo Compiling scripts ... + echo. + call %antpath%ant -f build.xml compile-scripts + pause +) diff --git a/run.cmd b/run.cmd index eb7927a..07c0f15 100644 --- a/run.cmd +++ b/run.cmd @@ -1,4 +1,10 @@ @echo off -SET antpath="apache-ant-1.10.5\bin\" -%antpath%ant -f build.xml runclient \ No newline at end of file +IF NOT EXIST bot.jar ( + echo Missing bot.jar ... + echo. + call compile_all.cmd +) + +start javaw -jar bot.jar %1 +exit diff --git a/run_noconsole.cmd b/run_noconsole.cmd new file mode 100644 index 0000000..667f25f --- /dev/null +++ b/run_noconsole.cmd @@ -0,0 +1,3 @@ +@echo off + +run.cmd _