You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sesuncedu <gi...@git.apache.org> on 2017/06/05 20:09:18 UTC

[GitHub] commons-compress pull request #27: COMPRESS-400

GitHub user sesuncedu opened a pull request:

    https://github.com/apache/commons-compress/pull/27

    COMPRESS-400 

    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.
    
     1d9b3c88455caceca81f0ff6b7eca0958c631359 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.
    
    82405c13bd2688817108d3f2854387b3417a764d  increases the package minor version to the correct value
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sesuncedu/commons-compress COMPRESS-400

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-compress/pull/27.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #27
    
----
commit 109b14915cf594e5c2031e58d6f2fd0595fc184f
Author: Simon Spero <se...@gmail.com>
Date:   2017-06-02T17:25:02Z

    COMPRESS-399 OSGI package versions are overly pessimistic, except when 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 <se...@gmail.com>

commit 3653a2e19b51c9bd894e3928ed959c0132afd9b6
Author: Simon  Spero <se...@gmail.com>
Date:   2017-06-02T17:37:53Z

    Default rat doesn't ignore packageinfo
    
    One line of non copyrightable material does not need the license header  :)

commit 27b65778eee34805838a0e43777b98fb6714dc2a
Author: Simon Spero <se...@gmail.com>
Date:   2017-06-05T15:55:18Z

    Replace packageinfo files with annotated package-info.java as source of version info.
    Add build time dependency on org,osgi.annotation for Version annotation.
    Remove resource copy.
    
    Signed-off-by: Simon Spero <se...@gmail.com>

commit 1d9b3c88455caceca81f0ff6b7eca0958c631359
Author: Simon Spero <se...@gmail.com>
Date:   2017-06-05T19:58:27Z

    COMPRESS-400 It should be possible for users to create and access extra 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 <se...@gmail.com>

commit 82405c13bd2688817108d3f2854387b3417a764d
Author: Simon Spero <se...@gmail.com>
Date:   2017-06-05T20:02:32Z

    Increase the minor package version for
    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 <se...@gmail.com>

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


[GitHub] commons-compress pull request #27: COMPRESS-400

Posted by sesuncedu <gi...@git.apache.org>.
Github user sesuncedu closed the pull request at:

    https://github.com/apache/commons-compress/pull/27


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


[GitHub] commons-compress issue #27: COMPRESS-400

Posted by bodewig <gi...@git.apache.org>.
Github user bodewig commented on the issue:

    https://github.com/apache/commons-compress/pull/27
  
    Thanks, do you think you could re-create the PR without the commits that belong to #26 ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org