Example usage for org.eclipse.jgit.transport Daemon Daemon

List of usage examples for org.eclipse.jgit.transport Daemon Daemon

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport Daemon Daemon.

Prototype

public Daemon() 

Source Link

Document

Configure a daemon to listen on any available network port.

Usage

From source file:org.eclipse.egit.ui.wizards.clone.SampleTestRepository.java

License:Open Source License

private void serve() throws IOException {
    d = new Daemon();
    d.exportRepository(REPO_NAME, src.getRepository());
    d.start();//from  w  ww  .ja v  a2  s. co m
    uri = "git://localhost:" + d.getAddress().getPort() + "/" + REPO_NAME + Constants.DOT_GIT;
}