Merge pull request #8 from corda/clint-javahomefix

Fix an error in runnodes when running on Linux
This commit is contained in:
Clinton 2016-11-30 16:06:15 +00:00 committed by GitHub
commit e873347892
3 changed files with 9 additions and 7 deletions

View File

@ -1,8 +1,8 @@
buildscript {
// Our version: bump this on release.
ext.corda_version = "0.7-SNAPSHOT"
ext.gradle_plugins_version = "0.6.1"
ext.gradle_plugins_version = "0.5.7"
ext.kotlin_version = '1.0.5'
ext.quasar_version = '0.7.6'
ext.asm_version = '0.5.3'

View File

@ -2,7 +2,7 @@
// or if you are developing these plugins. See the readme for more information.
buildscript {
ext.gradle_plugins_version = "0.6" // Our version: bump this on release.
ext.gradle_plugins_version = "0.6.1" // Our version: bump this on release.
ext.corda_published_version = "0.5" // Depend on our existing published publishing plugin.
repositories {

View File

@ -27,11 +27,13 @@ if which osascript >/dev/null; then
end tell"
osascript -e "$script"
else
# Some other UNIX, probably Linux
# Some other UNIX, probably Linux (does not support msys or cygwin)
# TODO: msys and cygwin support
#
# This next line is safe even if JAVA_HOME is unset. If it is set, it means that java overrides the
# default system java, which is what we want.
export PATH=$JAVA_HOME/bin:$PATH
# If it is set, it means that java overrides the default system java, which is what we want.
if [ -n "${JAVA_HOME-}" ]; then
export PATH="$JAVA_HOME/bin:$PATH"
fi
for dir in `ls`; do
if [ -d $dir ]; then
pushd $dir >/dev/null
@ -39,4 +41,4 @@ else
popd >/dev/null
fi
done
fi
fi