org.apache.maven.toolchain
Class DefaultToolchainsBuilder

java.lang.Object
  extended by org.apache.maven.toolchain.DefaultToolchainsBuilder
All Implemented Interfaces:
ToolchainsBuilder

@Component(role=ToolchainsBuilder.class,
           hint="default")
public class DefaultToolchainsBuilder
extends Object
implements ToolchainsBuilder

Author:
Benjamin Bentmann

Constructor Summary
DefaultToolchainsBuilder()
           
 
Method Summary
 PersistedToolchains build(File userToolchainsFile)
          Builds the toolchains model from the configured toolchain files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultToolchainsBuilder

public DefaultToolchainsBuilder()
Method Detail

build

public PersistedToolchains build(File userToolchainsFile)
                          throws MisconfiguredToolchainException
Description copied from interface: ToolchainsBuilder
Builds the toolchains model from the configured toolchain files.

Specified by:
build in interface ToolchainsBuilder
Parameters:
userToolchainsFile - The path to the toolchains file, may be null to disable parsing.
Returns:
The toolchains model or null if no toolchain file was configured or the configured file does not exist.
Throws:
MisconfiguredToolchainException - If the toolchain file exists but cannot be parsed.


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