Package org.apache.maven.plugin.logging

Examples of org.apache.maven.plugin.logging.Log.warn()


        if (output.length() > 0) {
            log.debug(output);
        }
        String errOutput = stderr.getOutput();
        if (errOutput.length() > 0) {
            log.warn(errOutput);
        }
        return generatedFileName;
    }

    protected String removeFileExtension(String name) {
View Full Code Here


        if (!useDot) {
            log.info("DOT generation disabled");
            return null;
        }
        if (this.executable == null || this.executable.length() == 0) {
            log.warn("Parameter <executable/> was not set in the pom.xml.  Skipping conversion.");
            return null;
        }

        String generatedFileName = removeFileExtension(file.getAbsolutePath()) + "." + format;
        Commandline cl = new Commandline();
View Full Code Here

        if (output.length() > 0) {
            log.debug(output);
        }
        String errOutput = stderr.getOutput();
        if (errOutput.length() > 0) {
            log.warn(errOutput);
        }
        return generatedFileName;
    }

    protected String removeFileExtension(String name) {
View Full Code Here

                {
                    Iterator iter = list.iterator();
                    while ( iter.hasNext() )
                    {
                        String failure = (String) iter.next();
                        log.warn( failure );
                    }
                    if ( fail )
                    {
                        throw new MojoExecutionException(
                                                          "Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed." );
View Full Code Here

            output.finish();
        }
        catch (GeneratorException e) {
            if (e.isWarningOnly()) {
                log.warn( e.toString());
            }
            else {
                List<? extends Exception> exceptions = e.getExceptions();
                List<GeneratorException.Type> types = e.getTypes();
View Full Code Here

                List<GeneratorException.Type> types = e.getTypes();

                for (int i=0; i < exceptions.size(); i++) {
                    switch (types.get(i)) {
                        case WARNING:
                            log.warn( exceptions.get(i).toString());
                            break;

                        case ERROR:
                            log.error( "Error: ", exceptions.get(i));
                            break;
View Full Code Here

      classpathElements = project.getTestClasspathElements();
    }

    if (classpathElements == null || classpathElements.isEmpty()) {
      if (log.isWarnEnabled()) {
        log.warn(String.format("The test classpath contained no elements. Consequently no Entities were found."));
      }
      urls = Collections.emptySet();
    } else {
      final Set<URL> mutableUrls = new LinkedHashSet<URL>(classpathElements.size());
      for (final Object o : classpathElements) {
View Full Code Here

              mutableUrls.add(file.toURI().toURL());
            } catch (final MalformedURLException wontHappen) {
              throw (InternalError)new InternalError(String.format("While attempting to convert a file, %s, into a URL, a MalformedURLException was encountered.", file)).initCause(wontHappen);
            }
          } else if (log.isWarnEnabled()) {
            log.warn(String.format("The test classpath element %s could not be read.", file));
          }
        }
      }
      if (mutableUrls.isEmpty()) {
        urls = Collections.emptySet();
View Full Code Here

      } else {
        urls = Collections.unmodifiableSet(mutableUrls);
      }
    }
    if (log.isWarnEnabled() && urls.isEmpty()) {
      log.warn(String.format("No URLs were found from the test classpath (%s).", classpathElements));
    }
    return urls;
  }

  /**
 
View Full Code Here

    // Having scanned the classpaths, get the "index", which is a Map
    // of classnames indexed by annotation classnames.
    final Map<String, Set<String>> ai = db.getAnnotationIndex();
    if (ai == null) {
      if (log.isWarnEnabled()) {
        log.warn("After scanning for Entities, a null annotation index was returned by the AnnotationDB.");
      }
    } else if (ai.isEmpty()) {
      if (log.isWarnEnabled()) {
        log.warn("After scanning for Entities, no annotated Entities were found.");
      }
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.