gpt4 book ai didi

maven-2 - Maven调试输出: What does (f) mean?

转载 作者:行者123 更新时间:2023-12-02 18:39:08 24 4
gpt4 key购买 nike

当您使用 -X 标志运行 Maven 2 并观察它配置插件时,您可能会看到如下输出:

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.3:clean' -->
[DEBUG] (f) directory = e:\projects\foobar\target
[DEBUG] (f) excludeDefaultDirectories = false
[DEBUG] (f) failOnError = true
[DEBUG] (s) directory = .
[DEBUG] (s) includes = [**/*~]
[DEBUG] (f) filesets = [file set: . (included: [**/*~], excluded: [])]
[DEBUG] (f) followSymLinks = false
[DEBUG] (f) outputDirectory = e:\projects\foobar\target\classes
[DEBUG] (f) project = MavenProject: foobar:foobar:1.0-SNAPSHOT @ e:\projects\foobar\pom.xml
[DEBUG] (f) reportDirectory = e:\projects\foobar\target\site
[DEBUG] (f) skip = false
[DEBUG] (f) testOutputDirectory = e:\projects\foobar\target\test-classes
[DEBUG] -- end configuration --

(f) 和 (s) 有什么区别?

最佳答案

有趣的问题。我从来没有关注过这个小细节,也找不到任何关于它的文档。所以我查找了来源,这就是我们在 o.a.m.p.DebugConfigurationListener 中看到的内容(来自 Maven 核心):

public void notifyFieldChangeUsingSetter( String fieldName, Object value, Object target )
{
if ( logger.isDebugEnabled() )
{
logger.debug( " (s) " + fieldName + " = " + toString( value ) );
}
}

public void notifyFieldChangeUsingReflection( String fieldName, Object value, Object target )
{
if ( logger.isDebugEnabled() )
{
logger.debug( " (f) " + fieldName + " = " + toString( value ) );
}
}

现在(f)和(s)之间的区别应该是不言自明的(叹气)。

关于maven-2 - Maven调试输出: What does (f) mean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2022154/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com