Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
maven-plugin-api-3.8.6.jar - Plugin API Module
maven-plugin-api-3.8.6.jar is the JAR file for Apache Maven 3.8.6 Plugin API module.
Apache Maven is a software project management and comprehension tool.
JAR File Size and Download Location:
File: 46967 06-06-2022 16:16 lib/maven-plugin-api-3.8.6.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/plugin/logging/SystemStreamLog.java
package org.apache.maven.plugin.logging;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Logger with "standard" output and error output stream.
*
* @author jdcasey
*/
public class SystemStreamLog
implements Log
{
/**
* @see org.apache.maven.plugin.logging.Log#debug(java.lang.CharSequence)
*/
public void debug( CharSequence content )
{
print( "debug", content );
}
/**
* @see org.apache.maven.plugin.logging.Log#debug(java.lang.CharSequence, java.lang.Throwable)
*/
public void debug( CharSequence content, Throwable error )
{
print( "debug", content, error );
}
/**
* @see org.apache.maven.plugin.logging.Log#debug(java.lang.Throwable)
*/
public void debug( Throwable error )
{
print( "debug", error );
}
/**
* @see org.apache.maven.plugin.logging.Log#info(java.lang.CharSequence)
*/
public void info( CharSequence content )
{
print( "info", content );
}
/**
* @see org.apache.maven.plugin.logging.Log#info(java.lang.CharSequence, java.lang.Throwable)
*/
public void info( CharSequence content, Throwable error )
{
print( "info", content, error );
}
/**
* @see org.apache.maven.plugin.logging.Log#info(java.lang.Throwable)
*/
public void info( Throwable error )
{
print( "info", error );
}
/**
* @see org.apache.maven.plugin.logging.Log#warn(java.lang.CharSequence)
*/
public void warn( CharSequence content )
{
print( "warn", content );
}
/**
* @see org.apache.maven.plugin.logging.Log#warn(java.lang.CharSequence, java.lang.Throwable)
*/
public void warn( CharSequence content, Throwable error )
{
print( "warn", content, error );
}
/**
* @see org.apache.maven.plugin.logging.Log#warn(java.lang.Throwable)
*/
public void warn( Throwable error )
{
print( "warn", error );
}
/**
* @see org.apache.maven.plugin.logging.Log#error(java.lang.CharSequence)
*/
public void error( CharSequence content )
{
System.err.println( "[error] " + content.toString() );
}
/**
* @see org.apache.maven.plugin.logging.Log#error(java.lang.CharSequence, java.lang.Throwable)
*/
public void error( CharSequence content, Throwable error )
{
StringWriter sWriter = new StringWriter();
PrintWriter pWriter = new PrintWriter( sWriter );
error.printStackTrace( pWriter );
System.err.println( "[error] " + content.toString() + "\n\n" + sWriter.toString() );
}
/**
* @see org.apache.maven.plugin.logging.Log#error(java.lang.Throwable)
*/
public void error( Throwable error )
{
StringWriter sWriter = new StringWriter();
PrintWriter pWriter = new PrintWriter( sWriter );
error.printStackTrace( pWriter );
System.err.println( "[error] " + sWriter.toString() );
}
/**
* @see org.apache.maven.plugin.logging.Log#isDebugEnabled()
*/
public boolean isDebugEnabled()
{
// TODO Not sure how best to set these for this implementation...
return false;
}
/**
* @see org.apache.maven.plugin.logging.Log#isInfoEnabled()
*/
public boolean isInfoEnabled()
{
return true;
}
/**
* @see org.apache.maven.plugin.logging.Log#isWarnEnabled()
*/
public boolean isWarnEnabled()
{
return true;
}
/**
* @see org.apache.maven.plugin.logging.Log#isErrorEnabled()
*/
public boolean isErrorEnabled()
{
return true;
}
private void print( String prefix, CharSequence content )
{
System.out.println( "[" + prefix + "] " + content.toString() );
}
private void print( String prefix, Throwable error )
{
StringWriter sWriter = new StringWriter();
PrintWriter pWriter = new PrintWriter( sWriter );
error.printStackTrace( pWriter );
System.out.println( "[" + prefix + "] " + sWriter.toString() );
}
private void print( String prefix, CharSequence content, Throwable error )
{
StringWriter sWriter = new StringWriter();
PrintWriter pWriter = new PrintWriter( sWriter );
error.printStackTrace( pWriter );
System.out.println( "[" + prefix + "] " + content.toString() + "\n\n" + sWriter.toString() );
}
}⏎ org/apache/maven/plugin/logging/SystemStreamLog.java
Or download all of them as a single archive file:
File name: maven-plugin-api-3.8.6-src.zip File size: 32096 bytes Release date: 2022-06-06 Download
⇒ maven-resolver-provider-3.8.6.jar - Resolver Provider Module
⇐ maven-model-builder-3.8.6.jar - Model Builder Module
2023-07-11, ∼6767🔥, 0💬
Popular Posts:
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
maven-compat-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Compact module. The JAR file name may ...
JDK 11 java.smartcardio.jmod is the JMOD file for JDK 11 Smartcardio module. JDK 11 Smart Card IO mo...