Package net.sourceforge.cruisecontrol

Examples of net.sourceforge.cruisecontrol.CruiseControlException


     *
     * @throws CruiseControlException
     */
    public void assertExitCodeNot(int code) throws CruiseControlException {
        if (exitCode == code) {
            throw new CruiseControlException(
                "The command \""
                    + this.toString()
                    + "\" returned exit code \""
                    + exitCode
                    + "\".\n"
View Full Code Here


     * @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 \""
View Full Code Here

     * @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 \""
View Full Code Here

            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(
View Full Code Here

            fail(message);
        }
    }

    public static void fail(String message) throws CruiseControlException {
        throw new CruiseControlException(message);
    }
View Full Code Here

    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);
    }
View Full Code Here

            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
View Full Code Here

        }
    }

    public void validate() throws CruiseControlException {
        if (filename == null) {
            throw new CruiseControlException("'file' is required for SnapshotCMBootstrapper");
        }
    }
View Full Code Here

    */


    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();
    }
View Full Code Here

        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) {
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.CruiseControlException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.