org.apache.maven.shared.invoker
Class DefaultInvoker
java.lang.Object
org.apache.maven.shared.invoker.DefaultInvoker
- All Implemented Interfaces:
- Invoker
public class DefaultInvoker
- extends java.lang.Object
- implements Invoker
Class intended to be used by clients who wish to invoke a forked Maven
process from their applications
- Author:
- jdcasey
Field Summary |
static java.lang.String |
ROLE_HINT
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE_HINT
public static final java.lang.String ROLE_HINT
- See Also:
- Constant Field Values
DefaultInvoker
public DefaultInvoker()
execute
public InvocationResult execute(InvocationRequest request)
throws MavenInvocationException
- Specified by:
execute
in interface Invoker
- Throws:
MavenInvocationException
getLocalRepositoryDirectory
public java.io.File getLocalRepositoryDirectory()
- Specified by:
getLocalRepositoryDirectory
in interface Invoker
getLogger
public InvokerLogger getLogger()
- Specified by:
getLogger
in interface Invoker
setLocalRepositoryDirectory
public Invoker setLocalRepositoryDirectory(java.io.File localRepositoryDirectory)
- Specified by:
setLocalRepositoryDirectory
in interface Invoker
setLogger
public Invoker setLogger(InvokerLogger logger)
- Specified by:
setLogger
in interface Invoker
getWorkingDirectory
public java.io.File getWorkingDirectory()
- Specified by:
getWorkingDirectory
in interface Invoker
setWorkingDirectory
public Invoker setWorkingDirectory(java.io.File workingDirectory)
- Specified by:
setWorkingDirectory
in interface Invoker
getMavenHome
public java.io.File getMavenHome()
- Specified by:
getMavenHome
in interface Invoker
setMavenHome
public Invoker setMavenHome(java.io.File mavenHome)
- Specified by:
setMavenHome
in interface Invoker
setErrorHandler
public Invoker setErrorHandler(InvocationOutputHandler errorHandler)
- Specified by:
setErrorHandler
in interface Invoker
setInputStream
public Invoker setInputStream(java.io.InputStream inputStream)
- Specified by:
setInputStream
in interface Invoker
setOutputHandler
public Invoker setOutputHandler(InvocationOutputHandler outputHandler)
- Specified by:
setOutputHandler
in interface Invoker
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.