Class ResolvePathsRequest<T>
java.lang.Object
org.codehaus.plexus.languages.java.jpms.ResolvePathsRequest<T>
Contains all information required to analyze the project
- Since:
- 1.0.0
- Author:
- Robert Scholte
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static ResolvePathsRequest
<File> static ResolvePathsRequest
<File> ofFiles
(Collection<File> files) static ResolvePathsRequest
<Path> static ResolvePathsRequest
<Path> ofPaths
(Collection<Path> paths) static ResolvePathsRequest
<String> static ResolvePathsRequest
<String> ofStrings
(Collection<String> strings) setAdditionalModules
(Collection<String> additionalModules) The module names that are usually passed with--add-modules
setIncludeAllProviders
(boolean includeAllProviders) Will also include all modules that contain providers for used services, should only be used at runtime (not during compile nor test)setIncludeStatic
(boolean includeStatic) setJdkHome
(T jdkHome) In case the JRE is Java 8 or before, this jdkHome is used to extract the module name.setMainModuleDescriptor
(T mainModuleDescriptor) Must be eithermodule-info.java
ormodule-info.class
setModuleDescriptor
(JavaModuleDescriptor mainModuleDescriptor) Provide a resolved module descriptorprotected abstract Path
static ResolvePathsRequest
<File> withFiles
(Collection<File> files) Deprecated.static ResolvePathsRequest
<Path> withPaths
(Collection<Path> paths) Deprecated.useofPaths(Collection)
insteadstatic ResolvePathsRequest
<String> withStrings
(Collection<String> strings) Deprecated.useofStrings(Collection)
instead
-
Method Details
-
withFiles
Deprecated.useofFiles(Collection)
instead -
ofFiles
-
ofFiles
-
withPaths
Deprecated.useofPaths(Collection)
instead -
ofPaths
-
ofPaths
-
withStrings
Deprecated.useofStrings(Collection)
instead -
ofStrings
-
ofStrings
-
toPath
-
getMainModuleDescriptor
-
getModuleDescriptor
-
setMainModuleDescriptor
Must be eithermodule-info.java
ormodule-info.class
- Parameters:
mainModuleDescriptor
-- Returns:
- this request
-
setModuleDescriptor
Provide a resolved module descriptor- Parameters:
mainModuleDescriptor
-- Returns:
- this request
-
getPathElements
-
setJdkHome
In case the JRE is Java 8 or before, this jdkHome is used to extract the module name.- Parameters:
jdkHome
-- Returns:
- this request
-
getJdkHome
-
setAdditionalModules
The module names that are usually passed with--add-modules
- Parameters:
additionalModules
-- Returns:
- this request
-
getAdditionalModules
-
setIncludeAllProviders
Will also include all modules that contain providers for used services, should only be used at runtime (not during compile nor test)- Parameters:
includeAllProviders
-- Returns:
- this request
-
isIncludeAllProviders
public boolean isIncludeAllProviders() -
isIncludeStatic
public boolean isIncludeStatic()- Returns:
true
if the result will include all static dependencies- Since:
- 1.0.5
-
setIncludeStatic
- Parameters:
includeStatic
-true
if the result must include all static dependencies- Returns:
- this request
- Since:
- 1.0.5
-
ofFiles(Collection)
instead