diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..af64f77 --- /dev/null +++ b/run.bat @@ -0,0 +1,13 @@ +@ECHO OFF +SET BASEDIR=%~dp0. +cd %BASEDIR% + +FOR /F "delims=|" %%I IN ('DIR /B /O:D') DO SET LATEST_JAR=%%I +echo %LATEST_JAR% + +java -cp .;%LATEST_JAR% com.sforce.dataset.util.UpgradeChecker + +FOR /F "delims=|" %%I IN ('DIR /B /O:D') DO SET LATEST_JAR=%%I +echo %LATEST_JAR% + +java -Xmx1G -jar %LATEST_JAR% --server true diff --git a/run.command b/run.command new file mode 100644 index 0000000..31ac974 --- /dev/null +++ b/run.command @@ -0,0 +1,17 @@ +#!/bin/bash +echo "Script executed from: ${PWD}" +BASEDIR=$(dirname $0) +echo "Script location: ${BASEDIR}" +cd ${BASEDIR} +echo "Current dir ${PWD}" +LATEST_JAR=$(ls -t datasetutils-*.jar | head -1) +echo ${LATEST_JAR} + +java -cp .:${LATEST_JAR} com.sforce.dataset.util.UpgradeChecker + + +LATEST_JAR=$(ls -t datasetutils-*.jar | head -1) +echo ${LATEST_JAR} + +java -Xmx1G -jar ${LATEST_JAR} --server true +