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

Goal resource should print number of processed files #30

Open
michaldo opened this issue Dec 1, 2015 · 5 comments
Open

Goal resource should print number of processed files #30

michaldo opened this issue Dec 1, 2015 · 5 comments

Comments

@michaldo
Copy link

michaldo commented Dec 1, 2015

Currently goal resource can display only binary output:

[INFO] --- takari-lifecycle-plugin:1.11.11:process-resources (process-resources) @ service1 ---
[INFO] Performing incremental build

or

[INFO] --- takari-lifecycle-plugin:1.11.11:process-resources (process-resources) @ service1 ---
[INFO] Previous incremental build state does not exist, performing full build

But default maven resource plugin prints number of files:

[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ service1 ---
[INFO] Copying 2 resources

@ifedorenko
Copy link
Contributor

Out of curiosity, why do you need to know number of resources processed?

@michaldo
Copy link
Author

michaldo commented Dec 2, 2015

I'm experimenting with incremental build. For goal compile when I modify single source file I can easy read that standard compiler compiles whole sources and takari compiler compiles only affected classes.
For phase process-resources standard plugin always copy whole resources. It wastes a lot of time for hundreds resource files. When I compare takari plugin, the plugin prints that incremental build is done. But I cannot verify number of files processed
Of course I can debug code or analyze file timestamps, but I prefer straightforward solution

@ifedorenko
Copy link
Contributor

There is no easy/straightforward way to implement this message. At least from API point of view, the mojo does not have access to information about number of resources that require processing and total number of resources. We'll need some sort of Observer interface to get this kind of info, but I have no immediate plans to work on this.

@michaldo
Copy link
Author

michaldo commented Dec 3, 2015

I'm confused
I was sure that _incremental_ means it is known which files needs precessing and which don't need. Default maven plugin is stupid and copy all resources and I expected Takari plugin is a bit clever and proccess only files modified since last build
I can't believe Takari resources plugin copy resource files but doesn't know how many

@ifedorenko
Copy link
Contributor

What resources need and do not need processing is determined by lower level incremental build library. That library does not currently provide a way to query number of inputs that require processing and total number of inputs.

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

No branches or pull requests

2 participants