From 33d5216d9278652dba6cfa036b42c2ea23087c3b Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Wed, 07 Feb 2007 21:29:05 +0000
Subject: [PATCH] fix for issue 1208. Specify jvm arg org.opends.server.scriptName to avoid throwing exception access control when writing configuration file

---
 opendj-sdk/opends/tests/installer.xml |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opends/tests/installer.xml b/opendj-sdk/opends/tests/installer.xml
index ac3b914..dc3df2d 100644
--- a/opendj-sdk/opends/tests/installer.xml
+++ b/opendj-sdk/opends/tests/installer.xml
@@ -106,12 +106,14 @@
 	<!-- end of uninstall related targets -->
 	
 	<!-- configuration -->
+  
+
   <target name="configure.do"
           description="configures product to listen on the right port number"
 					if="product.installed" >
     <echo message="basedir=[${basedir}]" />
 		<echo message="configuring ${product.name} ${product.version}..." />
-    <java classname="org.opends.server.tools.ConfigureDS">
+    <java fork="true" classname="org.opends.server.tools.ConfigureDS">
       <!-- building the classpath to run the configurator -->
       <classpath>
         <fileset dir="${full.install.dir}/lib">
@@ -120,11 +122,12 @@
       </classpath>
       
       <!-- provide the arguments here -->
-      <arg value="--configClass" />
-      <arg value="org.opends.server.extensions.ConfigFileHandler"  />
-      <arg value="--configFile" />
-      <arg value="${full.install.dir}/config/config.ldif"       />
-      <arg line="-p ${port.ldap}" />
+      <jvmarg value="-Dorg.opends.server.scriptName=configure-ds"/>
+      <arg value="--configClass"/>
+      <arg value="org.opends.server.extensions.ConfigFileHandler"/>
+      <arg value="--configFile"/>
+      <arg value="${full.install.dir}/config/config.ldif"/>
+      <arg line="-p ${port.ldap}"/>
       <arg value="-D"/>
       <arg value="${bind.dn}"/>
       <arg value="-w"/>

--
Gitblit v1.10.0