org.apache.maven.shared.invoker
Class DefaultInvoker

java.lang.Object
  extended by 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
           
 
Fields inherited from interface org.apache.maven.shared.invoker.Invoker
ROLE, userHome
 
Constructor Summary
DefaultInvoker()
           
 
Method Summary
 InvocationResult execute(InvocationRequest request)
           
 java.io.File getLocalRepositoryDirectory()
           
 InvokerLogger getLogger()
           
 java.io.File getMavenHome()
           
 java.io.File getWorkingDirectory()
           
 Invoker setErrorHandler(InvocationOutputHandler errorHandler)
           
 Invoker setInputStream(java.io.InputStream inputStream)
           
 Invoker setLocalRepositoryDirectory(java.io.File localRepositoryDirectory)
           
 Invoker setLogger(InvokerLogger logger)
           
 Invoker setMavenHome(java.io.File mavenHome)
           
 Invoker setOutputHandler(InvocationOutputHandler outputHandler)
           
 Invoker setWorkingDirectory(java.io.File workingDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_HINT

public static final java.lang.String ROLE_HINT
See Also:
Constant Field Values
Constructor Detail

DefaultInvoker

public DefaultInvoker()
Method Detail

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.