#hmmm: if this works well, we can use it in lots of places.
define_yeti_alias BAIL_ON_FAIL='if [ $? -ne 0 ]; then echo "A problem occurred. $msg"; return 1; fi'
+function zapem()
+{
+ bash $XSEDE_TEST_ROOT/library/zap_genesis_javas.sh
+}
+
+# a macro for testing the configuration.
+export GFFS_CHECK_VARS='
+ if [ -z "$GENII_INSTALL_DIR" -o -z "$XSEDE_TEST_ROOT" ]; then
+ echo "GENII_INSTALL_DIR is not set.";
+ return 1;
+ fi '
+
function build_gffs()
{
- if [ -z "$GENII_INSTALL_DIR" ]; then
- echo GENII_INSTALL_DIR is not set.
- return 1
- fi
+ eval $GFFS_CHECK_VARS
+# if [ -z "$GENII_INSTALL_DIR" -o -z "$XSEDE_TEST_ROOT" ]; then
+# echo GENII_INSTALL_DIR is not set.
+# return 1
+# fi
+ zapem
pushd "$GENII_INSTALL_DIR"
if [ $? -ne 0 ]; then
error_sound
function rebuild_gffs()
{
- if [ -z "$GENII_INSTALL_DIR" ]; then
- echo GENII_INSTALL_DIR is not set.
- return 1
- fi
+ eval $GFFS_CHECK_VARS
+# if [ -z "$GENII_INSTALL_DIR" -o -z "$XSEDE_TEST_ROOT" ]; then
+# echo GENII_INSTALL_DIR is not set.
+# return 1
+# fi
+ zapem
pushd "$GENII_INSTALL_DIR"
ant clean
# a shortcut for doing a new build and creating a bootstrap container with it.
function rebu_bootstrap()
{
+ eval $GFFS_CHECK_VARS
rebuild_gffs
if [ $? -ne 0 ]; then echo "failed to rebuild gffs code"; return 1; fi
# a shortcut for building without a clean, and creating a bootstrap container with the code.
function bu_bootstrap()
{
+ eval $GFFS_CHECK_VARS
build_gffs
if [ $? -ne 0 ]; then echo "failed to rebuild gffs code"; return 1; fi
# a shortcut for doing a quick build and then creating an installer.
function fast_install_build()
{
- bash "$GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh" $*
+ eval $GFFS_CHECK_VARS
+ bash "$XSEDE_TEST_ROOT/tools/installer/fast_installer_build.sh" $*
if [ $? -ne 0 ]; then
echo "failed to create the installer."
error_sound