Package net.sourceforge.cruisecontrol

Examples of net.sourceforge.cruisecontrol.CruiseControlException


        }
    }

    private void verifyDirectory(String dirName, String dir) throws CruiseControlException {
        if (dir == null) {
            throw new CruiseControlException(dirName + " not specified in configuration file");
        }
        File dirFile = new File(dir);
        if (!dirFile.exists()) {
            throw new CruiseControlException(
                dirName + " does not exist : " + dirFile.getAbsolutePath());
        }
        if (!dirFile.isDirectory()) {
            throw new CruiseControlException(
                dirName + " is not a directory : " + dirFile.getAbsolutePath());
        }
    }
View Full Code Here


        }
    }

    private void verifyFile(String fileName, String file) throws CruiseControlException {
        if (file == null) {
            throw new CruiseControlException(fileName + " not specified in configuration file");
        }
        verifyFile(fileName, new File(file));
    }
View Full Code Here

        verifyFile(fileName, new File(file));
    }

    private void verifyFile(String fileName, File file) throws CruiseControlException {
        if (!file.exists()) {
            throw new CruiseControlException(
                fileName + " does not exist: " + file.getAbsolutePath());
        }
        if (!file.isFile()) {
            throw new CruiseControlException(
                fileName + " is not a file: " + file.getAbsolutePath());
        }
    }
View Full Code Here

     *
     *  @throws CruiseControlException if there was a configuration error.
     */
    public void validate() throws CruiseControlException {
        if (fileName == null) {
            throw new CruiseControlException("'filename' is required for CurrentBuildStatusPublisher");
        }
    }
View Full Code Here

    *
    *  @throws  CruiseControlException if there was a configuration error.
     */
    public void validate() throws CruiseControlException {
        if (getBuildResultsURL() == null) {
            throw new CruiseControlException("'buildresultsurl' not specified in configuration file.");
        }
        super.validate();
    }
View Full Code Here

     *
     *  @throws CruiseControlException if there was a configuration error.
     */
    public void validate() throws CruiseControlException {
        if (fileName == null) {
            throw new CruiseControlException(
                "'filename' is required for CurrentBuildStatusFTPPublisher");
        }
        if (destdir == null) {
            throw new CruiseControlException(
                "'destdir' is required for CurrentBuildStatusFTPPublisher");
        }
        super.validate();
    }
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

        if (line.indexOf("support@accurev.com") >= 0) {
          accurevSupportFound = true;
        }
      }
    } catch (IOException e) {
      throw new CruiseControlException("Error reading Accurev output");
    }
    return accurevSupportFound;
  }
View Full Code Here

      try {
        while ((line = reader.readLine()) != null) {
          lines.add(line);
        }
      } catch (IOException e) {
        throw new CruiseControlException("Error reading Accurev output");
      }
      return true;
    }
View Full Code Here

    }
   
    private void failIfNotNullButEmpty(String stringToTest, String nameOfStringToTest)
        throws CruiseControlException {
        if (stringToTest != null && stringToTest.equals("")) {
            throw new CruiseControlException(nameOfStringToTest + " cannot to be set empty");
        }
    }
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.