java.lang.Object
org.tentackle.maven.PackageInfo
Contains info about a java package.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageInfo(String name, org.apache.maven.project.MavenProject project, File path) Creates a package info. -
Method Summary
Modifier and TypeMethodDescriptionGets 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.getName()Gets the package name.getPath()Gets the directory path of the package.org.apache.maven.project.MavenProjectGets the maven project containing the package.booleanDetermines whether this package contains any files.
The method is used to detect split packages which are forbidden in JPMS.voidsetEmptyDuplicates(List<PackageInfo> emptyDuplicates) Sets the duplicates.toString()
-
Constructor Details
-
PackageInfo
Creates a package info.- Parameters:
name- the java package nameproject- the maven project containing the packagepath- the directory path of the package
-
-
Method Details
-
getName
Gets the package name.- Returns:
- the java package name
-
getProject
public org.apache.maven.project.MavenProject getProject()Gets the maven project containing the package.- Returns:
- the maven project
-
getPath
Gets the directory path of the package.- Returns:
- the path
-
isContainingFiles
public boolean isContainingFiles()Determines whether this package contains any files.
The method is used to detect split packages which are forbidden in JPMS.- Returns:
- true if not empty, false if no files found
-
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.- Returns:
- the duplicates, null if none
-
setEmptyDuplicates
Sets the duplicates.- Parameters:
emptyDuplicates- the duplicates
-
toString
-