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

COMPRESS-400 #27

Closed
wants to merge 5 commits into from
Closed

COMPRESS-400 #27

wants to merge 5 commits into from

Conversation

sesuncedu
Copy link
Contributor

Add extra header map to tar archive entry.
Move PAX header processing code from TarArchiveInputStream to TarAchiveEntry.
Use same code for processing user supplied extra headers - thus setting "size "changes the value of getSize().
Add any extra PAX headers to output map when putting entry in TarArchiveOutputStream.
Add simple tests for getting/setting xattr, setting "size", and round tripping.

This PR uses COMPRESS-399 as a base.
To make it easier to cherry-pick + rebase the PR has been split in two.

1d9b3c8 contains just the code changes and test changes, and does not bump the minor package version . This will cause the bundle:baseline verify goal in 399 to break the build.

82405c1 increases the package minor version to the correct value

…n they're overly optimisic

Add packageinfo files for per-package version settings. Initialize to 1.14
Copy packageinfo files in resource phase.

Use latest bundle plugin.
Remove superflous headers from manifest.
Pretty-print the manifest.
Add bundle:baseline to the verify phase
Add bundle:baseline-report to the site phase
To change the base version from default (i.e. previous release) set comparisonVersion property

Change travis build goal to verify

Signed-off-by: Simon Spero <sesuncedu@gmail.com>
One line of non copyrightable material does not need the license header  :)
…of version info.

Add build time dependency on org,osgi.annotation for Version annotation.
Remove resource copy.

Signed-off-by: Simon Spero <sesuncedu@gmail.com>
…ra PAX headers to tar archives

Add extra header map to tar archive entry.
Move PAX header processing code from TarArchiveInputStream to TarAchiveEntry.
Use same code for processing user supplied extra headers - thus setting "size "changes the value of getSize().
Add any extra PAX headers to output map when putting entry in TarArchiveOutputStream.
Add simple tests for getting/setting xattr, setting "size", and round tripping.

This PR uses COMPRESS-399 as a base.  To make it easier to cherry-pick, this commit does not bump the minor
package version;  this will cause the baseline verify stage in 399 to  break the build, since the API has changed in a backwards compatible fashion

A separate commit increases the package minor version.

Signed-off-by: Simon Spero <sesuncedu@gmail.com>
org.apache.commons.compress.archivers.tar to 1.15.0 to reflect
backwards compatible changes to API:

[INFO] < org.apache.commons.compress.archivers.tar          minor      1.15.0     1.14.0     1.15.0     -
[INFO]      < class org.apache.commons.compress.archivers.tar.TarArchiveEntry
[INFO]          + method addPaxHeader(java.lang.String,java.lang.String)
[INFO]          + method addXattr(java.lang.String,java.lang.String)
[INFO]          + method clearExtraPaxHeaders()
[INFO]          + method getExtraPaxHeader(java.lang.String)
[INFO]              + return java.lang.String
[INFO]          + method getExtraPaxHeaders()
[INFO]              + return java.util.Map<Ljava.lang.String;Ljava.lang.String;>
[INFO]          + method getXattr(java.lang.String)
[INFO]              + return java.lang.String
[INFO]      - version 1.14.0
[INFO]      + version 1.15.0

Signed-off-by: Simon Spero <sesuncedu@gmail.com>
@bodewig
Copy link
Member

bodewig commented Jun 12, 2017

Thanks, do you think you could re-create the PR without the commits that belong to #26 ?

@sesuncedu sesuncedu closed this Jun 12, 2017
@sesuncedu sesuncedu deleted the COMPRESS-400 branch June 27, 2017 23:23
@sesuncedu sesuncedu restored the COMPRESS-400 branch July 4, 2017 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants