本文整理了Java中org.codehaus.plexus.logging.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:org.codehaus.plexus.logging.Logger
类名称:Logger
方法名:debug
暂无
代码示例来源:origin: apache/maven
public void notifyFieldChangeUsingSetter( String fieldName, Object value, Object target )
{
if ( logger.isDebugEnabled() )
{
logger.debug( " (s) " + fieldName + " = " + toString( value ) );
}
}
代码示例来源:origin: apache/maven
public void notifyFieldChangeUsingReflection( String fieldName, Object value, Object target )
{
if ( logger.isDebugEnabled() )
{
logger.debug( " (f) " + fieldName + " = " + toString( value ) );
}
}
代码示例来源:origin: apache/maven
public void debugReactorPlan( ProjectBuildList projectBuilds )
{
if ( !logger.isDebugEnabled() )
{
return;
}
logger.debug( "=== REACTOR BUILD PLAN ================================================" );
for ( Iterator<ProjectSegment> it = projectBuilds.iterator(); it.hasNext(); )
{
ProjectSegment projectBuild = it.next();
logger.debug( "Project: " + projectBuild.getProject().getId() );
logger.debug( "Tasks: " + projectBuild.getTaskSegment().getTasks() );
logger.debug( "Style: " + ( projectBuild.getTaskSegment().isAggregating() ? "Aggregating" : "Regular" ) );
if ( it.hasNext() )
{
logger.debug( "-----------------------------------------------------------------------" );
}
}
logger.debug( "=======================================================================" );
}
代码示例来源:origin: apache/maven
private ClassRealm newRealm( String id )
{
synchronized ( world )
{
String realmId = id;
Random random = new Random();
while ( true )
{
try
{
ClassRealm classRealm = world.newRealm( realmId, null );
if ( logger.isDebugEnabled() )
{
logger.debug( "Created new class realm " + realmId );
}
return classRealm;
}
catch ( DuplicateRealmException e )
{
realmId = id + '-' + random.nextInt();
}
}
}
}
代码示例来源:origin: apache/maven
public void debugProjectPlan( MavenProject currentProject, MavenExecutionPlan executionPlan )
{
if ( !logger.isDebugEnabled() )
{
return;
}
logger.debug( "=== PROJECT BUILD PLAN ================================================" );
logger.debug( "Project: " + BuilderCommon.getKey( currentProject ) );
debugDependencyRequirements( executionPlan.getMojoExecutions() );
logger.debug( "Repositories (dependencies): " + currentProject.getRemoteProjectRepositories() );
logger.debug( "Repositories (plugins) : " + currentProject.getRemotePluginRepositories() );
for ( ExecutionPlanItem mojoExecution : executionPlan )
{
debugMojoExecution( mojoExecution.getMojoExecution() );
}
logger.debug( "=======================================================================" );
}
代码示例来源:origin: org.apache.maven/maven-project
private void logMissingSiblingProjectArtifact( Artifact artifact )
{
if ( logger == null || !logger.isDebugEnabled() )
{
return;
}
if ( logger.isDebugEnabled() )
{
StringBuffer message = new StringBuffer();
message.append( "WARNING: A dependency of the current project (or of one the plugins used in its build) was found in the reactor, " );
message.append( "\nbut had not been built at the time it was requested. It will be resolved from the repository instead." );
message.append( "\n\nCurrent Project: " ).append( getName() );
message.append( "\nRequested Dependency: " ).append( artifact.getId() );
message.append( "\n\nNOTE: You may need to run this build to the 'compile' lifecycle phase, or farther, in order to build the dependency artifact." );
message.append( "\n" );
logger.debug( message.toString() );
}
else
{
logger.warn( "Requested project artifact: " + artifact.getId() + " is not available at this time. Resolving externally." );
}
}
代码示例来源:origin: apache/maven
@Override
public void metadataResolved( RepositoryEvent event )
{
Exception e = event.getException();
if ( e != null )
{
if ( e instanceof MetadataNotFoundException )
{
logger.debug( e.getMessage() );
}
else if ( logger.isDebugEnabled() )
{
logger.warn( e.getMessage(), e );
}
else
{
logger.warn( e.getMessage() );
}
}
}
代码示例来源:origin: apache/maven
private Set<String> populateRealm( ClassRealm classRealm, List<ClassRealmConstituent> constituents )
{
Set<String> includedIds = new LinkedHashSet<>();
if ( logger.isDebugEnabled() )
{
logger.debug( "Populating class realm " + classRealm.getId() );
}
for ( ClassRealmConstituent constituent : constituents )
{
File file = constituent.getFile();
String id = getId( constituent );
includedIds.add( id );
if ( logger.isDebugEnabled() )
{
logger.debug( " Included: " + id );
}
try
{
classRealm.addURL( file.toURI().toURL() );
}
catch ( MalformedURLException e )
{
// Not going to happen
logger.error( e.getMessage(), e );
}
}
return includedIds;
}
代码示例来源:origin: apache/maven
if ( logger.isDebugEnabled() )
logger.debug( "Importing foreign packages into class realm " + classRealm.getId() );
String imp = entry.getKey();
if ( logger.isDebugEnabled() )
logger.debug( " Imported: " + imp + " < " + getId( importedRealm ) );
if ( logger.isDebugEnabled() )
logger.debug( "Importing parent packages into class realm " + classRealm.getId() );
if ( logger.isDebugEnabled() )
logger.debug( " Imported: " + imp + " < " + getId( classRealm.getParentClassLoader() ) );
代码示例来源:origin: apache/maven
public Set<Plugin> getPluginsBoundByDefaultToAllLifecycles( String packaging )
if ( logger.isDebugEnabled() )
logger.debug( "Looking up lifecycle mappings for packaging " + packaging + " from "
+ Thread.currentThread().getContextClassLoader() );
代码示例来源:origin: apache/maven
if ( logger.isDebugEnabled() )
logger.debug( "Lifecycle " + lifecycle );
代码示例来源:origin: org.apache.maven/maven-project
if ( getLogger().isDebugEnabled() )
getLogger().debug( "Importing managed dependencies for " + dep.toString() );
代码示例来源:origin: apache/maven
public PluginVersionResult resolve( PluginVersionRequest request )
throws PluginVersionResolutionException
{
PluginVersionResult result = resolveFromProject( request );
if ( result == null )
{
result = resolveFromRepository( request );
if ( logger.isDebugEnabled() )
{
logger.debug( "Resolved plugin version for " + request.getGroupId() + ":" + request.getArtifactId()
+ " to " + result.getVersion() + " from repository " + result.getRepository() );
}
}
else if ( logger.isDebugEnabled() )
{
logger.debug( "Resolved plugin version for " + request.getGroupId() + ":" + request.getArtifactId() + " to "
+ result.getVersion() + " from POM " + request.getPom() );
}
return result;
}
代码示例来源:origin: apache/maven
if ( logger.isDebugEnabled() )
logger.debug( " Excluded: " + id );
代码示例来源:origin: org.apache.maven/maven-project
if ( getLogger().isDebugEnabled() )
getLogger().debug( "Adding managed dependencies for " + projectId );
d.getClassifier(), d.getScope(),
d.isOptional() );
if ( getLogger().isDebugEnabled() )
getLogger().debug( " " + artifact );
代码示例来源:origin: apache/maven
if ( getLogger().isDebugEnabled() )
getLogger().debug(
"Skipping update check for " + artifact + " (" + file + ") from " + repository.getId() + " ("
+ repository.getUrl() + ")" );
if ( getLogger().isDebugEnabled() )
getLogger().debug(
"Determining update check for " + artifact + " (" + file + ") from " + repository.getId() + " ("
+ repository.getUrl() + ")" );
代码示例来源:origin: apache/maven
if ( logger.isDebugEnabled() )
logger.debug( "Extension realms for project " + model.getId() + ": (none)" );
if ( logger.isDebugEnabled() )
logger.debug( "Extension realms for project " + model.getId() + ": " + extensionRealms );
代码示例来源:origin: apache/maven
if ( logger.isDebugEnabled() )
logger.debug( "Configuring mojo " + mojoDescriptor.getId() + " from plugin realm " + pluginRealm );
代码示例来源:origin: apache/maven
public PluginPrefixResult resolve( PluginPrefixRequest request )
throws NoPluginFoundForPrefixException
{
logger.debug( "Resolving plugin prefix " + request.getPrefix() + " from " + request.getPluginGroups() );
PluginPrefixResult result = resolveFromProject( request );
if ( result == null )
{
result = resolveFromRepository( request );
if ( result == null )
{
throw new NoPluginFoundForPrefixException( request.getPrefix(), request.getPluginGroups(),
request.getRepositorySession().getLocalRepository(),
request.getRepositories() );
}
else if ( logger.isDebugEnabled() )
{
logger.debug( "Resolved plugin prefix " + request.getPrefix() + " to " + result.getGroupId() + ":"
+ result.getArtifactId() + " from repository "
+ ( result.getRepository() != null ? result.getRepository().getId() : "null" ) );
}
}
else if ( logger.isDebugEnabled() )
{
logger.debug( "Resolved plugin prefix " + request.getPrefix() + " to " + result.getGroupId() + ":"
+ result.getArtifactId() + " from POM " + request.getPom() );
}
return result;
}
代码示例来源:origin: apache/maven
if ( getLogger().isDebugEnabled() )
getLogger().debug(
"Skipping update check for " + metadata.getKey() + " (" + file + ") from " + repository.getId()
+ " (" + repository.getUrl() + ")" );
if ( getLogger().isDebugEnabled() )
getLogger().debug(
"Determining update check for " + metadata.getKey() + " (" + file + ") from " + repository.getId()
+ " (" + repository.getUrl() + ")" );
内容来源于网络,如有侵权,请联系作者删除!