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 tzst alias for tar.zst archiver/unarchived #274

Merged
merged 1 commit into from May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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