Example usage for org.apache.maven.artifact.handler DefaultArtifactHandler setIncludesDependencies

List of usage examples for org.apache.maven.artifact.handler DefaultArtifactHandler setIncludesDependencies

Introduction

In this page you can find the example usage for org.apache.maven.artifact.handler DefaultArtifactHandler setIncludesDependencies.

Prototype

public void setIncludesDependencies(boolean includesDependencies) 

Source Link

Usage

From source file:com.rebaze.maven.support.AetherUtils.java

License:Open Source License

public static ArtifactHandler newHandler(Artifact artifact) {
    String type = artifact.getProperty(ArtifactProperties.TYPE, artifact.getExtension());
    DefaultArtifactHandler handler = new DefaultArtifactHandler(type);
    handler.setExtension(artifact.getExtension());
    handler.setLanguage(artifact.getProperty(ArtifactProperties.LANGUAGE, null));
    handler.setAddedToClasspath(// w w w  . ja v a2  s.  c o  m
            Boolean.parseBoolean(artifact.getProperty(ArtifactProperties.CONSTITUTES_BUILD_PATH, "")));
    handler.setIncludesDependencies(
            Boolean.parseBoolean(artifact.getProperty(ArtifactProperties.INCLUDES_DEPENDENCIES, "")));
    return handler;
}