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

Skip if output is younger than input #137

Open
mkarg opened this issue Jun 11, 2019 · 0 comments
Open

Skip if output is younger than input #137

mkarg opened this issue Jun 11, 2019 · 0 comments

Comments

@mkarg
Copy link
Contributor

mkarg commented Jun 11, 2019

Just like the compiler plugin works, the exec plugin should skip execution in case the output is younger than the input.

As the exec plugin per se is unaware what the input and output to the execution is, a smart solution could be to configure it with feasible default:

  • holds patterns for input files, and defaults to ${project.build.sourceDirectory}.
  • holds patterns for output files, and defaults to ${project.build.outputDirectory}.

As a result:

  • When working with a plain Java project, no configuration is needed; the performance optization is granted for free.
  • When backwards compatibility is wanted, deactivate the optimization using empty and .
  • In all other case, provide feasible regex patters for and to safely detect only those files that play a role.
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

1 participant