From ba27bd96739f1b48692a897f80cf56a388aa518d Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Wed, 06 Jan 2016 17:17:57 +0000
Subject: [PATCH] Fix OPENDJ-2595 - Error on Windows, when installing OpenDJ in a split install/instance mode. Make sure we create the instance directory if it doesn't exist, prior to call cd to that directory.

---
 opendj-server-legacy/resource/setup.bat |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/resource/setup.bat b/opendj-server-legacy/resource/setup.bat
index 1df2ac1..bd857c0 100644
--- a/opendj-server-legacy/resource/setup.bat
+++ b/opendj-server-legacy/resource/setup.bat
@@ -23,7 +23,7 @@
 rem
 rem
 rem      Copyright 2006-2010 Sun Microsystems, Inc.
-rem      Portions Copyright 2011-2012 ForgeRock AS
+rem      Portions Copyright 2011-2016 ForgeRock AS
 
 setlocal
 
@@ -44,6 +44,8 @@
 ) else (
 set INSTANCE_DIR=.
 )
+if not exist "%INSTANCE_DIR%" mkdir "%INSTANCE_DIR%"
+
 set CUR_DIR=%CD%
 cd /d %INSTALL_ROOT%
 cd /d %INSTANCE_DIR%

--
Gitblit v1.10.0