/** */ @Override protected void validate() throws CommandException { try { super.validate(); // pointless empty method but who knows what the future holds? // The order that you make these calls matters!! selector = ServerDirsSelector.getInstance( userSpecifiedDomainDirParent, userSpecifiedServerName, userSpecifiedNodeDir, userSpecifiedNode); dirs = selector.dirs(); validateServiceName(); } catch (CommandException e) { throw e; } catch (Exception e) { // plenty of RuntimeException possibilities! throw new CommandException(e.getMessage(), e); } }
/** */ @Override protected void validate() throws CommandException { try { super.validate(); // pointless empty method but who knows what the future holds? // The order that you make these calls matters!! selector = ServerDirsSelector.getInstance( userSpecifiedDomainDirParent, userSpecifiedServerName, userSpecifiedNodeDir, userSpecifiedNode); dirs = selector.dirs(); validateServiceName(); } catch (CommandException e) { throw e; } catch (Exception e) { // plenty of RuntimeException possibilities! throw new CommandException(e.getMessage(), e); } }
final ServerDirs dirs = selector.dirs(); if (dirs == null) { return null;
final ServerDirs dirs = selector.dirs(); if (dirs == null) { return null;
/** */ @Override protected void validate() throws CommandException { try { super.validate(); // pointless empty method but who knows what the future holds? if (ok(serviceUser) && !OS.isLinux()) { // serviceUser is only supported on Linux throw new CommandException(strings.get("serviceUser_wrong_os")); } // The order that you make these calls matters!! selector = ServerDirsSelector.getInstance( userSpecifiedDomainDirParent, userSpecifiedServerName, userSpecifiedNodeDir, userSpecifiedNode); dirs = selector.dirs(); validateServiceName(); validateAsadmin(); } catch (CommandException e) { throw e; } catch (Exception e) { // plenty of RuntimeException possibilities! throw new CommandException(e.getMessage(), e); } }
/** */ @Override protected void validate() throws CommandException { try { super.validate(); // pointless empty method but who knows what the future holds? if (ok(serviceUser) && !OS.isLinux()) { // serviceUser is only supported on Linux throw new CommandException(strings.get("serviceUser_wrong_os")); } // The order that you make these calls matters!! selector = ServerDirsSelector.getInstance( userSpecifiedDomainDirParent, userSpecifiedServerName, userSpecifiedNodeDir, userSpecifiedNode); dirs = selector.dirs(); validateServiceName(); validateAsadmin(); } catch (CommandException e) { throw e; } catch (Exception e) { // plenty of RuntimeException possibilities! throw new CommandException(e.getMessage(), e); } }