Skip to content

[MNG-4660] Increase usefulness of logging (2)#91

Closed
mthmulders wants to merge 6 commits intoapache:masterfrom
infosupport:more-useful-logging-for-outdated-artifacts-2
Closed

[MNG-4660] Increase usefulness of logging (2)#91
mthmulders wants to merge 6 commits intoapache:masterfrom
infosupport:more-useful-logging-for-outdated-artifacts-2

Conversation

@mthmulders
Copy link
Copy Markdown
Contributor

When the user resumes a build, they could see a message "Packaged artifact is not up-to-date compared to the build output directory". This could even be logged multiple times for one build. It was unclear why it was logged and what a user could do to address it. This test accompanies apache/maven#416.

@mthmulders mthmulders force-pushed the more-useful-logging-for-outdated-artifacts-2 branch from ea52e0d to 6add0b7 Compare December 24, 2020 20:53
verifier3.verifyTextInLog( "File 'module-a/target/classes/example.properties' is more recent than the packaged artifact for 'module-a'; using 'module-a/target/classes' instead" );
Path path = Paths.get( "module-a", "target", "classes", "example.properties" );
verifier3.verifyTextInLog( "File '" + path.toString() + "' is more recent than the packaged artifact for 'module-a'; "
+ "using 'module-a/target/classes' instead" );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line portable too?

{
verifier3.verifyTextInLog( "File 'module-a/target/classes/example.properties' is more recent than the packaged artifact for 'module-a'; using 'module-a/target/classes' instead" );
Path path = Paths.get( "module-a", "target", "classes", "example.properties" );
verifier3.verifyTextInLog( "File '" + path.toString() + "' is more recent than the packaged artifact for 'module-a'; "
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the #toString() is redundant. It will be invoked automatically.

@asfgit asfgit closed this in 5a8858f Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants