office-gobmx/solenv/bin/checkapi.btm
2008-09-30 07:44:27 +00:00

31 lines
723 B
Text

rem @echo off
setlocal
SET JARFOLDER=%SOLARVERSION%\%INPATH%\bin%UPDMINOREXT%
SET APICLASSPATH=%JARFOLDER%\OOoRunner.jar;%JARFOLDER%\ridl.jar;%JARFOLDER%\unoil.jar;%JARFOLDER%\jurt.jar;%JARFOLDER%\juh.jar;%JARFOLDER%\java_uno.jar;\\unoapi\export\unoapi\bin\mysql.jar
IFF "%JAVAI%" != "" THEN
SET JAVABIN=%JAVAI%
ELSEIFF "%JAVA_HOME%" != "" THEN
SET JAVABIN=%JAVA_HOME%\bin\java
ELSE
echo please set environment variable JAVA_HOME
exit 1
ENDIFF
SET PARAM=-cs pipe,name=%USERNAME% -SRC_ROOT %SRC_ROOT%
IFF "%RUNNERPROPS%" != "" THEN
SET PARAM=%PARAM% -ini %RUNNERPROPS%
ENDIFF
set COMMAND=%JAVABIN% -Xmx120m -cp %APICLASSPATH% org.openoffice.Runner %PARAM% %&
echo %COMMAND
%COMMAND
endlocal
quit