Java Code Examples for org.apache.tools.ant.Project#MSG_VERBOSE

The following examples show how to use org.apache.tools.ant.Project#MSG_VERBOSE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AntHandler.java    From scriptella-etl with Apache License 2.0 6 votes vote down vote up
/**
 * Converts JUL level to appropriate Ant message priority
 *
 * @param level JUL level
 * @return Ant message priority
 */
private int convert(Level level) {
    final int lev = level.intValue();
    if (lev >= Level.SEVERE.intValue()) {
        return Project.MSG_ERR;
    }
    if (lev >= Level.WARNING.intValue()) {
        return Project.MSG_WARN;
    }
    if (lev >= Level.INFO.intValue()) {
        return Project.MSG_INFO;
    }
    if (debug) {
        return Project.MSG_INFO;
    }
    if (lev >= Level.FINE.intValue()) {
        return Project.MSG_VERBOSE;
    }
    if (lev > Level.OFF.intValue()) {
        return Project.MSG_DEBUG;
    }
    return -1;
}
 
Example 2
Source File: TaskLogger.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
protected int getMessageLevel( LogRecord record )
{
	Level level = record.getLevel( );
	if ( level.equals( Level.SEVERE ) )
	{
		return Project.MSG_ERR;
	}
	if ( level.equals( Level.WARNING ) )
	{
		return Project.MSG_WARN;
	}
	if ( level.equals( Level.INFO ) )
	{
		return Project.MSG_INFO;
	}
	return Project.MSG_VERBOSE;
}
 
Example 3
Source File: LicenseCheckTask.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
public void setVerbose(boolean verbose) {
  verboseLevel = (verbose ? Project.MSG_INFO : Project.MSG_VERBOSE);
}
 
Example 4
Source File: LibVersionsCheckTask.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
public void setVerbose(boolean verbose) {
  verboseLevel = (verbose ? Project.MSG_INFO : Project.MSG_VERBOSE);
}
 
Example 5
Source File: GetMavenDependenciesTask.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
public void setVerbose(boolean verbose) {
  verboseLevel = (verbose ? Project.MSG_VERBOSE : Project.MSG_INFO);
}