public class PackageInfo extends Object
| Constructor and Description |
|---|
PackageInfo(String name,
org.apache.maven.project.MavenProject project,
File path)
Creates a package info.
|
| Modifier and Type | Method and Description |
|---|---|
List<PackageInfo> |
getEmptyDuplicates()
Gets the empty duplicates for this package info.
If an empty package is found more than once in different modules, it cannot be used in profiles because the generator cannot decide which one to use. |
String |
getName()
Gets the package name.
|
File |
getPath()
Gets the directory path of the package.
|
org.apache.maven.project.MavenProject |
getProject()
Gets the maven project containing the package.
|
boolean |
isContainingJavaFiles()
Determines whether this package contains any java files.
The method is used to detect split packages which are forbidden in JPMS. |
void |
setEmptyDuplicates(List<PackageInfo> emptyDuplicates)
Sets the duplicates.
|
String |
toString() |
public String getName()
public org.apache.maven.project.MavenProject getProject()
public File getPath()
public boolean isContainingJavaFiles()
public List<PackageInfo> getEmptyDuplicates()
public void setEmptyDuplicates(List<PackageInfo> emptyDuplicates)
emptyDuplicates - the duplicatesTentackle - distributed, domain- and model-driven