From 6f5e10b0dc596c8e7625de7ddf523b6d5bc220c7 Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Thu, 27 Feb 2014 08:17:06 +0000
Subject: [PATCH] Checkpoint for OPENDJ-1303 "opendj-cli" / Checkpoint OPENDJ-1343 Migrate dsconfig - Added CONFLICTING_ARGS to ReturnCode. - Added canWrite() to Utils + unit tests. - Replaced calls to org.opends.quicksetup.util.Utils.canWrite by com.forgerock.opendj.cli.Utils.canWrite. - Removed the TablePrinter classes from org.opends.server.util.table as they are now in the opendj-cli. - Minor code cleanup on DSConfig package. (reorganize imports).
---
opendj3-server-dev/src/quicksetup/org/opends/quicksetup/util/Utils.java | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/util/Utils.java
index 5e4029e..2f29478 100644
--- a/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opendj3-server-dev/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -481,28 +481,6 @@
}
/**
- * Returns <CODE>true</CODE> if we can write on the provided path and
- * <CODE>false</CODE> otherwise.
- * @param path the path.
- * @return <CODE>true</CODE> if we can write on the provided path and
- * <CODE>false</CODE> otherwise.
- */
- public static boolean canWrite(String path)
- {
- boolean canWrite;
- File file = new File(path);
- if (file.exists())
- {
- canWrite = file.canWrite();
- } else
- {
- File parentFile = file.getParentFile();
- canWrite = parentFile != null && parentFile.canWrite();
- }
- return canWrite;
- }
-
- /**
* Creates the a directory in the provided path.
* @param path the path.
* @return <CODE>true</CODE> if the path was created or already existed (and
--
Gitblit v1.10.0