| | |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | | import static org.forgerock.util.Utils.*; |
| | | import static org.opends.messages.AdminToolMessages.*; |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.messages.UtilityMessages.*; |
| | | import static com.forgerock.opendj.cli.Utils.CONFIRMATION_MAX_TRIES; |
| | | import static com.forgerock.opendj.cli.Utils.canWrite; |
| | | import static org.forgerock.util.Utils.joinAsString; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.File; |
| | |
| | | String rejectedFile = argParser.rejectedImportFileArg.getValue(); |
| | | if (rejectedFile != null) |
| | | { |
| | | if (!Utils.canWrite(rejectedFile)) |
| | | if (!canWrite(rejectedFile)) |
| | | { |
| | | errorMessages.add( |
| | | ERR_INSTALLDS_CANNOT_WRITE_REJECTED.get(rejectedFile)); |
| | |
| | | String skippedFile = argParser.skippedImportFileArg.getValue(); |
| | | if (skippedFile != null) |
| | | { |
| | | if (!Utils.canWrite(skippedFile)) |
| | | if (!canWrite(skippedFile)) |
| | | { |
| | | errorMessages.add(ERR_INSTALLDS_CANNOT_WRITE_SKIPPED.get( |
| | | skippedFile)); |
| | |
| | | String rejectedFile = argParser.rejectedImportFileArg.getValue(); |
| | | if (rejectedFile != null) |
| | | { |
| | | while (!Utils.canWrite(rejectedFile)) |
| | | while (!canWrite(rejectedFile)) |
| | | { |
| | | println(); |
| | | println(ERR_INSTALLDS_CANNOT_WRITE_REJECTED.get(rejectedFile)); |
| | |
| | | String skippedFile = argParser.skippedImportFileArg.getValue(); |
| | | if (skippedFile != null) |
| | | { |
| | | while (!Utils.canWrite(skippedFile)) |
| | | while (!canWrite(skippedFile)) |
| | | { |
| | | println(); |
| | | println(ERR_INSTALLDS_CANNOT_WRITE_SKIPPED.get(skippedFile)); |
| | |
| | | String rejectedFile = argParser.rejectedImportFileArg.getValue(); |
| | | if (rejectedFile != null) |
| | | { |
| | | while (!Utils.canWrite(rejectedFile)) |
| | | while (!canWrite(rejectedFile)) |
| | | { |
| | | println(); |
| | | println( |
| | |
| | | String skippedFile = argParser.skippedImportFileArg.getValue(); |
| | | if (skippedFile != null) |
| | | { |
| | | while (!Utils.canWrite(skippedFile)) |
| | | while (!canWrite(skippedFile)) |
| | | { |
| | | println(); |
| | | println(ERR_INSTALLDS_CANNOT_WRITE_SKIPPED.get(skippedFile)); |