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

Deprecate the any-newer task #17

Merged
merged 3 commits into from
Nov 17, 2013
Merged

Deprecate the any-newer task #17

merged 3 commits into from
Nov 17, 2013

Conversation

tschaub
Copy link
Owner

@tschaub tschaub commented Nov 17, 2013

The difference between newer and any-newer is confusing people. It should be possible to infer which behavior to use.

  • if there is no dest config, run task with src files that are newer than last run
  • if there is a 1:1 mapping between src and dest files, run task with only those pairs where src is newer than dest
  • if there is a many:1 mapping between src and dest files, run task with all src files if any one of them is newer than the dest file

This can be accomplished with a single newer task. The any-newer task can be set as an alias for a while.

For a single src/dest pair, always use all src files if any one is newer than the dest file.
Use the `newer` task instead.  This task now behaves the same way as the old `any-newer` task for many:1 src:dest file mappings.
tschaub added a commit that referenced this pull request Nov 17, 2013
Deprecate the any-newer task.
@tschaub tschaub merged commit daf6720 into master Nov 17, 2013
@tschaub tschaub deleted the single-task branch February 17, 2014 00:23
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.

None yet

1 participant