Package org.apache.maven.plugin.logging

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


      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.");
      }
    } else {
     
      final Map<String, Set<String>> propertyNameIndex = new HashMap<String, Set<String>>();
     
View Full Code Here


        }
       
        final Map<String, String> propertyNames = this.getPropertyNames();
        if (propertyNames == null) {
          if (log.isWarnEnabled()) {
            log.warn(String.format("Property names were never initialized; assigning default property name (%s) to class name %s.", propertyName, className));
          }
        } else if (propertyNames.isEmpty()) {
          if (log.isWarnEnabled()) {
            log.warn(String.format("Property names were initialized to the empty set; assigning default property name (%s) to class name %s.", propertyName, className));
          }
View Full Code Here

          if (log.isWarnEnabled()) {
            log.warn(String.format("Property names were never initialized; assigning default property name (%s) to class name %s.", propertyName, className));
          }
        } else if (propertyNames.isEmpty()) {
          if (log.isWarnEnabled()) {
            log.warn(String.format("Property names were initialized to the empty set; assigning default property name (%s) to class name %s.", propertyName, className));
          }
        } else {
          propertyName = propertyNames.get(packageName);
          while (propertyName == null && packageName != null && !packageName.isEmpty()) {
            final int dotIndex = Math.max(0, packageName.lastIndexOf('.'));
View Full Code Here

                // if we found anything
                if ( !list.isEmpty() )
                {
                    for ( String failure  : list )
                    {
                        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

        log.debug( text, e );
        log.debug( e );
        log.info( text );
        log.info( text, e );
        log.info( e );
        log.warn( text );
        log.warn( text, e );
        log.warn( e );
        log.error( text );
        log.error( text, e );
        log.error( e );
View Full Code Here

        log.debug( e );
        log.info( text );
        log.info( text, e );
        log.info( e );
        log.warn( text );
        log.warn( text, e );
        log.warn( e );
        log.error( text );
        log.error( text, e );
        log.error( e );
        log.isDebugEnabled();
View Full Code Here

        log.info( text );
        log.info( text, e );
        log.info( e );
        log.warn( text );
        log.warn( text, e );
        log.warn( e );
        log.error( text );
        log.error( text, e );
        log.error( e );
        log.isDebugEnabled();
        log.isErrorEnabled();
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

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.