Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify "Compiling" info message: display relative path #250

Merged
merged 2 commits into from
Dec 15, 2022
Merged

Conversation

hboutemy
Copy link
Member

simplify current info message

[INFO] Compiling 29 source files to /full/path/to/project/which/is/very/noisy/target/test-classes

by replacing full path with relative to basedir:

[INFO] Compiling 29 source files to target/test-classes

getLogger().info( "Compiling " + sourceFiles.length + " " +
"source file" + ( sourceFiles.length == 1 ? "" : "s" ) +
" to " + destinationDir.getAbsolutePath() );
" to " + to );
Copy link
Contributor

Choose a reason for hiding this comment

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

Could these duplications be avoided?

Copy link
Member

Choose a reason for hiding this comment

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

Could these duplications be avoided?

?? not sure to understand your concern?

Copy link
Member Author

@hboutemy hboutemy Dec 15, 2022

Choose a reason for hiding this comment

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

you mean create a logCompiling() method in AbstractCompiler for logging, and have plexus compilers use this method?

https://codehaus-plexus.github.io/plexus-compiler/plexus-compiler-api/apidocs/org/codehaus/plexus/compiler/AbstractCompiler.html

Copy link
Contributor

Choose a reason for hiding this comment

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

to and message logged/being output are calculated twice (Javac, AspecJCompiler) in the same way.

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea, done in 37f6843

Copy link
Contributor

Choose a reason for hiding this comment

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

Great!

@hboutemy hboutemy merged commit dcac4ea into master Dec 15, 2022
@hboutemy hboutemy deleted the relative branch December 15, 2022 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants