| | |
| | |
|
| | | /**
|
| | | * Command-line client to pull federated Gitblit repositories.
|
| | | * |
| | | *
|
| | | * @author James Moger
|
| | | * |
| | | *
|
| | | */
|
| | | public class FederationClient {
|
| | |
|
| | |
| | | System.out.println("No Federation Registrations! Nothing to do.");
|
| | | System.exit(0);
|
| | | }
|
| | | |
| | |
|
| | | // command-line specified repositories folder
|
| | | if (!StringUtils.isEmpty(params.repositoriesFolder)) {
|
| | | settings.overrideSetting(Keys.git.repositoriesFolder, new File(
|
| | |
| | | }
|
| | |
|
| | | // configure the Gitblit singleton for minimal, non-server operation
|
| | | GitBlit.self().configureContext(settings, baseFolder, false);
|
| | | GitBlit gitblit = new GitBlit(settings, baseFolder);
|
| | | gitblit.beforeServletInjection(null); // XXX broken
|
| | | FederationPullExecutor executor = new FederationPullExecutor(registrations, params.isDaemon);
|
| | | executor.run();
|
| | | if (!params.isDaemon) {
|