Forked from
DM / dm-docs
261 commits behind, 726 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
dm-ant 431 B
#!/bin/sh
# Run ant
if [ -z $DM_ROOT_DIR ]; then
cd `dirname $0` && myDir=`pwd`
setupFile=$myDir/../../setup.sh
if [ ! -f $setupFile ]; then
echo "Cannot find setup file: $setupFile"
exit 1
fi
source $setupFile
fi
DM_HOST_ARCH=`uname | tr [A-Z] [a-z]`-`uname -m`
export JAVA_HOME=$DM_SUPPORT_DIR/java/$DM_HOST_ARCH
export ANT_HOME=$DM_SUPPORT_DIR/ant
export PATH=$ANT_HOME/bin:$PATH
ant $@