| | |
| | | UninstallUserData userData = new UninstallUserData(); |
| | | |
| | | boolean isInteractive; |
| | | boolean isSilent; |
| | | boolean isQuiet; |
| | | boolean isCancelled = false; |
| | | |
| | | /* Step 1: analyze the arguments. |
| | |
| | | |
| | | isInteractive = args.isInteractive(); |
| | | |
| | | isSilent = args.isSilent(); |
| | | isQuiet = args.isQuiet(); |
| | | |
| | | userData.setSilent(isSilent); |
| | | userData.setQuiet(isQuiet); |
| | | userData.setForceOnError(args.isForceOnError()); |
| | | userData.setTrustManager(args.getTrustManager()); |
| | | |
| | |
| | | * @return <CODE>true</CODE> if the user wants to continue with uninstall and |
| | | * <CODE>false</CODE> otherwise. |
| | | * @throws UserDataException if there is a problem with the data |
| | | * provided by the user (in the particular case where we are on silent |
| | | * provided by the user (in the particular case where we are on quiet |
| | | * uninstall and some data is missing or not valid). |
| | | */ |
| | | private boolean checkServerState(UninstallUserData userData, |
| | |
| | | { |
| | | if (confirmToUpdateRemoteAndStart()) |
| | | { |
| | | boolean startWorked = startServer(userData.isSilent()); |
| | | boolean startWorked = startServer(userData.isQuiet()); |
| | | // Ask for authentication if needed, etc. |
| | | if (startWorked) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | boolean startWorked = startServer(userData.isSilent()); |
| | | boolean startWorked = startServer(userData.isQuiet()); |
| | | // Ask for authentication if needed, etc. |
| | | if (startWorked) |
| | | { |