Skip to content

Commit

Permalink
Add tzst alias for tar.zst archiver/unarchived
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 8, 2023
1 parent f429b07 commit 2f8ddfe
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 7 deletions.
Expand Up @@ -2,8 +2,6 @@

import javax.inject.Named;

import java.io.File;

/**
* Alias for {@link PlexusIoTarBZip2FileResourceCollection}
*/
Expand Down
Expand Up @@ -2,8 +2,6 @@

import javax.inject.Named;

import java.io.File;

/**
* Alias for {@link PlexusIoTarGZipFileResourceCollection}
*/
Expand Down
Expand Up @@ -17,8 +17,6 @@

import javax.inject.Named;

import java.io.File;

/**
* Alias for {@link PlexusIoTarXZFileResourceCollection}
*/
Expand Down
@@ -0,0 +1,28 @@
/*
* Copyright The Plexus developers.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.codehaus.plexus.archiver.tar;

import javax.inject.Named;

/**
* Alias for {@link PlexusIoTarZstdFileResourceCollection}
*
* @since 4.7.2
*/
@Named( "tzst" )
public class PlexusIoTZstdFileResourceCollection extends PlexusIoTarZstdFileResourceCollection
{
}
28 changes: 28 additions & 0 deletions src/main/java/org/codehaus/plexus/archiver/tar/TZstdArchiver.java
@@ -0,0 +1,28 @@
/*
* Copyright The Plexus developers.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.codehaus.plexus.archiver.tar;

import javax.inject.Named;

/**
* Alias for {@link TarZstdArchiver}.
*
* @since 4.7.2
*/
@Named( "tzst" )
public class TZstdArchiver extends TarZstdArchiver
{
}
@@ -0,0 +1,28 @@
/*
* Copyright The Plexus developers.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.codehaus.plexus.archiver.tar;

import javax.inject.Named;

/**
* Alias for {@link TarZstdUnArchiver}
*
* @since 4.7.2
*/
@Named( "tzst" )
public class TZstdUnArchiver extends TarZstdUnArchiver
{
}
4 changes: 3 additions & 1 deletion src/site/apt/index.apt
Expand Up @@ -31,11 +31,12 @@ Plexus Archiver
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TGZArchiver.html}<<<tgz>>>}}),
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarSnappyArchiver.html}<<<tar.snappy>>>}},
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarZstdArchiver.html}<<<tar.zst>>>}}
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TZstdArchiver.html}<<<tzst>>>}}),
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarXZArchiver.html}<<<tar.xz>>>}}
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TXZArchiver.html}<<<txz>>>}}),
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/war/WarArchiver.html}<<<war>>>}},
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/xz/XZArchiver.html}<<<xz>>>}},
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/zip/ZipArchiver.html}<<<zip>>>}}.
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/zip/ZipArchiver.html}<<<zip>>>}},
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/zstd/ZstdArchiver.html}<<<zst>>>}}
| |
*------------------+-----------------+
Expand All @@ -50,6 +51,7 @@ Plexus Archiver
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TGZUnArchiver.html}<<<tgz>>>}}),
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarSnappyUnArchiver.html}<<<tar.snappy>>>}}
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarZstdUnArchiver.html}<<<tar.zst>>>}}
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TZstdUnArchiver.html}<<<tzst>>>}}),
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarXZUnArchiver.html}<<<tar.xz>>>}}
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TXZUnArchiver.html}<<<txz>>>}}),
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/xz/XZUnArchiver.html}<<<xz>>>}},
Expand Down
Expand Up @@ -67,6 +67,7 @@ private static Stream<String> getArchiversAndUnArchiverForTests()
"tbz2",
"tgz",
"txz",
"tzst",
"war",
"xz",
"zip",
Expand Down

0 comments on commit 2f8ddfe

Please sign in to comment.