ControlTier > controltier-elements
 

AntBuilder

A simple Builder to interface with Ant

Overview

AntBuilder: A simple Builder to interface with Ant

This type goes beyond Builder in allowing an AntZip dependency which can be installed via #Deploy. It also allows a custom-installed Ant and/or custom-installed Java for each AntBuilder. The number of available settings is much higher. It also provides integration with the CruiseControl and Hudson types in order to generate configuration files for those services.

Design

Super Type
Builder
Role Concrete. (Objects can be created.)
Instance Names Unique
Notification false
Template Directory
Data View Children, proximity: 1
Logger Name AntBuilder

Constraints

Allowed Child Dependencies

  • AntBuilderAntArgs 1
  • AntBuilderAntOpts 1
  • AntZip 1
  • BuilderAntHome 1
  • BuilderAutoUpdate1
  • BuilderBuildFile1
  • BuilderBuildstamp1
  • BuilderBuildTarget1
  • BuilderImportMax1
  • BuilderImportMin1
  • BuilderJavaHome 1
  • BuilderNotificationList1
  • BuilderPackageBuildtimePattern1
  • BuilderPackageExtension1
  • BuilderPackageFilebase1
  • BuilderPackageInstallRank1
  • BuilderPackageInstallRank1
  • BuilderPackageInstallroot1
  • BuilderPackagePurgeRegex1
  • BuilderPackageRequireBuildstamp1
  • BuilderPackageSeparator1
  • BuilderPackageType1
  • BuilderPackageVendor1
  • BuilderPackageVersion1
  • BuilderPath 1
  • BuilderScmBinding1
  • BuilderScmConnection1
  • BuilderScmLabel1
  • BuilderScmModule1
  • BuilderScmUser1
  • BuilderScmView1
  • BuilderVersionBuild1
  • BuilderVersionMajor1
  • BuilderVersionMinor1
  • BuilderVersionRelease1
  • BuilderVersionTag1
  • CruiseControlArtifact1
  • CruiseControlInterval1
  • CruiseControlMailHost1
  • CruiseControlReturnAddress1
  • HudsonPollSpec1

1: These types have a Singleton constraint. Only one instance may be added as a resource.

Allowed Parent Dependencies

Attributes

Exported Attributes

Name Property
basedir deployment-basedir
targetdir deployment-install-root

Defaults for Imported Attributes

Name Default
antArgs
antOpts
autoUpdate false
buildAntHome ${env.ANT_HOME}
buildFile build.xml
buildPath /bin:/usr/bin
buildTarget all
cruiseControlInterval 300
hudsonPollSpec */5 * * * *
importMax 1
importMin 1
javaHome ${env.JAVA_HOME}
packageBuildtimePattern yyyyMMdd'T'HHmmss
packageExtension war
packageFilebase .*?
packageInstallRank 10
packagePurgeRegex ^(?!^${entity.attribute.buildstamp}$).*$
packageSeparator -
packageType war
requireBuildstamp false
scmBinding cvs
scmLabel
scmUser ${user.name}

Commands

View the available commands in the User Reference.

Related Types

The following types are defined for use with AntBuilder.

AntBuilderAntArgs

Overview

AntBuilderAntArgs: Ant Args like ANT_ARGS environment variable

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
antArgs settingValue

AntBuilderAntOpts

Overview

AntBuilderAntOpts: Ant Opts like ANT_OPTS environment variable

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
antOpts settingValue

BuilderAntHome

Overview

BuilderAntHome: Ant instance that should be used

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
buildAntHome settingValue

BuilderJavaHome

Overview

BuilderJavaHome: Java instance that ant should use

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
javaHome settingValue

BuilderPath

Overview

BuilderPath: Path that should be used

Design

Super Type
BuilderSetting
Role Concrete. (Objects can be created.)
Instance Names Unique

Attributes

Exported Attributes
Name Property
buildPath settingValue