repoImport
Command Reference
Description
Import packages into the repository.
The repoImport command recursively scans directories under -targetdir looking for files that match the regexes: (filebase)(?:buildstamp)?.(extension) loading them into the repository if the necessary metadata is provided.
There are two setup modes for repoImport:
- Single package import: If only one build artifact is generated by the Builder, then ensure the follwoing: -min and -max both use a value of "1", -type refers to an existing Package type, -installroot refers to a valid file path.
- Multiple package import: If multiple build artifacts are generated by the Builder, then it is possible to use a -propfile as a metadata template for each kind of package to import.
The command will fail if the -min and -max criteria are not met.
static: This command can be run outside of an object context.
Usage
ctl -m Builder -c repoImport [-buildstamp <>] [-extension <>] [-filebase <>] [-installrank <>] [-installroot <>] [-max <>] [-min <>] [-packageBuildtimePattern <>] [-propfile <>] [-repouri <${framework.pkgRepo.uri}>] [-requirebuildstamp <>] [-separator <->] [-targetdir <>] [-type <>] [-vendor <>] [-version <>] [-versionMajor <>] [-versionMinor <>] [-versionRelease <>]
Options
Option | Description | Type | Default |
---|---|---|---|
buildstamp | build identifier | string | ${entity.attribute.buildstamp} |
extension | package file extension | string | ${entity.attribute.packageExtension} |
filebase | package file base | string | ${entity.attribute.packageFilebase} |
installrank | package install-rank | string | ${entity.attribute.packageInstallRank} |
installroot | package install-root | string | ${entity.attribute.packageInstallroot} |
max | maximum number of packages to import after build | string | ${entity.attribute.importMax} |
min | minimum number of packages to import after build | string | ${entity.attribute.importMin} |
packageBuildtimePattern | timestamp pattern | string | ${entity.attribute.packageBuildtimePattern} |
propfile | metadata template file used during package registration | string | |
repouri | repository URI | string | ${framework.pkgRepo.uri} / ${entity.attribute.packageRepoUri} |
requirebuildstamp | whether or not to require that files be matched by buildstamp | string | |
separator | package name separator character | string | - / ${entity.attribute.packageSeparator} |
targetdir | top level directory containing build artifacts | string | ${entity.attribute.targetdir} |
type |
package type
This must be a pre-existing type in the project model. |
string | ${entity.attribute.packageType} |
vendor | package vendor | string | / ${entity.attribute.packageVendor} |
version | package version | string | |
versionMajor | build major version number | string | ${entity.attribute.versionMajor} |
versionMinor | build minor version number | string | ${entity.attribute.versionMinor} |
versionRelease | build release version number | string | ${entity.attribute.versionRelease} |