Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

But be careful of the critical bug HTTPCLIENT-1140, use version  >4.1.2. It can end up in an infinite loop. 

Using

...

Client

...

Creating Client

Code Block
java
java
import org.sonar.wsclient.Sonar;
Sonar sonar = Sonar.create("http://localhost:9000");

...

Code Block
Sonar sonar = new Sonar(new HttpClient4Connector(new Host("http://localhost:9000")));

Executing

...

Requests

For example to the get the code coverage of the 'Struts' project:

...