| | |
| | | |
| | | import java.io.*; |
| | | import java.util.*; |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | | import java.awt.event.WindowEvent; |
| | | |
| | |
| | | catch (UserDataException uude) { |
| | | throw uude; |
| | | } catch (Throwable t) { |
| | | LOG.log(Level.WARNING, "Error processing task: "+t, t); |
| | | throw new UserDataException(cStep, |
| | | getThrowableMsg("bug-msg", t)); |
| | | } |
| | |
| | | Throwable throwable) { |
| | | qs.getDialog().workerFinished(); |
| | | if (throwable != null) { |
| | | qs.displayError(throwable.getLocalizedMessage(), |
| | | if (throwable instanceof UserDataException) |
| | | { |
| | | qs.displayError(throwable.getLocalizedMessage(), |
| | | getMsg("error-title")); |
| | | } |
| | | else |
| | | { |
| | | LOG.log(Level.WARNING, "Error processing task: "+throwable, |
| | | throwable); |
| | | qs.displayError(throwable.toString(), getMsg("error-title")); |
| | | } |
| | | } else { |
| | | boolean serverRunning = (Boolean) returnValue; |
| | | if (!serverRunning) { |
| | |
| | | }; |
| | | |
| | | Installation installation = getInstallation(); |
| | | String[] parentFiles = { |
| | | Utils.getPath(installation.getLibrariesDirectory()), |
| | | Utils.getPath(installation.getBinariesDirectory()), |
| | | Utils.getPath(installation.getDatabasesDirectory()), |
| | | Utils.getPath(installation.getLogsDirectory()), |
| | | Utils.getPath(installation.getConfigurationDirectory()), |
| | | Utils.getPath(installation.getBackupDirectory()), |
| | | Utils.getPath(installation.getLdifDirectory()) |
| | | File[] parentFiles = { |
| | | installation.getLibrariesDirectory(), |
| | | installation.getBinariesDirectory(), |
| | | installation.getDatabasesDirectory(), |
| | | installation.getLogsDirectory(), |
| | | installation.getConfigurationDirectory(), |
| | | installation.getBackupDirectory(), |
| | | installation.getLdifDirectory() |
| | | }; |
| | | |
| | | boolean accept = |
| | |
| | | |
| | | for (int i = 0; i < uData.length && accept; i++) { |
| | | accept &= uData[i] || |
| | | !equalsOrDescendant(file, new File(parentFiles[i])); |
| | | !equalsOrDescendant(file, parentFiles[i]); |
| | | } |
| | | |
| | | LOG.log(Level.INFO, "accept for :"+file+" is: "+accept); |
| | | return accept; |
| | | } |
| | | } |