Package com.buschmais.jqassistant.plugin.java.api.scanner

Examples of com.buschmais.jqassistant.plugin.java.api.scanner.ClassesDirectory


        } else {
            Store store = getStore();
            store.beginTransaction();
            try {
                final ArtifactDirectoryDescriptor artifactDescriptor = resolveArtifact(artifact, testJar, ArtifactDirectoryDescriptor.class);
                consume(scanner.scan(new ClassesDirectory(directory, artifactDescriptor), directoryName, CLASSPATH));
                projectDescriptor.getCreatesArtifacts().add(artifactDescriptor);
                return artifactDescriptor;
            } finally {
                store.commitTransaction();
            }
View Full Code Here


     *             If scanning fails.
     */
    protected void scanDirectory(Scope scope, File directory) throws IOException {
        store.beginTransaction();
        ArtifactDirectoryDescriptor artifact = getArtifactDescriptor(ARTIFACT_ID);
        Iterable<? extends FileDescriptor> scan = getScanner().scan(new ClassesDirectory(directory, artifact), scope);
        IterableConsumer.consume(scan);
        store.commitTransaction();
    }
View Full Code Here

            store.beginTransaction();
            try {
                final ArtifactDirectoryDescriptor artifactDescriptor = getOrCreateArtifactDescriptor(store);
                final Scanner scanner = new ScannerImpl(scannerPlugins);
                try {
                    consume(scanner.scan(new ClassesDirectory(directory, artifactDescriptor), CLASSPATH));
                } catch (IOException e) {
                    throw new RuntimeException("Cannot scan directory '" + directory.getAbsolutePath() + "'", e);
                }
            } finally {
                store.commitTransaction();
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.plugin.java.api.scanner.ClassesDirectory

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.