Package net.sourceforge.cruisecontrol.util

Examples of net.sourceforge.cruisecontrol.util.CCTagException


            Transformer transformer = tFactory.newTransformer(new StreamSource(style));
            in = getXmlFileInputStream(xmlFile);
            transformer.transform(new StreamSource(in), new StreamResult(out));
        } catch (ArrayIndexOutOfBoundsException e) {
            err(e);
            throw new CCTagException("Error transforming '" + xmlFile.getName()
                    + "'. You might be experiencing XML parser issues."
                    + " Are your xalan & xerces jar files mismatched? Check your JVM version. "
                    + e.getMessage(), e);
        } catch (TransformerException e) {
            err(e);
            throw new CCTagException("Error transforming '" + xmlFile.getName()
                    + "': " + e.getMessage(), e);
        } finally {
            closeQuietly(in);
        }
    }
View Full Code Here


        } else {
            try {
                in = new FileInputStream(xmlFile);
            } catch (IOException ioex) {
                err(ioex);
                throw new CCTagException("Assertion error: "
                        + ioex.getMessage(), ioex);
            }
        }
        return in;
    }
View Full Code Here

        try {
            InputStream input = new FileInputStream(file);
            copy(input, out);
        } catch (IOException e) {
            err(e);
            throw new CCTagException("Error reading file '"
                    + file.getName() + "': " + e.getMessage(), e);
        }
    }
View Full Code Here

            } else {
                cache(xmlFile, out);
            }
        } catch (IOException e) {
            err(e);
            throw new CCTagException("Error saving a cached transformation '"
                    + cacheFile.getName() + "': " + e.getMessage(), e);
        } finally {
            closeQuietly(out);
        }
    }
View Full Code Here

        Date date = null;
        try {
            date = inputDate.parse(dateString);
        } catch (ParseException e) {
            err(e);
            throw new CCTagException("Error parsing '" + dateString + "': " + e.getMessage(), e);

        }

        return getDateFormat().format(date) + label;
    }
View Full Code Here

            try {
                BodyContent out = getBodyContent();
                out.writeOut(out.getEnclosingWriter());
            } catch (IOException e) {
                err(e);
                throw new CCTagException("IO Error: " + e.getMessage(), e);
            }
            return SKIP_BODY;
        }
    }
View Full Code Here

            printBody(out);
            endTable(out);
            return Tag.EVAL_PAGE;
        } catch (IOException e) {
            err(e);
            throw new CCTagException("IO Error: " + e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            BodyContent out = getBodyContent();
            out.writeOut(out.getEnclosingWriter());
        } catch (IOException e) {
            err(e);
            throw new CCTagException("IO Error: " + e.getMessage(), e);

        }
        return SKIP_BODY;
    }
View Full Code Here

                }
                line = br.readLine();
            }
        } catch (IOException e) {
            err(e);
            throw new CCTagException(
                "Error reading status file: " + currentBuildFile.getName() + " : " + e.getMessage(), e);
        } finally {
            try {
                if (br != null) {
                    br.close();
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.util.CCTagException

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.