Skip to content

Commit

Permalink
added scripts to run the jar
Browse files Browse the repository at this point in the history
  • Loading branch information
datasetutil committed Jun 13, 2015
1 parent 93e83c8 commit 3905c4e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions run.command
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3905c4e

Please sign in to comment.