public class ProjectModule extends Object
| Modifier and Type | Field and Description |
|---|---|
Collection<File> |
deleteJavaSources |
Collection<File> |
deleteJavaTests |
boolean |
disableDependencyCompile |
Collection<File> |
failedCompilationJavaSources |
Collection<File> |
failedCompilationJavaTests |
Collection<File> |
recompileJavaSources |
Collection<File> |
recompileJavaTests |
boolean |
sourceDirRegistered |
boolean |
sourceOutputDirRegistered |
boolean |
testSourceDirRegistered |
boolean |
triggerJavaTestRecompile |
| Constructor and Description |
|---|
ProjectModule(File buildFile,
String projectName,
String packagingType,
Set<String> compileArtifacts,
Set<String> testArtifacts,
File sourceDirectory,
File outputDirectory,
File testSourceDirectory,
File testOutputDirectory,
List<File> resourceDirs,
boolean skipTests,
boolean skipUTs,
boolean skipITs,
JavaCompilerOptions compilerOptions,
List<File> dependentModules)
Defines a project module for supporting multi-module projects
|
| Modifier and Type | Method and Description |
|---|---|
File |
getBuildFile() |
Set<String> |
getCompileArtifacts() |
JavaCompilerOptions |
getCompilerOptions() |
List<File> |
getDependentModules() |
File |
getOutputDirectory() |
String |
getPackagingType() |
String |
getProjectName() |
List<File> |
getResourceDirs() |
HashMap<File,Boolean> |
getResourceMap() |
File |
getSourceDirectory() |
Set<String> |
getTestArtifacts() |
File |
getTestOutputDirectory() |
File |
getTestSourceDirectory() |
void |
setCompilerOptions(JavaCompilerOptions compilerOptions) |
void |
setDependentModules(List<File> dependentModules) |
void |
setResourceMap(HashMap<File,Boolean> resourceMap) |
boolean |
skipITs() |
boolean |
skipTests() |
boolean |
skipUTs() |
public Collection<File> recompileJavaSources
public Collection<File> deleteJavaSources
public Collection<File> failedCompilationJavaSources
public boolean sourceDirRegistered
public Collection<File> recompileJavaTests
public Collection<File> deleteJavaTests
public Collection<File> failedCompilationJavaTests
public boolean triggerJavaTestRecompile
public boolean testSourceDirRegistered
public boolean disableDependencyCompile
public boolean sourceOutputDirRegistered
public ProjectModule(File buildFile, String projectName, String packagingType, Set<String> compileArtifacts, Set<String> testArtifacts, File sourceDirectory, File outputDirectory, File testSourceDirectory, File testOutputDirectory, List<File> resourceDirs, boolean skipTests, boolean skipUTs, boolean skipITs, JavaCompilerOptions compilerOptions, List<File> dependentModules)
buildFile - pom.xmlprojectName - project name (artifactId)packagingType - packaging typecompileArtifacts - compileArtifacts of projecttestArtifacts - testArtifacts of projectsourceDirectory - src/main/java diroutputDirectory - output dirtestSourceDirectory - src/test/java dirtestOutputDirectory - test output dirresourceDirs - resource directoriesskipTests - whether to skip tests for this projectskipUTs - whether to skip unit tests for this projectskipITs - whether to skip integration tests for this projectcompilerOptions - Java compiler options set in pom.xmlpublic String getProjectName()
public String getPackagingType()
public File getBuildFile()
public File getSourceDirectory()
public File getOutputDirectory()
public File getTestSourceDirectory()
public File getTestOutputDirectory()
public boolean skipTests()
public boolean skipUTs()
public boolean skipITs()
public JavaCompilerOptions getCompilerOptions()
public void setCompilerOptions(JavaCompilerOptions compilerOptions)
Copyright © 2022 the original author or authors.