Package org.apache.maven.plugin.logging

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


                {
                    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


    Properties props = new Properties();
    Log log = getLog();
    if (!targetDirectory.exists()) {
      targetDirectory.mkdirs();
    } else if (!targetDirectory.isDirectory()) {
      log.warn("Something strange here as the "
          + "supposedly target directory is not a directory.");
      return props;
    }

    File cacheFile = new File(targetDirectory, CACHE_PROPERTIES_FILENAME);
View Full Code Here

    }

    try {
      props.load(new BufferedInputStream(new FileInputStream(cacheFile)));
    } catch (FileNotFoundException e) {
      log.warn("Cannot load file hash cache properties file", e);
    } catch (IOException e) {
      log.warn("Cannot load file hash cache properties file", e);
    }
    return props;
  }
View Full Code Here

    try {
      props.load(new BufferedInputStream(new FileInputStream(cacheFile)));
    } catch (FileNotFoundException e) {
      log.warn("Cannot load file hash cache properties file", e);
    } catch (IOException e) {
      log.warn("Cannot load file hash cache properties file", e);
    }
    return props;
  }

  /**
 
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

                log.info("'dot -?' execution failed so 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;
    }

    private int dotHelpExitCode() throws CommandLineException {
View Full Code Here

                log.info("'dot -?' execution failed so 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;
    }

    private int dotHelpExitCode() throws CommandLineException {
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.