Package aQute.service.reporter.Report

Examples of aQute.service.reporter.Report.Location


    private void clearBuildMarkers() throws CoreException {
        getProject().deleteMarkers(BndtoolsConstants.MARKER_BND_PROBLEM, true, IResource.DEPTH_INFINITE);
    }

    private void addBuildMarkers(String message, int severity) throws Exception {
        Location location = model != null ? model.getLocation(message) : null;
        if (location != null) {
            String type = location.details != null ? location.details.getClass().getName() : null;
            BuildErrorDetailsHandler handler = BuildErrorDetailsHandlers.INSTANCE.findHandler(type);

            List<MarkerData> markers = handler.generateMarkerData(getProject(), model, location);
View Full Code Here


        addBuildMarkers(status.getMessage(), iStatusSeverityToIMarkerSeverity(status));
    }

    private void addBuildMarkers(String message, int severity) throws Exception {
        Location location = model != null ? model.getLocation(message) : null;
        if (location != null) {
            String type = location.details != null ? location.details.getClass().getName() : null;
            BuildErrorDetailsHandler handler = BuildErrorDetailsHandlers.INSTANCE.findHandler(type);

            List<MarkerData> markers = handler.generateMarkerData(getProject(), model, location);
View Full Code Here

      b.build();

      String message = b.getErrors().get(0);
      assertTrue("The lacking version error first",
          message.contains("package info for test.package_info_versioniskey attribute [1.0.0=''],"));
      Location location = b.getLocation(message);
      assertNotNull("Supposed to have a location", location);
      assertNotNull("And that must have a file", location.file);
      assertEquals("Which should be the packaginfo file", "packageinfo", new File(location.file).getName());
      assertEquals(4, location.line);
      assertEquals(5, location.length);
View Full Code Here

        f.close();
      }
    }

    for (Entry<Collection<Contract>,List<PackageRef>> oc : overlappingContracts.entrySet()) {
      Location location = analyzer
          .error("Contracts %s declare the same packages in their uses: directive: %s. "
              + "Contracts are found in declaring bundles (see their 'from' field), it is possible to control the finding"
              + "with the -contract instruction", oc.getKey(), oc.getValue()).location();
      location.header = Constants.CONTRACT;
    }
View Full Code Here

TOP

Related Classes of aQute.service.reporter.Report.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.