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