Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSHARED-1006] Deprecate not thread safe methods on Invoker #32

Merged
merged 1 commit into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/main/java/org/apache/maven/shared/invoker/Invoker.java
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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