Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transforming LocalRepoFinder and QbtRemote classes.
These classes allow the user to map a repo to a different name locally on disk and on the server, allowing those places to use names which contain otherwise invalid characters for repo names. Resolves #5 and mitigates #4. QbtConfig might look like this: Function<String, String> transformNames = new Function<String, String>() { public String apply(String name) { return name.replace("flume_ng", "flume-ng").replace("hadoop_lzo", "hadoop-lzo"); } } return new QbtConfig( new TransformingFormatLocalRepoFinder(gitLocalVcs, transformNames, workspaceRoot.toString()), // ... new MapQbtRemoteFinder([ formatremote: new TransformingFormatQbtRemote( gitRemoteVcs, transformNames, "ssh://git@github.mtv.cloudera.com/TerabyteQbt/%r.git", ), githubremote: new TransformingGithubQbtRemote( gitRemoteVcs, transformNames, githubToken, "TerabyteQbt", "%r", ), ]), // ... );
- Loading branch information