net.dpml.tools.impl
Class StandardBuilder

java.lang.Object
  extended bynet.dpml.tools.impl.StandardBuilder
All Implemented Interfaces:
Builder

public class StandardBuilder
extends Object
implements Builder

The StandardBuilder is a plugin established by the Tools build controller used for the building of a project based on the Ant build system in conjunction with Transit plugin management services.

Version:
1.1.0
Author:
Digital Product Meta Library

Field Summary
static BuilderDirective CONFIGURATION
          The builder configuration.
static String DEFAULT_TEMPLATE_URN
          The default template uri path.
 
Constructor Summary
StandardBuilder(Logger logger, Library library)
          Creation of a new standard builder.
StandardBuilder(Logger logger, Library library, boolean verbose)
          Creation of a new standard builder.
 
Method Summary
 boolean build(Resource resource, String[] targets)
          Build the project defined by the supplied resource.
 File getTemplateFile(Resource resource)
          Return the template for the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEMPLATE_URN

public static final String DEFAULT_TEMPLATE_URN
The default template uri path.

See Also:
Constant Field Values

CONFIGURATION

public static final BuilderDirective CONFIGURATION
The builder configuration.

Constructor Detail

StandardBuilder

public StandardBuilder(Logger logger,
                       Library library)
Creation of a new standard builder.

Parameters:
logger - assigned logging channel
library - the library

StandardBuilder

public StandardBuilder(Logger logger,
                       Library library,
                       boolean verbose)
Creation of a new standard builder.

Parameters:
logger - assigned logging channel
library - the library
verbose - verbose execution flag
Method Detail

build

public boolean build(Resource resource,
                     String[] targets)
Build the project defined by the supplied resource.

Specified by:
build in interface Builder
Parameters:
resource - the project definition
targets - an array of build target names
Returns:
the build success status

getTemplateFile

public File getTemplateFile(Resource resource)
Return the template for the resource.

Parameters:
resource - the project definition
Returns:
the template