}
}
}
private static void testGetResources() {
Sonar sonar = Sonar.create("https://sonar.corp.mobile.de/sonar");
ResourceQuery projectResourceQuery = new ResourceQuery();
projectResourceQuery.setQualifiers(Resource.QUALIFIER_PROJECT);
// projectResourceQuery.
List<Resource> projectResourceList = sonar.findAll(projectResourceQuery);
for (Resource projectResource : projectResourceList) {
System.out.println("##################################################");
System.out.println(projectResource.toString() + " ::: " + projectResource.getQualifier());
ResourceQuery moduleResourceQuery = new ResourceQuery(projectResource.getId());
moduleResourceQuery.setDepth(-1);
moduleResourceQuery.setQualifiers(Resource.QUALIFIER_MODULE);
List<Resource> moduleResourceList = sonar.findAll(moduleResourceQuery);
for (Resource moduleResource : moduleResourceList) {
System.out.println(" " + moduleResource.toString() + " ::: " + moduleResource.getQualifier());
}
System.out.println("##################################################");
}