Package org.apache.maven.plugin.linkcheck.validation

Examples of org.apache.maven.plugin.linkcheck.validation.LinkValidatorManager


    public LinkValidatorManager getLinkValidatorManager()
    {
        if ( lvm == null )
        {
            lvm = new LinkValidatorManager();
            if ( exclude != null )
            {
                StringTokenizer st = new StringTokenizer( exclude, " ,\t\n\r\f" );
                String[] tokens = new String[st.countTokens()];
                for ( int i = 0; i < tokens.length; i++ )
View Full Code Here


        }
        if ( LOG.isDebugEnabled() )
        {
            displayMemoryConsumption();
        }
        LinkValidatorManager validator = getLinkValidatorManager();
        filesToCheck = new LinkedList();
        validator.loadCache( cache );
        List files = new LinkedList();
        LOG.debug( "Locating all files to be checked..." );
        findFiles( files, basedir );
        LOG.debug( "Located all files to be checked." );
        LOG.info( "Found " + files.size() + " files to check." );
        displayMemoryConsumption();
        LOG.info( "Begin to check links in files..." );
        Iterator fileIter = files.iterator();
        FileToCheck flc;
        while ( fileIter.hasNext() )
        {
            flc = (FileToCheck) fileIter.next();
            try
            {
                filesToCheck.add( flc );
                flc.check( validator );
            }
            catch ( Exception e )
            {
                LOG.error( "Error while checking : " + flc.getName(), e );
            }
        }
        flc = null;
        LOG.info( "Links checked." );
        displayMemoryConsumption();
        createDocument( files );
        validator.saveCache( cache );
        displayMemoryConsumption();
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.linkcheck.validation.LinkValidatorManager

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.