mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-02 01:20:15 +01:00
v0.5.2 ! Upped the bash & batch game. Can run from any directory,
auto-adaptation to jar files in lib, creation, use, and preservation upon update or reinstall of a startup customization file (Max JVM memory, custom java binary and custom JVM options as environment variables). This is valid for all OS types (bash or batch startup) and all installation methods (zip and nsis). Robustified a stupid version management for workspace settings.
This commit is contained in:
@@ -1 +1,20 @@
|
||||
start "" "javaw.exe" -Xmx512M -cp "lib\ATCS_v0.5.0.jar;lib\jide-oss.jar;lib\ui.jar;lib\junit-4.10.jar;lib\json_simple-1.1.jar;lib\rsyntaxtextarea.jar;lib\prefuse.jar;lib\AndorsTrainer_v0.1.2.jar;lib\bsh-2.0b4.jar" com.gpl.rpg.atcontentstudio.ATContentStudio
|
||||
@echo off
|
||||
|
||||
set ATCS_DIR=%~dp0
|
||||
set MAX_MEM=512M
|
||||
set CP=%ATCS_DIR%lib\*
|
||||
set JAVA=javaw.exe
|
||||
set JAVA_OPTS=
|
||||
set ENV_FILE=%ATCS_DIR%ATCS.env.bat
|
||||
set MAIN_CLASS=com.gpl.rpg.atcontentstudio.ATContentStudio
|
||||
|
||||
if exist %ENV_FILE% (
|
||||
call %ENV_FILE%
|
||||
) else (
|
||||
echo REM set MAX_MEM=%MAX_MEM% > %ENV_FILE%
|
||||
echo REM set JAVA=%JAVA% >> %ENV_FILE%
|
||||
echo REM set JAVA_OPTS=%JAVA_OPTS% >> %ENV_FILE%
|
||||
echo. >> %ENV_FILE%
|
||||
)
|
||||
|
||||
start "" "%JAVA%" %JAVA_OPTS% -Xmx%MAX_MEM% -cp "%CP%" %MAIN_CLASS%
|
||||
|
||||
Reference in New Issue
Block a user