BitTorrentBuilder
BitTorrent torrent file builder based on the CreateTorrent utility by Daniel Etzold
Overview
BitTorrentBuilder: BitTorrent torrent file builder based on the CreateTorrent utility by Daniel Etzold
Design
- Super Type
- Builder
Role | Concrete. (Objects can be created.) |
Instance Names | Unique |
Notification | false |
Template Directory | |
Data View | Children, proximity: 1 |
Logger Name | BitTorrentBuilder |
Constraints
Allowed Child Dependencies
- BitTorrentBuilderPieceLength 1
- BitTorrentBuilderPort 1
- BitTorrentBuilderUrl 1
- BuilderBuildFile1
- BuilderBuildstamp1
- BuilderBuildTarget1
- BuilderExportDestination1
- BuilderImportMax1
- BuilderImportMin1
- BuilderPackageBuildtimePattern1
- BuilderPackageExtension1
- BuilderPackageFilebase1
- BuilderPackageInstallRank1
- BuilderPackageInstallroot1
- BuilderPackagePurgeRegex1
- BuilderPackageRequireBuildstamp1
- BuilderPackageSeparator1
- BuilderPackageType1
- BuilderPackageVendor1
- BuilderPackageVersion1
- BuilderScmBinding1
- BuilderScmConnection1
- BuilderScmLabel1
- BuilderScmModule1
- BuilderScmQuiet1
- BuilderScmUser1
- BuilderScmView1
- BuilderVersionBuild1
- BuilderVersionMajor1
- BuilderVersionMinor1
- BuilderVersionRelease1
- BuilderVersionTag1
1: These types have a Singleton constraint. Only one instance may be added as a resource.
Attributes
Defaults for Imported Attributes
Name | Default |
---|---|
packageExtension | torrent |
packageFilebase | ${entity.name} |
packageInstallroot | ${entity.attribute.basedir} |
packageType | BitTorrentFile |
pieceLength | 262144 |
trackerPort | 6881 |
Commands
Note
Commandline options displayed in square brackets "[]" are optional. If an option expects arguments, then angle brackets are shown after the option "<>". Any default value is shown within the brackets.
Build
Run the build cycle.
- Usage
- Build [-buildstamp <>]
Workflow
- setBuildstamp
- runBuildScript
- repoImport
Options
Option | Description |
---|---|
buildstamp | build identifier |
runBuildScript
runs the build script
- Usage
- runBuildScript [-basedir <>] [-buildfile <>] [-buildstamp <>] [-filebase <>] [-piecelength <>] [-port <>] [-target <>] [-targetdir <>] [-url <>]
Execution | bash |
Arguments | mkdir -p ${opts.targetdir}; createtorrent -a ${opts.url} -p ${opts.port} -l ${opts.piecelength} --comment ${opts.basedir} ${opts.targetdir}/${opts.filebase}.torrent |
Options
Option | Description |
---|---|
basedir | directory where build resources reside |
buildfile | build file to execute |
buildstamp | build identifier |
filebase | torrent file name |
piecelength | piece length to use for the tracker file |
port | tracker port to include in the torrent file |
target | build target to evaluate |
targetdir | directory build artifacts will be written |
url | tracker url to include in the torrent file |
Related Types
The following types are defined for use with BitTorrentBuilder.
BitTorrentBuilderSetting
Overview
BitTorrentBuilderSetting: A BitTorrent torrent file builder setting
Design
- Super Type
- Setting
Role | Abstract. (Objects cannot be created.) |
Instance Names | Unique |
Constraints
Allowed Parent Dependencies
BitTorrentBuilderPort
Overview
BitTorrentBuilderPort: BitTorrent torrent file builder tracker port
Design
- Super Type
- BitTorrentBuilderSetting
Role | Concrete. (Objects can be created.) |
Instance Names | Unique |
Attributes
Exported Attributes
Name | Property |
---|---|
trackerPort | settingValue |
BitTorrentBuilderUrl
Overview
BitTorrentBuilderUrl: BitTorrent torrent file builder tracker URL
Design
- Super Type
- BitTorrentBuilderSetting
Role | Concrete. (Objects can be created.) |
Instance Names | Unique |
Attributes
Exported Attributes
Name | Property |
---|---|
trackerUrl | settingValue |
BitTorrentBuilderPieceLength
Overview
BitTorrentBuilderPieceLength: BitTorrent torrent file builder piece length in bytes
Design
- Super Type
- BitTorrentBuilderSetting
Role | Concrete. (Objects can be created.) |
Instance Names | Unique |
Attributes
Exported Attributes
Name | Property |
---|---|
pieceLength | settingValue |