Package ru.akman.maven.plugins.jlink
Class PluginUtils
java.lang.Object
ru.akman.maven.plugins.jlink.PluginUtils
Helper class for utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getArtifactDebugInfo
(org.apache.maven.artifact.Artifact artifact) Get debug info about the artifact.static String
getArtifactSetDebugInfo
(Set<org.apache.maven.artifact.Artifact> artifacts) Get debug info about artifact set.static String
getDependencyDebugInfo
(File file, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor descriptor, boolean isIncluded) Get debug info about a dependency.static String
getDependencySetDebugInfo
(String title, DependencySet depSet, String data) Get debug info about a dependencyset.static String
getFileSetDebugInfo
(String title, org.apache.maven.shared.model.fileset.FileSet fileSet, String data) Get debug info about a fileset.static String
getPathElementsDebugInfo
(String title, List<File> pathelements) Get debug info about path elements.static String
getThrowableCause
(Throwable throwable) Get the cause message for throwable.static File
normalizeFileSetBaseDir
(File baseDir, org.apache.maven.shared.model.fileset.FileSet fileSet) Fix base directory of the fileset by resolving it relative to the specified base directory.
-
Method Details
-
getThrowableCause
Get the cause message for throwable.- Parameters:
throwable
- the throwable- Returns:
- the cause error message
-
getArtifactSetDebugInfo
Get debug info about artifact set.- Parameters:
artifacts
- set of project artifacts- Returns:
- formatted string contains info about the artifacts
-
getArtifactDebugInfo
Get debug info about the artifact.- Parameters:
artifact
- the artifact- Returns:
- formatted string contains info about the artifact
-
getPathElementsDebugInfo
Get debug info about path elements.- Parameters:
title
- titlepathelements
- list of path elements- Returns:
- formatted string contains info about the path elements
-
getDependencySetDebugInfo
Get debug info about a dependencyset.- Parameters:
title
- titledepSet
- dependencysetdata
- dependencyset data- Returns:
- formatted string contains info about the dependencyset
-
getDependencyDebugInfo
public static String getDependencyDebugInfo(File file, org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor descriptor, boolean isIncluded) Get debug info about a dependency.- Parameters:
file
- the dependency filedescriptor
- the dependency descriptorisIncluded
- will the dependency be included- Returns:
- formatted string contains info about the dependency
-