Modifier and Type | Class and Description |
---|---|
static class |
MavenLauncher.SOURCE_TYPE
The type of source to consider in the model
|
ALL_DIR_FILTER, factory, jsapActualArgs, OUTPUTDIR, RESOURCES_FILE_FILTER, SPOONED_CLASSES
Constructor and Description |
---|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType)
MavenLauncher constructor assuming either an environment
variable M2_HOME, or that mvn command exists in PATH.
|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
boolean forceRefresh)
MavenLauncher constructor assuming either an environment
variable M2_HOME, or that mvn command exists in PATH.
|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
boolean forceRefresh,
java.util.regex.Pattern profileFilter)
MavenLauncher constructor assuming either an environment
variable M2_HOME, or that mvn command exists in PATH.
|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.util.regex.Pattern profileFilter)
MavenLauncher constructor assuming either an environment
variable M2_HOME, or that mvn command exists in PATH.
|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.lang.String mvnHome) |
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.lang.String[] classpath)
MavenLauncher constructor that skips maven invocation building
classpath.
|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.lang.String[] classpath,
java.util.regex.Pattern profileFilter)
MavenLauncher constructor that skips maven invocation building
classpath.
|
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.lang.String mvnHome,
boolean forceRefresh) |
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.lang.String mvnHome,
boolean forceRefresh,
java.util.regex.Pattern profileFilter) |
MavenLauncher(java.lang.String mavenProject,
MavenLauncher.SOURCE_TYPE sourceType,
java.lang.String mvnHome,
java.util.regex.Pattern profileFilter) |
Modifier and Type | Method and Description |
---|---|
SpoonPom |
getPomFile() |
void |
rebuildClasspath()
Triggers regeneration of the classpath that is used for building the model, based on pom.xml
|
protected void |
reportClassPathMode() |
addInputResource, addInputResource, addProcessor, addProcessor, addTemplateResource, buildModel, createCompiler, createCompiler, createCompiler, createCompiler, createCompiler, createEnvironment, createFactory, createOutputWriter, createPrettyPrinter, defineArgs, getArguments, getCompilerInstance, getEnvironment, getFactory, getModel, getModelBuilder, getProcessors, getProcessorTypes, main, parseArgs, parseClass, prettyprint, printUsage, process, processArguments, run, run, setArgs, setBinaryOutputDirectory, setBinaryOutputDirectory, setOutputFilter, setOutputFilter, setSourceOutputDirectory, setSourceOutputDirectory
public MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)public MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.util.regex.Pattern profileFilter)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)profileFilter
- regular expression of profiles to include in the built modelpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, boolean forceRefresh)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)forceRefresh
- force the regeneration of classpathpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, boolean forceRefresh, java.util.regex.Pattern profileFilter)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)forceRefresh
- force the regeneration of classpathprofileFilter
- regular expression of profiles to include in the built modelpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.lang.String mvnHome)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)mvnHome
- Path to maven installpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.lang.String mvnHome, java.util.regex.Pattern profileFilter)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)mvnHome
- Path to maven installprofileFilter
- regular expression of profiles to include in the built modelpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.lang.String mvnHome, boolean forceRefresh)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)mvnHome
- Path to maven installforceRefresh
- force the regeneration of classpathpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.lang.String mvnHome, boolean forceRefresh, java.util.regex.Pattern profileFilter)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)mvnHome
- Path to maven installforceRefresh
- force the regeneration of classpathprofileFilter
- regular expression of profiles to include in the built modelpublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.lang.String[] classpath)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)classpath
- String array containing the classpath elementspublic MavenLauncher(java.lang.String mavenProject, MavenLauncher.SOURCE_TYPE sourceType, java.lang.String[] classpath, java.util.regex.Pattern profileFilter)
mavenProject
- the path to the root of the projectsourceType
- the source type (App, test, or all)classpath
- String array containing the classpath elementsprofileFilter
- regular expression of profiles to include in the built modelpublic SpoonPom getPomFile()
protected void reportClassPathMode()
reportClassPathMode
in class Launcher
public void rebuildClasspath()
Copyright © 2007–2021 Inria. All rights reserved.