From 7886f35b46cac515f73de8c6af33b8d8df3e2a3b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 12:00:22 +0000
Subject: [PATCH] Commit quite a lot of bug fixes to the ADS.
---
opends/src/ads/org/opends/admin/ads/DsServiceCliAds.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/opends/src/ads/org/opends/admin/ads/DsServiceCliAds.java b/opends/src/ads/org/opends/admin/ads/DsServiceCliAds.java
index fef06f7..c7f3f9f 100644
--- a/opends/src/ads/org/opends/admin/ads/DsServiceCliAds.java
+++ b/opends/src/ads/org/opends/admin/ads/DsServiceCliAds.java
@@ -112,7 +112,7 @@
{
// Create-ads subcommand
createAdsSubCmd = new SubCommand(argParser, SubCommandNameEnum.CREATE_ADS
- .toString(), true, 1, 1, OPERAND_BACKEND,
+ .toString(), true, 3, 3, OPERAND_BACKEND,
MSGID_ADMIN_SUBCMD_CREATE_ADS_DESCRIPTION);
createAdsSubCmd.setHidden(true);
@@ -144,10 +144,12 @@
if (subCmd.getName().equals(createAdsSubCmd.getName()))
{
String backendName = subCmd.getTrailingArguments().get(0);
+ String dbDirectory = subCmd.getTrailingArguments().get(1);
+ String importTempDirectory = subCmd.getTrailingArguments().get(2);
ADSContextHelper helper = new ADSContextHelper();
adsContext.createAdminData();
helper.createAdministrationSuffix(adsContext.getDirContext(),
- backendName);
+ backendName, dbDirectory, importTempDirectory);
return ReturnCode.SUCCESSFUL;
}
else if (subCmd.getName().equals(deleteAdsSubCmd.getName()))
@@ -159,7 +161,7 @@
return ReturnCode.SUCCESSFUL;
}
- // Should never occurs: If we are here, it means that the code to
+ // Should never occur: If we are here, it means that the code to
// handle to subcommand is not yet written.
return ReturnCode.ERROR_UNEXPECTED;
}
--
Gitblit v1.10.0