From d80597d462cd581df12ac8d5c9b01e8b98999e90 Mon Sep 17 00:00:00 2001
From: Christophe Sovant <christophe.sovant@forgerock.com>
Date: Wed, 14 May 2008 13:30:55 +0000
Subject: [PATCH] Fix compilation problem for SNMP tests

---
 opends/tests/shared/functions/utils.xml |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/opends/tests/shared/functions/utils.xml b/opends/tests/shared/functions/utils.xml
index 75e3084..157e090 100755
--- a/opends/tests/shared/functions/utils.xml
+++ b/opends/tests/shared/functions/utils.xml
@@ -2014,7 +2014,16 @@
     </function-map-args>
     
     <sequence>
-      
+      <call function="'ResolveVar'" >
+        { 
+        'location' : location ,
+        'type'     : 'STRING',
+        'name'     : 'STAF/Env/JAVA_HOME'
+        }
+      </call>
+      <script>local_java_home = '%s' % STAFResult</script>
+
+      <!-- Build the command -->
       <script>
         if classpath:
           cp = 'CLASSPATH=%s:.' % classpath
@@ -2025,7 +2034,7 @@
           cp = cp.replace(':', ';')
           
         if location == STAXServiceMachine:
-          cmd = 'javac'
+          cmd = '%s/bin/javac' % local_java_home
           env = ['%s' % cp]        
         else:
           cmd = '%s/bin/javac' % JAVA_HOME

--
Gitblit v1.10.0