Examples of ReportHandler


Examples of ch.hortis.sonar.mvn.reports.ReportHandler

    EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(maven.getLogger()));
    boolean hasJavaSources = PomUtils.getJavaSourceFiles( executedProject ).size()>0;
    boolean hasJavaTests = PomUtils.getJavaTestFiles( executedProject ).size()>0;

    for (Report report : Report.getReports()) {
      ReportHandler reportHandler = report.getReportHandler();
      if (reportHandler!=null) {
        if ((hasJavaSources || reportHandler.executeEvenIfNoJavaSources())
            && (hasJavaTests || reportHandler.executeEvenIfNoJavaTests()) &&
            reportHandler.execute( this, getLog() ) ) {
          executeReport(eventMonitor, reportHandler);
        }
      }
    }
  }
View Full Code Here

Examples of ch.hortis.sonar.mvn.reports.ReportHandler

    EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(maven.getLogger()));
    boolean hasJavaSources = PomUtils.getJavaSourceFiles( executedProject ).size()>0;
    boolean hasJavaTests = PomUtils.getJavaTestFiles( executedProject ).size()>0;

    for (Report report : Report.getReports()) {
      ReportHandler reportHandler = report.getReportHandler();
      if (reportHandler!=null) {
        if ( (hasJavaSources || reportHandler.executeEvenIfNoJavaSources())
            && (hasJavaTests || reportHandler.executeEvenIfNoJavaTests()) &&
            reportHandler.execute( executedProject )) {
          executeReport(eventMonitor, reportHandler);
        }
      }
    }
  }
View Full Code Here

Examples of ch.hortis.sonar.mvn.reports.ReportHandler

    EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(maven.getLogger()));
    boolean hasJavaSources = PomUtils.getJavaSourceFiles( executedProject ).size()>0;
    boolean hasJavaTests = PomUtils.getJavaTestFiles( executedProject ).size()>0;

    for (Report report : targetReports) {
      ReportHandler reportHandler = report.getReportHandler();
      if (reportHandler!=null) {
        if ((hasJavaSources || reportHandler.executeEvenIfNoJavaSources())
            && (hasJavaTests || reportHandler.executeEvenIfNoJavaTests()) &&
            reportHandler.execute( mavenContext, getLog() ) ) {
          executeReport(eventMonitor, reportHandler);
        }
      }
    }
  }
View Full Code Here

Examples of ch.hortis.sonar.mvn.reports.ReportHandler

    if (!targetDir.exists() && !targetDir.mkdirs()) {
      throw new MojoExecutionException( "Unable to created directory " + targetDir.getPath() );
    }

    for (Report report : targetReports) {
      ReportHandler reportHandler = report.getReportHandler();
      reportHandler.preparePom(executedProject);
    }
    if (executedProject.getReporting() != null) {
      executedProject.getReporting().setPlugins(null);
    }
    //  avoid a bug with maven when artifact versionRange is null
View Full Code Here

Examples of ch.hortis.sonar.mvn.reports.ReportHandler

    EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(maven.getLogger()));
    boolean hasJavaSources = PomUtils.getJavaSourceFiles( executedProject ).size()>0;
    boolean hasJavaTests = PomUtils.getJavaTestFiles( executedProject ).size()>0;

    for (Report report : Report.getReports()) {
      ReportHandler reportHandler = report.getReportHandler();
      if (reportHandler!=null) {
        if ((hasJavaSources || reportHandler.executeEvenIfNoJavaSources())
            && (hasJavaTests || reportHandler.executeEvenIfNoJavaTests()) &&
            reportHandler.execute( this, getLog() ) ) {
          executeReport(eventMonitor, reportHandler);
        }
      }
    }
  }
View Full Code Here

Examples of com.ettrema.http.report.ReportHandler

        handlers.add( new UnlockHandler( resourceHandlerHelper, responseHandler ) );
        handlers.add( new MoveHandler( responseHandler, handlerHelper, resourceHandlerHelper ) );

        // Reports are added by other protocols via addReport
        reports = new HashMap<String, Report>();
        handlers.add( new ReportHandler( responseHandler, resourceHandlerHelper, reports ) );
    }
View Full Code Here

Examples of com.volantis.synergetics.reporting.ReportHandler

                                     target.getParentTransactionID());
                    // we also add, to the map, the class that caused this
                    // event to be fired. This is so OSGi knows what event
                    // subtype to use
                    localMetrics.put(Class.class, target.getProxiedClass());
                    ReportHandler localHandler = target.getReportHandler();
                    if (null != localHandler) {
                        localHandler.report(localMetrics);
                    } else { // we dispatch to the OSGi Event Listeners

                    }
                    localMetrics.clear();
                    return null;
View Full Code Here

Examples of com.volantis.synergetics.reporting.ReportHandler

                    // we also add, to the map, the class that caused this
                    // event to be fired. This is so OSGi knows what event
                    // subtype to use
                    localMetrics.put(Class.class, target.getProxiedClass());

                    ReportHandler localHandler = target.getReportHandler();
                    if (null != localHandler) {
                        localHandler.report(localMetrics);
                    } else { // we dispatch to the OSGi Event Listeners

                    }
                    localMetrics.clear();
                    return null;
View Full Code Here

Examples of com.volantis.synergetics.reporting.ReportHandler

                    // subtype to use
                    localMetrics.put(Class.class, target.getProxiedClass());
                    localMetrics.put(DynamicReport.class,
                                     target.getOptionalConfigurationName());

                    ReportHandler localHandler = target.getReportHandler();
                    if (null != localHandler) {
                        localHandler.report(localMetrics);
                    } else { // we dispatch to the OSGi Event Listeners

                    }
                    localMetrics.clear();
View Full Code Here

Examples of com.volantis.synergetics.reporting.ReportHandler

                            } catch (NoSuchMethodException e) {
                                LOGGER.error("failed-to-create-class",
                                        handlerClass,
                                        e);
                            }
                            ReportHandler reportHandler = null;
                            try {
                                Object[] args = new Object[2];
                                args[0] = buildGenericMap(genericHandler);
                                args[1] = report.getBinding();
                                reportHandler = (ReportHandler) con.newInstance(args);
                            } catch (InstantiationException e) {
                                LOGGER.error("failed-to-load-class",
                                        handlerClass,
                                        e);
                            } catch (IllegalAccessException e) {
                                LOGGER.error("failed-to-load-class",
                                        handlerClass,
                                        e);
                            } catch (InvocationTargetException e) {
                                LOGGER.error("failed-to-load-class",
                                        handlerClass,
                                        e);
                            }
                            handlers.put(report.getBinding(), reportHandler);

                        } catch (Exception e) {
                            LOGGER.error("failed-to-load-class", className);
                        }

                    } else if (report.getSqlHandler() != null) {
                        if (existsDatasourceDefinition(
                                datasourceConfigs, report.getSqlHandler())) {
                            ConnectionStrategy connStrategy =
                                DatasourceManager.getInstance().createConnectionStrategy(
                                        (DatasourceConfiguration) datasourceConfigs.get(
                                                report.getSqlHandler().getDatasourceName()));
                            ReportHandler handler =
                                new JDBCReportHandler(connStrategy, report);
                            handlers.put(report.getBinding(), handler);
                        } else {
                            LOGGER.error("sql-handler-datasource-not-found",
                                    new Object[] {report.getSqlHandler().getDatasourceName(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.