summaryrefslogtreecommitdiff
path: root/set_soenv.in
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-11-30 23:53:45 +0200
committerTor Lillqvist <tml@iki.fi>2011-11-30 23:55:27 +0200
commit53125e89eb279fc816bc2f903d07a66bfd165c6f (patch)
tree25de176c694d4e5968e1fa986425b8c3ca2893d4 /set_soenv.in
parent1f6be70688a74b9f2ff1f641ef45c6fc5d20cc38 (diff)
Set JAVA_HOME before it is used
Diffstat (limited to 'set_soenv.in')
-rwxr-xr-xset_soenv.in13
1 files changed, 6 insertions, 7 deletions
diff --git a/set_soenv.in b/set_soenv.in
index 5c0166444255..90fcc0fb707b 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -128,6 +128,12 @@ $EPM_FLAGS = "";
$CL_X64 = '@CL_X64@';
$GNUMAKE = "@GNUMAKE@";
+# JAVA_HOME as argument from autoconf.
+$JAVA_HOME = PathFormat('@JAVA_HOME@') ;
+
+if ( $platform =~ m/cygwin/ ) {
+ $JAVA_HOME =~ s/[\s\/]+$//; # remove trailing \n or \/ if there is any.
+}
#
#--------------------------------------------------------------------
# IV. Initialise the warning container and print a note to the user.
@@ -797,13 +803,6 @@ $SRC_ROOT = PathFormat($SRC_ROOT);
CheckPathExist( $SRC_ROOT );
-# 2. Java home directory.
-# JAVA_HOME as argument from autoconf.
-$JAVA_HOME = PathFormat('@JAVA_HOME@') ;
-
-if ( $platform =~ m/cygwin/ ) {
- $JAVA_HOME =~ s/[\s\/]+$//; # remove trailing \n or \/ if there is any.
-}
# 3. bash path.
$OOO_SHELL = '@BASH@';