Package org.apache.maven.wrapper
Class WrapperExecutor
java.lang.Object
org.apache.maven.wrapper.WrapperExecutor
Wrapper executor, running
Installer
to get a Maven distribution ready, followed by
BootstrapMainStarter
to launch the Maven bootstrap.- Author:
- Hans Dockter
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(String[] args, Installer install, BootstrapMainStarter bootstrapMainStarter) static WrapperExecutor
forProjectDirectory
(Path projectDir) static WrapperExecutor
forWrapperPropertiesFile
(Path propertiesFile) Returns the configuration for this wrapper.Returns the Maven distribution which this wrapper will use.protected String
-
Field Details
-
DISTRIBUTION_URL_PROPERTY
- See Also:
-
DISTRIBUTION_BASE_PROPERTY
- See Also:
-
ZIP_STORE_BASE_PROPERTY
- See Also:
-
DISTRIBUTION_PATH_PROPERTY
- See Also:
-
ZIP_STORE_PATH_PROPERTY
- See Also:
-
DISTRIBUTION_SHA_256_SUM
- See Also:
-
ALWAYS_DOWNLOAD
- See Also:
-
ALWAYS_UNPACK
- See Also:
-
-
Method Details
-
forProjectDirectory
-
forWrapperPropertiesFile
-
getEnv
-
getDistribution
Returns the Maven distribution which this wrapper will use. Returns null if no wrapper meta-data was found in the specified project directory.- Returns:
- the Maven distribution which this wrapper will use
-
getConfiguration
Returns the configuration for this wrapper.- Returns:
- the configuration for this wrapper
-
execute
public void execute(String[] args, Installer install, BootstrapMainStarter bootstrapMainStarter) throws Exception - Throws:
Exception
-