forked from pentaho/pentaho-kettle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PDI-9514] - utilizing spoon.sh to launch other main methods in a uni…
…form manner
- Loading branch information
Bryan Rosander
committed
Jun 25, 2014
1 parent
87801dc
commit 9e7fe2f
Showing
7 changed files
with
35 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,13 @@ | ||
#!/bin/sh | ||
|
||
# ************************************************** | ||
# ** Libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
BASEDIR=`dirname $0` | ||
cd $BASEDIR | ||
DIR=`pwd` | ||
cd - | ||
|
||
. "$DIR/set-pentaho-env.sh" | ||
|
||
setPentahoEnv | ||
|
||
CLASSPATH=$BASEDIR | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core-@[email protected] | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-@[email protected] | ||
|
||
# ************************************************** | ||
# ** JDBC & other libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
for f in `find $BASEDIR/lib -type f -name "*.jar"` `find $BASEDIR/lib -type f -name "*.zip"` | ||
do | ||
CLASSPATH=$CLASSPATH:$f | ||
done | ||
|
||
# ****************************************************************** | ||
# ** Set java runtime options ** | ||
# ** Change 512m to higher values in case you run out of memory ** | ||
# ** or set the PENTAHO_DI_JAVA_OPTIONS environment variable ** | ||
# ** (JAVAMEMOPTIONS is there for compatibility reasons) ** | ||
# ****************************************************************** | ||
|
||
if [ -z "$JAVAMEMOPTIONS" ]; then | ||
JAVAMEMOPTIONS="-Xmx512m" | ||
fi | ||
|
||
if [ -z "$PENTAHO_DI_JAVA_OPTIONS" ]; then | ||
PENTAHO_DI_JAVA_OPTIONS=$JAVAMEMOPTIONS | ||
fi | ||
|
||
OPT="$OPT $PENTAHO_DI_JAVA_OPTIONS -cp $CLASSPATH -Dorg.mortbay.util.URI.charset=UTF-8 -Djava.library.path=$LIBPATH -DKETTLE_HOME=$KETTLE_HOME -DKETTLE_REPOSITORY=$KETTLE_REPOSITORY -DKETTLE_USER=$KETTLE_USER -DKETTLE_PASSWORD=$KETTLE_PASSWORD -DKETTLE_PLUGIN_PACKAGES=$KETTLE_PLUGIN_PACKAGES -DKETTLE_LOG_SIZE_LIMIT=$KETTLE_LOG_SIZE_LIMIT -DKETTLE_JNDI_ROOT=$KETTLE_JNDI_ROOT" | ||
|
||
# ****************************************************************** | ||
# ** Set up the options for JAAS ** | ||
# ****************************************************************** | ||
|
||
BASEDIR="`dirname $0`" | ||
cd "$BASEDIR" | ||
DIR="`pwd`" | ||
cd - > /dev/null | ||
OPT="$OPT -Dorg.mortbay.util.URI.charset=UTF-8" | ||
if [ ! "x$JAAS_LOGIN_MODULE_CONFIG" = "x" -a ! "x$JAAS_LOGIN_MODULE_NAME" = "x" ]; then | ||
OPT=$OPT" -Djava.security.auth.login.config=$JAAS_LOGIN_MODULE_CONFIG" | ||
OPT=$OPT" -Dloginmodulename=$JAAS_LOGIN_MODULE_NAME" | ||
fi | ||
|
||
# *************** | ||
# ** Run... ** | ||
# *************** | ||
|
||
"$_PENTAHO_JAVA" $OPT org.pentaho.di.www.Carte "${1+$@}" | ||
export OPT | ||
"$DIR/spoon.sh" -main org.pentaho.di.www.Carte "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# ************************************************** | ||
# ** Libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
BASEDIR=`dirname $0` | ||
cd $BASEDIR | ||
DIR=`pwd` | ||
cd - | ||
|
||
. "$DIR/set-pentaho-env.sh" | ||
|
||
setPentahoEnv | ||
|
||
CLASSPATH=$BASEDIR | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core-@[email protected] | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-@[email protected] | ||
|
||
# ************************************************** | ||
# ** JDBC & other libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
for f in `find $BASEDIR/lib -type f -name "*.jar"` `find $BASEDIR/lib -type f -name "*.zip"` | ||
do | ||
CLASSPATH=$CLASSPATH:$f | ||
done | ||
|
||
|
||
# ************************************************** | ||
# ** Platform specific libraries ... ** | ||
# ************************************************** | ||
|
||
OPT="$OPT -cp $CLASSPATH" | ||
|
||
# *************** | ||
# ** Run... ** | ||
# *************** | ||
|
||
"$_PENTAHO_JAVA" $OPT org.pentaho.di.core.encryption.Encr "${1+$@}" | ||
|
||
|
||
|
||
|
||
BASEDIR="`dirname $0`" | ||
cd "$BASEDIR" | ||
DIR="`pwd`" | ||
cd - > /dev/null | ||
"$DIR/spoon.sh" -main org.pentaho.di.core.encryption.Encr "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# ************************************************** | ||
# ** Libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
BASEDIR=`dirname $0` | ||
cd $BASEDIR | ||
DIR=`pwd` | ||
cd - | ||
|
||
. "$DIR/set-pentaho-env.sh" | ||
|
||
setPentahoEnv | ||
|
||
CLASSPATH=$BASEDIR | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core.jar | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-db.jar | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine.jar | ||
|
||
# ************************************************** | ||
# ** JDBC & other libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
for f in `find $BASEDIR/lib -type f -name "*.jar"` `find $BASEDIR/lib -type f -name "*.zip"` | ||
do | ||
CLASSPATH=$CLASSPATH:$f | ||
done | ||
|
||
|
||
# ************************************************** | ||
# ** Platform specific libraries ... ** | ||
# ************************************************** | ||
# ****************************************************************** | ||
# ** Set java runtime options ** | ||
# ** Change 128m to higher values in case you run out of memory. ** | ||
# ****************************************************************** | ||
|
||
if [ -z "$JAVAMAXMEM" ]; then | ||
JAVAMAXMEM="256" | ||
fi | ||
|
||
OPT="$OPT -Xmx${JAVAMAXMEM}m -cp $CLASSPATH -Djava.library.path=$LIBPATH -DKETTLE_HOME=$KETTLE_HOME -DKETTLE_REPOSITORY=$KETTLE_REPOSITORY -DKETTLE_USER=$KETTLE_USER -DKETTLE_PASSWORD=$KETTLE_PASSWORD -DKETTLE_PLUGIN_PACKAGES=$KETTLE_PLUGIN_PACKAGES -DKETTLE_LOG_SIZE_LIMIT=$KETTLE_LOG_SIZE_LIMIT" | ||
BASEDIR="`dirname $0`" | ||
cd "$BASEDIR" | ||
DIR="`pwd`" | ||
cd - > /dev/null | ||
|
||
if [ "$1" = "-x" ]; then | ||
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BASEDIR/lib | ||
export LD_LIBRARY_PATH | ||
OPT="-Xruntracer $OPT" | ||
export OPT="-Xruntracer $OPT" | ||
shift | ||
fi | ||
|
||
# *************** | ||
# ** Run... ** | ||
# *************** | ||
|
||
"$_PENTAHO_JAVA" $OPT org.pentaho.di.cluster.GenerateClusterSchema "${1+$@}" | ||
|
||
"$DIR/spoon.sh" -main org.pentaho.di.cluster.GenerateClusterSchema "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,13 @@ | ||
#!/bin/sh | ||
|
||
# ************************************************** | ||
# ** Libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
|
||
BASEDIR=`dirname $0` | ||
cd $BASEDIR | ||
DIR=`pwd` | ||
BASEDIR="`dirname $0`" | ||
cd "$BASEDIR" | ||
DIR="`pwd`" | ||
cd - > /dev/null | ||
|
||
. "$DIR/set-pentaho-env.sh" | ||
|
||
setPentahoEnv | ||
|
||
CLASSPATH=$BASEDIR | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core-@[email protected] | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-@[email protected] | ||
|
||
# ************************************************** | ||
# ** JDBC & other libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
for f in `find $BASEDIR/lib -type f -name "*.jar"` `find $BASEDIR/lib -type f -name "*.zip"` | ||
do | ||
CLASSPATH=$CLASSPATH:$f | ||
done | ||
|
||
|
||
# ************************************************** | ||
# ** Platform specific libraries ... ** | ||
# ************************************************** | ||
|
||
# circumvention for the IBM JVM behavior (seems to be a problem with the IBM JVM native compiler) | ||
if [ `uname -s` = "OS400" ] | ||
then | ||
CLASSPATH=${CLASSPATH}:$BASEDIR/libswt/aix/swt.jar | ||
fi | ||
|
||
|
||
# ****************************************************************** | ||
# ** Set java runtime options ** | ||
# ** Change 512m to higher values in case you run out of memory ** | ||
# ** or set the PENTAHO_DI_JAVA_OPTIONS environment variable ** | ||
# ** (JAVAMAXMEM is there for compatibility reasons) ** | ||
# ****************************************************************** | ||
|
||
if [ -z "$JAVAMAXMEM" ]; then | ||
JAVAMAXMEM="512" | ||
fi | ||
|
||
if [ -z "$PENTAHO_DI_JAVA_OPTIONS" ]; then | ||
PENTAHO_DI_JAVA_OPTIONS="-Xmx${JAVAMAXMEM}m" | ||
fi | ||
|
||
OPT="$OPT $PENTAHO_DI_JAVA_OPTIONS -cp $CLASSPATH -DDI_HOME=$DIR -DKETTLE_HOME=$KETTLE_HOME -DKETTLE_REPOSITORY=$KETTLE_REPOSITORY -DKETTLE_USER=$KETTLE_USER -DKETTLE_PASSWORD=$KETTLE_PASSWORD -DKETTLE_PLUGIN_PACKAGES=$KETTLE_PLUGIN_PACKAGES -DKETTLE_LOG_SIZE_LIMIT=$KETTLE_LOG_SIZE_LIMIT -DKETTLE_JNDI_ROOT=$KETTLE_JNDI_ROOT" | ||
|
||
if [ "$1" = "-x" ]; then | ||
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BASEDIR/lib | ||
export LD_LIBRARY_PATH | ||
OPT="-Xruntracer $OPT" | ||
export OPT="-Xruntracer $OPT" | ||
shift | ||
fi | ||
|
||
# *************** | ||
# ** Run... ** | ||
# *************** | ||
|
||
"$_PENTAHO_JAVA" $OPT org.pentaho.di.imp.Import "${1+$@}" | ||
|
||
"$DIR/spoon.sh" -main org.pentaho.di.imp.Import "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# ************************************************** | ||
# ** Libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
|
||
BASEDIR=`dirname $0` | ||
cd $BASEDIR | ||
DIR=`pwd` | ||
BASEDIR="`dirname $0`" | ||
cd "$BASEDIR" | ||
DIR="`pwd`" | ||
cd - > /dev/null | ||
|
||
. "$DIR/set-pentaho-env.sh" | ||
|
||
setPentahoEnv | ||
|
||
CLASSPATH=$BASEDIR | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-core-@[email protected] | ||
CLASSPATH=$CLASSPATH:$BASEDIR/lib/kettle-engine-@[email protected] | ||
|
||
# ************************************************** | ||
# ** JDBC & other libraries used by Kettle: ** | ||
# ************************************************** | ||
|
||
for f in `find $BASEDIR/lib -type f -name "*.jar"` `find $BASEDIR/lib -type f -name "*.zip"` | ||
do | ||
CLASSPATH=$CLASSPATH:$f | ||
done | ||
|
||
|
||
# ************************************************** | ||
# ** Platform specific libraries ... ** | ||
# ************************************************** | ||
|
||
# circumvention for the IBM JVM behavior (seems to be a problem with the IBM JVM native compiler) | ||
if [ `uname -s` = "OS400" ] | ||
then | ||
CLASSPATH=${CLASSPATH}:$BASEDIR/libswt/aix/swt.jar | ||
fi | ||
|
||
|
||
# ****************************************************************** | ||
# ** Set java runtime options ** | ||
# ** Change 512m to higher values in case you run out of memory ** | ||
# ** or set the PENTAHO_DI_JAVA_OPTIONS environment variable ** | ||
# ** (JAVAMAXMEM is there for compatibility reasons) ** | ||
# ****************************************************************** | ||
|
||
if [ -z "$JAVAMAXMEM" ]; then | ||
JAVAMAXMEM="512" | ||
fi | ||
|
||
if [ -z "$PENTAHO_DI_JAVA_OPTIONS" ]; then | ||
PENTAHO_DI_JAVA_OPTIONS="-Xmx${JAVAMAXMEM}m" | ||
fi | ||
|
||
OPT="$OPT $PENTAHO_DI_JAVA_OPTIONS -cp $CLASSPATH -DDI_HOME=$DIR -DKETTLE_HOME=$KETTLE_HOME -DKETTLE_REPOSITORY=$KETTLE_REPOSITORY -DKETTLE_USER=$KETTLE_USER -DKETTLE_PASSWORD=$KETTLE_PASSWORD -DKETTLE_PLUGIN_PACKAGES=$KETTLE_PLUGIN_PACKAGES -DKETTLE_LOG_SIZE_LIMIT=$KETTLE_LOG_SIZE_LIMIT -DKETTLE_JNDI_ROOT=$KETTLE_JNDI_ROOT" | ||
|
||
if [ "$1" = "-x" ]; then | ||
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BASEDIR/lib | ||
export LD_LIBRARY_PATH | ||
OPT="-Xruntracer $OPT" | ||
export OPT="-Xruntracer $OPT" | ||
shift | ||
fi | ||
|
||
# *************** | ||
# ** Run... ** | ||
# *************** | ||
|
||
"$_PENTAHO_JAVA" $OPT org.pentaho.di.kitchen.Kitchen "${1+$@}" | ||
|
||
"$DIR/spoon.sh" -main org.pentaho.di.kitchen.Kitchen "$@" |
Oops, something went wrong.