Class JctFileManagerJvmClassPathModuleConfigurer
java.lang.Object
io.github.ascopes.jct.filemanagers.config.JctFileManagerJvmClassPathModuleConfigurer
- All Implemented Interfaces:
JctFileManagerConfigurer
public final class JctFileManagerJvmClassPathModuleConfigurer
extends Object
implements JctFileManagerConfigurer
Configurer for a file manager that detects and applies classpath paths that contain JPMS modules
to the module path.
If classpath inheritance or module fixing is disabled in the compiler, this will not run.
This fixes some common configuration issues when IDEs invoke JUnit.
- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Constructor Summary
ConstructorDescriptionInitialise the configurer with the desired compiler. -
Method Summary
Modifier and TypeMethodDescriptionconfigure
(JctFileManager fileManager) Configure the file manager implementation.boolean
Determine if this configurer is enabled or not.
-
Constructor Details
-
JctFileManagerJvmClassPathModuleConfigurer
Initialise the configurer with the desired compiler.- Parameters:
compiler
- the compiler to wrap.
-
-
Method Details
-
configure
Description copied from interface:JctFileManagerConfigurer
Configure the file manager implementation.- Specified by:
configure
in interfaceJctFileManagerConfigurer
- Parameters:
fileManager
- the file manager implementation.- Returns:
- the new file manager (this may be the same as the input file manager).
-
isEnabled
Description copied from interface:JctFileManagerConfigurer
Determine if this configurer is enabled or not.Default implementations are enabled automatically unless otherwise specified.
- Specified by:
isEnabled
in interfaceJctFileManagerConfigurer
- Returns:
true
if enabled,false
if disabled.
-