Examples of scan()


Examples of org.apache.maven.archiva.repository.scanner.RepositoryScanner.scan()

        RepositoryScanner scanner = (RepositoryScanner) plexus.lookup( RepositoryScanner.class );

        try
        {
            RepositoryScanStatistics stats = scanner.scan( repo, knownConsumerList, invalidConsumerList,
                                                           ignoredContent, RepositoryScanner.FRESH_SCAN );

            System.out.println( "\n" + stats.toDump( repo ) );
        }
        catch ( RepositoryException e )
View Full Code Here

Examples of org.apache.maven.bootstrap.util.DirectoryScanner.scan()

                {
                    String[] exclStrs = (String[]) excludes.toArray( new String[excludes.size()] );
                    scanner.setIncludes( exclStrs );
                }

                scanner.scan();

                String[] sourceDirectorySources = scanner.getIncludedFiles();

                for ( int j = 0; j < sourceDirectorySources.length; j++ )
                {
View Full Code Here

Examples of org.apache.maven.index.NexusIndexer.scan()

        File repo = new File( getBasedir(), "src/test/repo" );

        context = indexer.addIndexingContext( "test", "test", repo, indexDir, null, null, DEFAULT_CREATORS );

        indexer.scan( context );

        return indexer;
    }
}
View Full Code Here

Examples of org.apache.maven.jxr.ant.DirectoryScanner.scan()

                    "Your source directory does not exist and could not be created:" + source );
            }
        }

        ds.setBasedir( source );
        ds.scan();

        //now get the list of included files

        String[] files = ds.getIncludedFiles();
View Full Code Here

Examples of org.apache.maven.shared.utils.io.DirectoryScanner.scan()

        scanner.setIncludes( StringUtils.split( includes, "," ) );

        scanner.setExcludes( StringUtils.split( excludes, "," ) );

        scanner.scan();

        return scanner.getIncludedFiles();
    }
}
View Full Code Here

Examples of org.apache.maven.tools.plugin.annotations.scanner.MojoAnnotationsScanner.scan()

        MojoAnnotationsScannerRequest request = new MojoAnnotationsScannerRequest();
        request.setClassesDirectories( Collections.singletonList( new File( "target/test-classes" ) ) );
        request.setIncludePatterns( Arrays.asList( "**/FooMojo.class" ) );
        request.setProject( new MavenProject() );

        Map<String, MojoAnnotatedClass> mojoAnnotatedClasses = mojoAnnotationsScanner.scan( request );

        System.out.println( "mojoAnnotatedClasses:" + mojoAnnotatedClasses );

        Assertions.assertThat( mojoAnnotatedClasses ).isNotNull().isNotEmpty().hasSize( 1 );

View Full Code Here

Examples of org.apache.ode.store.DeploymentUnitDir.scan()

            String logMessage = "Deployment failed due to compilation issues.";
            log.error(logMessage, ce);
            throw new BPELDeploymentException(logMessage, ce);
        }

        du.scan();
        DeployDocument dd = du.getDeploymentDescriptor();
        List<ProcessConfigurationImpl> processConfs = new ArrayList<ProcessConfigurationImpl>();
        List<QName> processIds = new ArrayList<QName>();

        if (deploymentUnits.containsKey(du.getName())) {
View Full Code Here

Examples of org.apache.tomcat.JarScanner.scan()

            tldScanWebXml();
            tldScanResourcePaths(WEB_INF);
           
            JarScanner jarScanner = JarScannerFactory.getJarScanner(ctxt);
            if (jarScanner != null) {
                jarScanner.scan(ctxt,
                        Thread.currentThread().getContextClassLoader(),
                        new TldJarScannerCallback(), noTldJars);
            }

            initialized = true;
View Full Code Here

Examples of org.apache.tomcat.util.scan.StandardJarScanner.scan()

        // TODO - configure filter rules from Ant rather then system properties
        scanner.setJarScanFilter(new StandardJarScanFilter());

        FragmentJarScannerCallback callback =
                new FragmentJarScannerCallback(webXmlParser, false, true);
        scanner.scan(JarScanType.PLUGGABILITY, this, callback);
        if (!callback.isOk()) {
            throw new JasperException(Localizer.getMessage("jspc.error.invalidFragment"));
        }
        return callback.getFragments();
    }
View Full Code Here

Examples of org.apache.tools.ant.DirectoryScanner.scan()

                                                    final List list )
    {
        final File dir = fileSet.getDir( getProject() );
        final DirectoryScanner directoryScanner =
            fileSet.getDirectoryScanner( getProject() );
        directoryScanner.scan();
        final String[] includedFiles = directoryScanner.getIncludedFiles();
        for( int j = 0; j < includedFiles.length; j++ )
        {
            final String name = includedFiles[ j ];
            if( name.endsWith( CLASS_EXT ) )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.