2012-02-02 10:49:17 +07:00
|
|
|
@Title ... Setup Adempiere Server
|
2010-11-04 17:05:01 +07:00
|
|
|
@Rem $Header: /cvsroot/adempiere/install/Adempiere/RUN_setup.bat,v 1.19 2005/09/08 21:54:12 jjanke Exp $
|
|
|
|
@Echo off
|
|
|
|
|
|
|
|
|
|
|
|
@if not "%JAVA_HOME%" == "" goto JAVA_HOME_OK
|
|
|
|
@Set JAVA=java
|
|
|
|
@Echo JAVA_HOME is not set.
|
|
|
|
@Echo You may not be able to start the required Setup window !!
|
|
|
|
@Echo Set JAVA_HOME to the directory of your local 1.5 JDK.
|
|
|
|
@Echo If you experience problems, run utils/WinEnv.js
|
|
|
|
@Echo Example: cscript utils\WinEnv.js C:\Adempiere "C:\Program Files\Java\jdk1.5.0_04"
|
|
|
|
goto START
|
|
|
|
|
|
|
|
:JAVA_HOME_OK
|
|
|
|
@Set JAVA=%JAVA_HOME%\bin\java
|
|
|
|
|
|
|
|
|
|
|
|
:START
|
|
|
|
@REM Setup Adempiere.properties and AdempiereEnv.properties
|
2012-05-02 00:26:04 +07:00
|
|
|
@"%JAVA%" -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=setup -jar plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar -application org.adempiere.install.application -consoleLog
|
2010-11-04 17:05:01 +07:00
|
|
|
|
|
|
|
@Echo ErrorLevel = %ERRORLEVEL%
|
|
|
|
@IF NOT ERRORLEVEL = 1 GOTO NEXT
|
|
|
|
@Echo ***************************************
|
|
|
|
@Echo Check the error message above.
|
|
|
|
@Echo ***************************************
|
|
|
|
@Pause
|
|
|
|
@Exit
|
|
|
|
|
|
|
|
:NEXT
|
|
|
|
@REM setup tomcat
|
2012-02-02 10:49:17 +07:00
|
|
|
@Echo ... Setup Tomcat
|
2012-05-02 00:26:04 +07:00
|
|
|
@"%JAVA%" -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=setup -jar plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar -application org.eclipse.ant.core.antRunner -buildfile build.xml
|
2010-11-04 17:05:01 +07:00
|
|
|
|
2012-02-02 10:49:17 +07:00
|
|
|
@Echo ...
|
2010-11-04 17:05:01 +07:00
|
|
|
@Echo For problems, check log file in base directory
|
|
|
|
@Rem Wait 10 second
|
|
|
|
@PING 1.1.1.1 -n 1 -w 10000 > NUL
|