Package org.apache.maven.index.updater

Examples of org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult


        packer.packIndex( request );

        // read it up and verify, but stay "low level", directly consume the GZ file and count
        FileInputStream fis = new FileInputStream( new File( packTargetDir, "nexus-maven-repository-index.gz" ) );
        IndexDataReader reader = new IndexDataReader( fis );
        try
        {
            // read header and neglect it
            reader.readHeader();

            // read docs
            int totalDocs = 0;
            int specialDocs = 0;
            int artifactDocs = 0;
            String allGroups = null;
            String rootGroups = null;
            Document doc;
            while ( ( doc = reader.readDocument() ) != null )
            {
                totalDocs++;
                if ( doc.getField( "DESCRIPTOR" ) != null || doc.getField( ArtifactInfo.ALL_GROUPS ) != null
                    || doc.getField( ArtifactInfo.ROOT_GROUPS ) != null )
                {
View Full Code Here

TOP

Related Classes of org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult

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.