20 lines
312 B
Bash
Executable File
20 lines
312 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# script to run export command
|
|
#
|
|
|
|
BASEDIR=$(dirname $0);export BASEDIR
|
|
|
|
JS_EXP_CMD_CLASS=com.jaspersoft.jasperserver.export.ExportCommand
|
|
export JS_EXP_CMD_CLASS
|
|
|
|
JS_CMD_NAME=$0
|
|
export JS_CMD_NAME
|
|
|
|
$BASEDIR/js-ant "validate-database"
|
|
|
|
if [ $? -eq 0 ];
|
|
then
|
|
$BASEDIR/bin/js-import-export.sh $*
|
|
fi
|