diff --git a/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh b/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
index 692b61f6129aa7a4c07db3f260815c392475ad03..7eeb6e856c71dc3536438fb48a6fa937f9a939fe 100755
--- a/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
+++ b/titan_executor_api/TITAN_Executor_API_test/build_and_run_test.sh
@@ -80,7 +80,9 @@ file_exist ${JUNIT_FULL}
 file_exist ${HAMCREST_FULL}
 
 # run test (and build its dependencies if needed)
+BASEDIR=${0%/*}
 ant \
+-f $BASEDIR/build.xml \
 -Djunit.full=${JUNIT_FULL} \
 -Dhamcrest.full=${HAMCREST_FULL} \
 TITAN_Executor_API_test