List of usage examples for org.apache.maven.plugin.logging Log debug
void debug(Throwable error);
From source file:com.carrotgarden.maven.aws.util.Util.java
License:BSD License
public static Properties propsLoad(final Log log, final File file) throws Exception { final Properties props = new Properties(); if (file == null || !file.exists()) { log.debug("file == null || !file.exists()"); return props; }/*from w w w.j ava2 s . c om*/ final Reader reader = new FileReader(file); props.load(reader); reader.close(); return props; }
From source file:com.carrotgarden.maven.aws.util.Util.java
License:BSD License
public static void propsSave(final Log log, final Properties props, final File file) throws Exception { if (props == null || file == null) { log.debug("props == null || file == null"); return;//from w w w . j a v a 2 s. co m } final File folder = file.getParentFile(); if (!folder.exists()) { folder.mkdirs(); } final Writer writer = new FileWriter(file); props.store(writer, null); }
From source file:com.caucho.maven.AbstractDeployMojo.java
License:Open Source License
protected void printParameters() { Log log = getLog(); log.debug(getMojoName() + " parameters"); log.debug(" server = " + _server); log.debug(" port = " + _port); log.debug(" user = " + _user); log.debug(" password = " + _password); log.debug(" commitMessage = " + _message); log.debug(" stage = " + _stage); log.debug(" virtualHost = " + _virtualHost); log.debug(" contextRoot = " + _contextRoot); log.debug(" version = " + _version); }
From source file:com.caucho.maven.MavenCopyTag.java
License:Open Source License
@Override protected void printParameters() { super.printParameters(); Log log = getLog(); log.debug(" sourceStage = " + _sourceStage); log.debug(" sourceVirtualHost = " + _sourceVirtualHost); log.debug(" sourceContextRoot = " + _sourceContextRoot); log.debug(" sourceVersion = " + _sourceVersion); log.debug(" tag = " + _tag); log.debug(" sourceTag = " + _sourceTag); }
From source file:com.caucho.maven.MavenDeleteTag.java
License:Open Source License
@Override protected void printParameters() { super.printParameters(); Log log = getLog(); log.debug(" tag = " + _tag); }
From source file:com.caucho.maven.MavenQueryTags.java
License:Open Source License
@Override protected void printParameters() { super.printParameters(); Log log = getLog(); log.debug(" pattern = " + _pattern); }
From source file:com.caucho.maven.MavenQueryTags.java
License:Open Source License
/** * Executes the maven resin:run task/*ww w . j a va 2s .c o m*/ */ @Override protected void doTask(WebAppDeployClient client) throws MojoExecutionException { Log log = getLog(); String pattern = _pattern; if (pattern == null) { if (getContextRoot() == null) setContextRoot(".*"); CommitBuilder commit = buildVersionedWarTag(); pattern = commit.getId(); } log.debug("Query pattern = '" + pattern + "'"); TagResult[] tags = client.queryTags(pattern); for (TagResult tag : tags) { if (_printValues) log.info(tag.getTag() + " -> " + tag.getRoot()); else log.info(tag.getTag()); } }
From source file:com.caucho.maven.MavenUploadWar.java
License:Open Source License
@Override protected void printParameters() { super.printParameters(); Log log = getLog(); log.debug(" warFile = " + _warFile); log.debug(" archive = " + _archive); log.debug(" writeHead = " + _writeHead); }
From source file:com.codecrate.webstart.AntToMavenLogger.java
License:Apache License
private void log(BuildEvent event) { int priority = event.getPriority(); Log log = mojo.getLog(); switch (priority) { case Project.MSG_ERR: log.error(event.getMessage());/* w w w . java 2 s . c om*/ break; case Project.MSG_WARN: log.warn(event.getMessage()); break; case Project.MSG_INFO: log.info(event.getMessage()); break; case Project.MSG_VERBOSE: log.debug(event.getMessage()); break; case Project.MSG_DEBUG: log.debug(event.getMessage()); break; default: log.info(event.getMessage()); break; } }
From source file:com.codetroopers.maven.mergeprops.MergeProperty.java
License:Apache License
static boolean checkKeys(final String propertyFileName, final String[] excludeKeyCheck, final String fileName, final Log log) throws MojoExecutionException, MojoFailureException { if (propertyFileName == null) { throw new NullPointerException("PropertyFileName can not be null ! "); }//from ww w. java 2s. c o m // Do not reuse the existing inputstream as the load method forwards it and there is no reset() in FIS String prefixToConsider = extractFilePrefix(propertyFileName); if (log.isDebugEnabled()) { log.debug("Prefix to consider : " + prefixToConsider); } if (excludeKeyCheck != null) { for (String s : excludeKeyCheck) { if (prefixToConsider.matches(s)) { log.info("Found propertyFileName without prefix checking, including... [" + propertyFileName + "]"); return true; } } } Properties props = new Properties(); InputStream input = null; try { input = new FileInputStream(fileName); props.load(input); return !containsInvalidPrefix(prefixToConsider, props); } catch (IOException e) { throw new MojoExecutionException("Could not read from file: " + propertyFileName, e); } finally { if (input != null) { try { input.close(); } catch (IOException ioe) { //do nothing } } } }