Codota Logo
MavenExternalReportFactory
Code IndexAdd Codota to your IDE (free)

How to use
MavenExternalReportFactory
in
de.smartics.maven.util.report

Best Java code snippets using de.smartics.maven.util.report.MavenExternalReportFactory (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: de.smartics.util/smartics-maven-utils

/**
 * Default constructor.
 *
 * @param log the Maven logger to use.
 * @param project the Maven project.
 * @param reportRelDir the project's relative path within the project.
 * @throws IllegalArgumentException if <code>project</code> is
 *           <code>null</code> or <code>reportRelDir</code> is
 *           <code>null</code> or contains only whitespaces.
 */
public MavenExternalReportFactory(final Log log, final MavenProject project,
  final String reportRelDir) throws IllegalArgumentException
{
 checkArguments(project, reportRelDir);
 this.log = log;
 this.project = project;
 this.upPath = PathUtils.getUpPath(reportRelDir);
}
origin: de.smartics.util/smartics-maven-utils

private static String getPathFragment(final String relativePathBase)
{
 return isNotCurrentDir(relativePathBase) ? relativePathBase + '/' : "";
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

/**
 * {@inheritDoc}
 * <p>
 * Configures the plugin logger.
 * </p>
 *
 * @see org.apache.maven.reporting.AbstractMavenReport#executeReport(java.util.Locale)
 */
@Override
protected void executeReport(final Locale locale) throws MavenReportException
{
 super.executeReport(locale);
 final ExternalReportFactory factory =
   new MavenExternalReportFactory(project, "");
 reports = new ExternalReportReferences(factory);
 addJxrReports();
 addJavadocReports();
 addSurefireReport();
 addCoberturaReport();
 if (presentJUnitReport)
 {
  junitManager = new DirectoryJUnitTestCaseManager(junitReportLocation);
 }
}
origin: de.smartics.util/smartics-maven-utils

private String createRelativeReportLocationLink(final ReportId reportId,
  final LinkConstructorStrategy strategy)
{
 final LinkConstructorStrategyConfig config = strategy.getConfig();
 final File reportLocation = config.getReportLocation();
 final String reportArtifactId = reportId.getReportArtifactId();
 final String location;
 if (reportLocation.exists() || isReportPluginRegistered(reportArtifactId))
 {
  location = calcRelativePath(reportLocation);
 }
 else
 {
  location = null;
  if (log != null && log.isWarnEnabled())
  {
   log.warn("Cannot locate report of '" + reportArtifactId
        + "'. Disabling references to that report.");
  }
 }
 return location;
}
origin: de.smartics.util/smartics-maven-utils

/**
 * {@inheritDoc}
 */
public ExternalReport createExternalReport(final ReportId reportId,
  final LinkConstructorStrategy strategy)
{
 if (reportId == null)
 {
  throw new IllegalArgumentException("The report ID is required.");
 }
 if (strategy == null)
 {
  throw new IllegalArgumentException(
    "The link construction strategy is required.");
 }
 final String reportBasePath =
   createRelativeReportLocationLink(reportId, strategy);
 if (reportBasePath != null)
 {
  return new ExternalReport(reportId, reportBasePath, strategy);
 }
 else
 {
  return null;
 }
}
origin: de.smartics.util/smartics-maven-utils

private String calcRelativePath(final File reportLocation)
{
 final String reportBaseDir = project.getReporting().getOutputDirectory();
 final String reportLocationAbsolutePath = reportLocation.getAbsolutePath();
 final String relativePathBase;
 if (reportLocationAbsolutePath.contains(".."))
 {
  relativePathBase = ".."; // Fix for BUG 622: Referencing Aggregate Reports
 }
 else
 {
  relativePathBase =
    PathTool.getRelativePath(reportBaseDir, reportLocationAbsolutePath);
 }
 final String relativePath =
   upPath + '/' + (getPathFragment(relativePathBase))
     + reportLocation.getName();
 return relativePath;
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

/**
 * {@inheritDoc}
 * <p>
 * Configures the plugin logger.
 * </p>
 *
 * @see org.apache.maven.reporting.AbstractMavenReport#executeReport(java.util.Locale)
 */
@Override
protected void executeReport(final Locale locale) throws MavenReportException
{
 super.executeReport(locale);
 final ExternalReportFactory factory =
   new MavenExternalReportFactory(project, "");
 reports = new ExternalReportReferences(factory);
 addJxrReports();
 addJavadocReports();
 addSurefireReport();
 addCoberturaReport();
 if (presentJUnitReport)
 {
  junitManager = new DirectoryJUnitTestCaseManager(junitReportLocation);
 }
}
de.smartics.maven.util.reportMavenExternalReportFactory

Javadoc

Factory to create external reports within a Maven project.

Most used methods

  • <init>
    Convenience constructor using no logging.
  • calcRelativePath
  • checkArguments
  • createRelativeReportLocationLink
  • getPathFragment
  • isNotCurrentDir
  • isReportPluginRegistered

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now