Example usage for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer

List of usage examples for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer

Introduction

In this page you can find the example usage for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer.

Prototype

public SimpleHttpServer(Repository repository) 

Source Link

Document

Constructor for <code>SimpleHttpServer</code>.

Usage

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

License:Open Source License

private void serveHttp() throws Exception {
    httpServer = new SimpleHttpServer(src.getRepository());
    httpServer.start();//from   w w  w.j  a v  a 2 s.  co m
    uri = httpServer.getUri().toString();
}