| | |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 profiq s.r.o. |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | * Portions Copyright 2011-2016 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | { |
| | | if (!isInteractive()) |
| | | { |
| | | initializeUserDataWithParser(uData); |
| | | initializeNonInteractiveUserDataWithParser(uData); |
| | | return InstallReturnCode.SUCCESSFUL; |
| | | } |
| | | |
| | |
| | | |
| | | boolean promptAgain = true; |
| | | printSummary(uData); |
| | | while (isInteractive() && promptAgain) |
| | | while (promptAgain) |
| | | { |
| | | promptAgain = false; |
| | | final ConfirmCode confirm = askForConfirmation(); |
| | |
| | | * @throws UserDataException |
| | | * if something went wrong checking the data. |
| | | */ |
| | | private void initializeUserDataWithParser(UserData uData) throws UserDataException |
| | | private void initializeNonInteractiveUserDataWithParser(UserData uData) throws UserDataException |
| | | { |
| | | uData.setQuiet(isQuiet()); |
| | | uData.setVerbose(isVerbose()); |