Package hudson.scm

Examples of hudson.scm.NullChangeLogParser


            try {
                Class<?> c = Hudson.getInstance().getPluginManager().uberClassLoader.loadClass("hudson.scm.CVSChangeLogParser");
                scm = (ChangeLogParser)c.newInstance();
            } catch (ClassNotFoundException e) {
                // if CVS isn't available, fall back to something non-null.
                scm = new NullChangeLogParser();
            } catch (InstantiationException e) {
                scm = new NullChangeLogParser();
                throw (Error)new InstantiationError().initCause(e);
            } catch (IllegalAccessException e) {
                scm = new NullChangeLogParser();
                throw (Error)new IllegalAccessError().initCause(e);
            }
        }

        if (changeSet==null) // cached value
View Full Code Here


        private void checkout(BuildListener listener) throws Exception {
            for (int retryCount = project.getScmCheckoutRetryCount(); ; retryCount--) {
                // for historical reasons, null in the scm field means CVS, so we need to explicitly set this to something
                // in case check out fails and leaves a broken changelog.xml behind.
                // see http://www.nabble.com/CVSChangeLogSet.parse-yields-SAXParseExceptions-when-parsing-bad-*AccuRev*-changelog.xml-files-td22213663.html
                AbstractBuild.this.scm = new NullChangeLogParser();

                try {
                    if (project.checkout(AbstractBuild.this, launcher, listener,
                        new File(getRootDir(), "changelog.xml"))) {
                        // check out succeeded
View Full Code Here

TOP

Related Classes of hudson.scm.NullChangeLogParser

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.