public class ImportPackageBuilder extends Object
| Constructor and Description |
|---|
ImportPackageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ImportPackageBuilder |
analyze()
analyzes the imports
|
String |
createExportPackageReport()
generates a package report
|
Map<String,aQute.bnd.header.Attrs> |
getImportParameters()
returns the import parameter header.
|
ImportPackageBuilder |
withClassFileDirectory(File classes)
Sets the class files directory
|
ImportPackageBuilder |
withDependenciesFromProject(org.apache.maven.project.MavenProject project)
defines the project from which the artifacts should be loaded.
|
ImportPackageBuilder |
withFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
defines the filter for the project artifact
|
ImportPackageBuilder |
withIncludeUnused(boolean includeUnused)
defines if unused packages should be included if no classes exist in the project.
|
@Nonnull public ImportPackageBuilder withClassFileDirectory(File classes)
classes - the directory@Nonnull public ImportPackageBuilder withDependenciesFromProject(@Nonnull org.apache.maven.project.MavenProject project)
project - the maven project@Nonnull public ImportPackageBuilder withIncludeUnused(boolean includeUnused)
includeUnused - true to include unused.@Nonnull public ImportPackageBuilder withFilter(@Nonnull org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
filter - the filter@Nonnull public ImportPackageBuilder analyze() throws IOException
IOException - if an error occurrs.@Nonnull public Map<String,aQute.bnd.header.Attrs> getImportParameters()
analyze()Copyright © 2017 The Apache Software Foundation. All rights reserved.