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

add MergeStrategy, see #36 #37

Merged
merged 3 commits into from
Apr 23, 2012
Merged

add MergeStrategy, see #36 #37

merged 3 commits into from
Apr 23, 2012

Conversation

rkuhn
Copy link

@rkuhn rkuhn commented Apr 21, 2012

  • split out unzipped JARs into different subdirectories under tempDir to
    keep duplicates
  • add MergeStrategy, which is (tempDir, Seq[File]) => File
  • subject all duplicate entries to the merge strategy as obtained from
    the mergeStrategy setting (which is String => MergeStrategy)
  • replace previous handling of META-INF/services/* with
    MergeStrategy.uniqueLines
  • set default strategy for "reference.conf" to MergeStrategy.append
  • everything else defaults to MergeStrategy.error
  • also add pickFirst/pickLast strategies

- split out unzipped JARs into different subdirectories under tempDir to
  keep duplicates
- add MergeStrategy, which is (tempDir, Seq[File]) => File
- subject all duplicate entries to the merge strategy as obtained from
  the mergeStrategy setting (which is String => MergeStrategy)
- replace previous handling of META-INF/services/* with
  MergeStrategy.uniqueLines
- set default strategy for "reference.conf" to MergeStrategy.append
- everything else defaults to MergeStrategy.error
- also add pickFirst/pickLast strategies
- add new strategy `mustEqual`, which is pickFirst if the files’
  contents do match
- make mustEqual the default action
- also change names to "first", "last", "deduplicate",
  "filterDistinctLines"
@rkuhn
Copy link
Author

rkuhn commented Apr 23, 2012

Everything’s ready from my side, so merge away (unless there are issues, of course).

eed3si9n added a commit that referenced this pull request Apr 23, 2012
@eed3si9n eed3si9n merged commit 633d447 into sbt:master Apr 23, 2012
@eed3si9n
Copy link
Member

Merged.

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

2 participants