Skip to content
Snippets Groups Projects
Commit 845834c2 authored by sveseli's avatar sveseli
Browse files

properly setup java path for ant script

parent 126a8bb4
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,8 @@ if [ -z $DM_ROOT_DIR ]; then ...@@ -13,8 +13,8 @@ if [ -z $DM_ROOT_DIR ]; then
fi fi
DM_HOST_ARCH=`uname | tr [A-Z] [a-z]`-`uname -m` DM_HOST_ARCH=`uname | tr [A-Z] [a-z]`-`uname -m`
export JAVA_HOME=$DM_SUPPORT/java/$DM_HOST_ARCH export JAVA_HOME=$DM_SUPPORT_DIR/java/$DM_HOST_ARCH
export ANT_HOME=$DM_SUPPORT/ant export ANT_HOME=$DM_SUPPORT_DIR/ant
export PATH=$ANT_HOME/bin:$PATH export PATH=$ANT_HOME/bin:$PATH
ant $@ ant $@
......
...@@ -53,8 +53,10 @@ prependPathIfDirExists() { ...@@ -53,8 +53,10 @@ prependPathIfDirExists() {
} }
# Setup path and other variables # Setup path and other variables
PATH=$DM_SUPPORT_DIR/postgresql/$DM_HOST_ARCH/bin:$PATH prependPathIfDirExists $DM_SUPPORT_DIR/postgresql/$DM_HOST_ARCH/bin
PATH=$DM_ROOT_DIR/bin:$PATH prependPathIfDirExists $DM_SUPPORT_DIR/java/$DM_HOST_ARCH/bin
prependPathIfDirExists $DM_SUPPORT_DIR/ant/bin
prependPathIfDirExists $DM_ROOT_DIR/bin
PATH=.:$PATH PATH=.:$PATH
export PATH export PATH
...@@ -65,9 +67,8 @@ else ...@@ -65,9 +67,8 @@ else
fi fi
export LD_LIBRARY_PATH export LD_LIBRARY_PATH
# Setup python path. First check for wx, then try to find it locally, and # Setup python path.
# then re-check for it. # Check if we have local python
# Check if we have local python
if [ -z $DM_PYTHON_DIR ]; then if [ -z $DM_PYTHON_DIR ]; then
pythonDir=$DM_SUPPORT_DIR/python/$DM_HOST_ARCH pythonDir=$DM_SUPPORT_DIR/python/$DM_HOST_ARCH
else else
......
TOP = ../.. TOP = ..
SUBDIRS = DmWebPortal SUBDIRS = java
include $(TOP)/tools/make/RULES_DM include $(TOP)/tools/make/RULES_DM
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment