332333334335336337338339340341342
* * @throws CruiseControlException */ public void assertExitCodeNot(int code) throws CruiseControlException { if (exitCode == code) { throw new CruiseControlException( "The command \"" + this.toString() + "\" returned exit code \"" + exitCode + "\".\n"
357358359360361362363364365366367
* @throws CruiseControlException */ public void assertExitCodeGreaterThan(int code) throws CruiseControlException { if (exitCode <= code) { throw new CruiseControlException( "The command \"" + this.toString() + "\" returned exit code \"" + exitCode + "\" when a value greater than \""
384385386387388389390391392393394
* @throws CruiseControlException */ public void assertExitCodeLessThan(int code) throws CruiseControlException { if (exitCode >= code) { throw new CruiseControlException( "The command \"" + this.toString() + "\" returned exit code \"" + exitCode + "\" when a value less than \""
114115116117118119120121122123124
verifyFile("HTMLEmailPublisher.css", css); String[] fileNames = getXslFileNames(); if (fileNames == null) { throw new CruiseControlException("HTMLEmailPublisher.getXslFileNames() can't return null"); } for (int i = 0; i < fileNames.length; i++) { String fileName = fileNames[i]; verifyFile(
58596061626364
fail(message); } } public static void fail(String message) throws CruiseControlException { throw new CruiseControlException(message); }
62636465666768
public static void fail(String message) throws CruiseControlException { throw new CruiseControlException(message); } public static void fail(String message, Exception e) throws CruiseControlException { throw new CruiseControlException(message, e); }
150151152153154155156157158159160
while (size > 0) { out.append(buff, 0, size); size = fr.read(buff, 0, 4096); } } catch (IOException ioe) { throw new CruiseControlException(ioe.getMessage()); } finally { try { fr.close(); } catch (IOException ioe) { // ignore
99100101102103104105106
} } public void validate() throws CruiseControlException { if (filename == null) { throw new CruiseControlException("'file' is required for SnapshotCMBootstrapper"); } }
189190191192193194195196197198199200201202203
*/ public void validate() throws CruiseControlException { if (fileName == null) { throw new CruiseControlException( "'filename' is required for CurrentBuildStatusFTPBootstrapper"); } if (destdir == null) { throw new CruiseControlException( "'destdir' is required for CurrentBuildStatusFTPBootstrapper"); } super.validate(); }
6364656667686970717273
FileWriter fw = null; try { fw = new FileWriter(fileName); fw.write(sb.toString()); } catch (IOException ioe) { throw new CruiseControlException("Error writing file: " + fileName, ioe); } finally { if (fw != null) { try { fw.close(); } catch (IOException ignore) {