org.apache.maven.toolchain.java
Class DefaultJavaToolChain

java.lang.Object
  extended by org.apache.maven.toolchain.DefaultToolchain
      extended by org.apache.maven.toolchain.java.DefaultJavaToolChain
All Implemented Interfaces:
JavaToolChain, Toolchain, ToolchainPrivate

@Component(role=JavaToolChain.class)
public class DefaultJavaToolChain
extends DefaultToolchain
implements JavaToolChain

Author:
Milos Kleint

Field Summary
static String KEY_JAVAHOME
           
 
Fields inherited from class org.apache.maven.toolchain.DefaultToolchain
KEY_TYPE
 
Constructor Summary
DefaultJavaToolChain(ToolchainModel model, org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 String findTool(String toolName)
          Gets the platform tool executable.
 String getJavaHome()
           
 void setJavaHome(String javaHome)
           
 String toString()
           
 
Methods inherited from class org.apache.maven.toolchain.DefaultToolchain
addProvideToken, getLog, getModel, getType, matchesRequirements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.maven.toolchain.Toolchain
getType
 

Field Detail

KEY_JAVAHOME

public static final String KEY_JAVAHOME
See Also:
Constant Field Values
Constructor Detail

DefaultJavaToolChain

public DefaultJavaToolChain(ToolchainModel model,
                            org.codehaus.plexus.logging.Logger logger)
Method Detail

getJavaHome

public String getJavaHome()

setJavaHome

public void setJavaHome(String javaHome)

toString

public String toString()
Overrides:
toString in class Object

findTool

public String findTool(String toolName)
Description copied from interface: Toolchain
Gets the platform tool executable.

Specified by:
findTool in interface Toolchain
Parameters:
toolName - the tool platform independent tool name.
Returns:
file representing the tool executable, or null if the tool can not be found


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.