@echo off REM *************************************************************************** REM This software is subject to the terms of the Eclipse Public License v1.0 REM Agreement, available at the following URL: REM http://www.eclipse.org/legal/epl-v10.html. REM You must accept the terms of that agreement to use this software. REM REM Copyright (c) 2007-2018 Hitachi Vantara.. All rights reserved. REM *************************************************************************** cd /D %~dp0 rem Schema Workbench launch script rem base Mondrian JARs need to be included set CP=lib/*;plugins/*;drivers/* rem Have a .schemaWorkbench directory for local for /F "delims=/" %%i in ('echo %USERPROFILE%') do set ROOT=%%~si if not exist %ROOT%\.schemaWorkbench mkdir %ROOT%\.schemaWorkbench if not exist %ROOT%\.schemaWorkbench\log4j.xml copy log4j.xml %ROOT%\.schemaWorkbench if not exist %ROOT%\.schemaWorkbench\mondrian.properties copy mondrian.properties %ROOT%\.schemaWorkbench rem put mondrian.properties on the classpath for it to be picked up set CP=%ROOT%/.schemaWorkbench;%CP% rem or rem set the log4j.properties system property rem "-Dlog4j.properties=path to <.properties or .xml file>" rem in the java command below to adjust workbench logging set PENTAHO_JAVA=java call "%~dp0set-pentaho-env.bat" "%_PENTAHO_JAVA%" -Xms1024m -Xmx2048m -cp "%CP%" -Dlog4j.configuration=file:///%ROOT%\.schemaWorkbench\log4j.xml mondrian.gui.Workbench rem End workbench.bat