Package com.buschmais.jqassistant.core.model.api.descriptor

Examples of com.buschmais.jqassistant.core.model.api.descriptor.ArtifactDescriptor


                @Override
                public Void run(Store store) throws MojoExecutionException {
                    Artifact artifact = project.getArtifact();
                    String type = testJar ? ARTIFACTTYPE_TEST_JAR : artifact.getType();
                    String id = createArtifactDescriptorId(artifact.getGroupId(), artifact.getArtifactId(), type, artifact.getClassifier(), artifact.getVersion());
                    ArtifactDescriptor descriptor = store.find(ArtifactDescriptor.class, id);
                    if (descriptor == null) {
                        descriptor = store.create(ArtifactDescriptor.class, id);
                        descriptor.setGroup(artifact.getGroupId());
                        descriptor.setName(artifact.getArtifactId());
                        descriptor.setVersion(artifact.getVersion());
                        descriptor.setClassifier(artifact.getClassifier());
                        descriptor.setType(type);
                    }
                    List<ArtifactScannerPlugin> scannerPlugins = new ArrayList<>();
                    scannerPlugins.add(new PackageScannerPlugin());
                    scannerPlugins.add(new ClassScannerPlugin());
                    ArtifactScanner scanner = new ArtifactScannerImpl(store, scannerPlugins);
View Full Code Here


        return ArtifactDescriptor.class;
    }

    @Override
    public ArtifactDescriptor createInstance(Class<? extends ArtifactDescriptor> type) {
        return new ArtifactDescriptor();
    }
View Full Code Here

TOP

Related Classes of com.buschmais.jqassistant.core.model.api.descriptor.ArtifactDescriptor

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.