Skip to content

Commit

Permalink
[MSHARED-1006] Deprecate not thread safe methods on Invoker
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 29, 2021
1 parent b33f812 commit 0888529
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 12 additions & 0 deletions src/main/java/org/apache/maven/shared/invoker/Invoker.java
Expand Up @@ -127,7 +127,10 @@ InvocationResult execute( InvocationRequest request )
* @param workingDirectory The working directory for the Maven invocation, may be <code>null</code> to derive the
* working directory from the base directory of the processed POM.
* @return This invoker instance.
*
* @deprecated Please use {@link InvocationRequest#setBaseDirectory(File)}
*/
@Deprecated
Invoker setWorkingDirectory( File workingDirectory );

/**
Expand All @@ -137,22 +140,31 @@ InvocationResult execute( InvocationRequest request )
* @param inputStream The input stream used to provide input for the invoked Maven build, may be <code>null</code>
* if not required.
* @return This invoker instance.
*
* @deprecated Please use {@link InvocationRequest#setInputStream(InputStream)}
*/
@Deprecated
Invoker setInputStream( InputStream inputStream );

/**
* Sets the handler used to capture the standard output from the Maven build.
*
* @param outputHandler The output handler, may be <code>null</code> if the output is not of interest.
* @return This invoker instance.
*
* @deprecated Please use {@link InvocationRequest#setOutputHandler(InvocationOutputHandler)}
*/
@Deprecated
Invoker setOutputHandler( InvocationOutputHandler outputHandler );

/**
* Sets the handler used to capture the error output from the Maven build.
*
* @param errorHandler The error handler, may be <code>null</code> if the output is not of interest.
* @return This invoker instance.
*
* @deprecated Pleas use {@link InvocationRequest#setErrorHandler(InvocationOutputHandler)}
*/
@Deprecated
Invoker setErrorHandler( InvocationOutputHandler errorHandler );
}
10 changes: 2 additions & 8 deletions src/site/apt/index.apt.vm
Expand Up @@ -50,15 +50,9 @@ ${project.name}
* Global Options:

* Maven-Home Location (location of Maven application directory)

* Global Checksum policy (fail/warn, global across defined repositories)


* Local Repository Location

* Working Directory

* Input/Output Handlers


* API Logger

* Maven Executable
Expand Down

0 comments on commit 0888529

Please sign in to comment.