#!/bin/sh

# -> Set your JDK (not really required, but I'm paranoid) <-
export JAVA_HOME=/etc/jdk1.8.0_45_x64

# -> Set this variable's value to your spoon's path <-
SPOON_DIR=/home/oriollopez/Aplicaciones/spoon-data-integration

#DIR=`pwd`
#echo "Current directory [$DIR]"

echo "Going to folder"
cd $DIR

echo "Setting up pentaho-env"
./set-pentaho-env.sh

echo "JAVA_HOME [$JAVA_HOME]"

echo "Executing spoon"
./spoon.sh

# If for any reason it doesn't work, change the desktop's
# Terminal attribute to "true" and uncomment the next line.
# sleep 10000