Refine search
@Override public void execute() throws MojoExecutionException { final Log log = getLog(); try { if (log.isDebugEnabled()) { log.debug("classPath: " + classPath); log.debug("classPaths: " + Arrays.deepToString(classPaths)); log.debug("buildPath: " + buildPath); log.debug("buildPaths: " + Arrays.deepToString(buildPaths)); log.debug("buildResource: " + buildResource); if (log.isDebugEnabled()) { log.debug("outputFiles: " + Arrays.deepToString(outputFiles));
if (getLog().isDebugEnabled()) { getLog().debug(String.format("Collecting descendants of %s", project.getName())); mpp = mpp.getCanonicalFile(); if (mpp.compareTo(mod.getBasedir()) == 0 && descendants.add(mod) && getLog().isDebugEnabled()) { getLog().debug(String.format("Descendant module %s added", mod.getName())); if (getLog().isDebugEnabled()) { getLog().debug("Unable to determine module path", ex); for (MavenProject p : getReactorProjects()) { if (project.equals(p.getParent()) || descendants.contains(p.getParent())) { if (descendants.add(p) && getLog().isDebugEnabled()) { getLog().debug(String.format("Descendant %s added", p.getName())); if (p.getModules() != null && p.getModules().contains(modTest.getName()) && descendants.add(modTest) && getLog().isDebugEnabled()) { getLog().debug(String.format("Descendant %s added", modTest.getName())); if (getLog().isDebugEnabled()) { getLog().debug("Unable to determine module path", ex); if (descendants.add(addedDescendant) && getLog().isDebugEnabled()) { getLog().debug(String.format("Descendant module %s added", addedDescendant.getName())); if (getLog().isDebugEnabled()) { getLog().debug(String.format("%s has %d children", project, descendants.size()));
if (getLog().isDebugEnabled()) { getLog().debug(returnEx); if (getLog().isDebugEnabled()) { getLog().debug(msg, returnEx);
if (getLog().isDebugEnabled()) { getLog().debug(exCol);
if (getLog().isDebugEnabled()) { getLog().debug("Database connection error", ex);
throw new MojoExecutionException("One or more exceptions occurred during dependency-check analysis", exCol); } else { getLog().debug("Error writing the report", ex); if (getLog().isDebugEnabled()) { getLog().debug("Database connection error", ex);
result = artifactResolver.resolveArtifact(buildingRequest, coordinate).getArtifact(); } catch (ArtifactResolverException ex) { getLog().debug(String.format("Aggregate : %s", aggregate)); boolean addException = true; if (!aggregate || addReactorDependency(engine, dependencyNode.getArtifact())) { getLog().debug(String.format("Adding project reference %s on dependency %s", project.getName(), d.getDisplayFileName())); } else if (getLog().isDebugEnabled()) { final String msg = String.format("More than 1 dependency was identified in first pass scan of '%s' in project %s", dependencyNode.getArtifact().getId(), project.getName()); getLog().debug(msg);
private void logResolved(ArtifactResult artifactResult) { if (log.isDebugEnabled()) { log.debug("Resolved artifact: " + artifactResult); } } }
} catch (IOException ex) { getLog().warn("Unable to load the dependency-check maven mojo.properties file."); if (getLog().isDebugEnabled()) { getLog().debug("", ex); mojoProperties.close(); } catch (IOException ex) { if (getLog().isDebugEnabled()) { getLog().debug("", ex);
protected Model modelFromNativePom(Log log) throws MojoExecutionException, MojoFailureException { Map<String, ModelSource> options = new HashMap<String, ModelSource>(); options.put(ModelProcessor.SOURCE, new FileModelSource(nativePom)); assert modelManager != null; try { ModelReader reader = modelManager.getReaderFor(options); if (reader == null) { throw new MojoExecutionException("no model reader found for " + nativePom); } if (log.isDebugEnabled()) { log.debug("Parsing native pom " + nativePom); } return reader.read(nativePom, options); } catch (IOException e) { throw new MojoFailureException("error parsing " + nativePom, e); } } }
Model model = project.getModel(); if (log.isDebugEnabled()) { log.debug("Executing task '" + taskId + "' for model: " + model.getId()); log.debug("Executing task: " + task.getId());
else if (getLog().isDebugEnabled()) getLog().debug("instrumented: " + resource.getName());
public void debug( CharSequence content, Throwable error ) { if ( mojoLogger.isDebugEnabled() ) { mojoLogger.debug( content, error ); } }
@Override public void debug(Throwable error) { if (this.log.isDebugEnabled()) { this.log.debug(error); } }
public void debug(String msg, Throwable t) { if (mavenLog.isDebugEnabled()) { mavenLog.debug(msg, t); } }
/** * {@inheritDoc} */ @Override public void generatedFile(final String fileName, final int current, final int total) { if (log.isDebugEnabled()) { log.debug("Processing file [" + current + "/" + total + "]: " + fileName); } }
@Override public void debug(CharSequence content) { if (this.log.isDebugEnabled()) { this.log.debug(wrapContent(content)); } }
@Override public void debug(CharSequence content, Throwable error) { if (this.log.isDebugEnabled()) { this.log.debug(wrapContent(content), error); } }
public void debug(String format, Object arg) { if (mavenLog.isDebugEnabled()) { mavenLog.debug(msgFmt(format, arg)); } }
@Override public void debug(String format, Object arg) { if (log.isDebugEnabled()) log.debug(format(format, arg).getMessage()); }