Skip to content

Commit 2f8ddfe

Browse files
Add tzst alias for tar.zst archiver/unarchived
1 parent f429b07 commit 2f8ddfe

File tree

8 files changed

+88
-7
lines changed

8 files changed

+88
-7
lines changed

src/main/java/org/codehaus/plexus/archiver/tar/PlexusIoTBZ2FileResourceCollection.java

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import javax.inject.Named;
44

5-
import java.io.File;
6-
75
/**
86
* Alias for {@link PlexusIoTarBZip2FileResourceCollection}
97
*/

src/main/java/org/codehaus/plexus/archiver/tar/PlexusIoTGZFileResourceCollection.java

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import javax.inject.Named;
44

5-
import java.io.File;
6-
75
/**
86
* Alias for {@link PlexusIoTarGZipFileResourceCollection}
97
*/

src/main/java/org/codehaus/plexus/archiver/tar/PlexusIoTXZFileResourceCollection.java

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
import javax.inject.Named;
1919

20-
import java.io.File;
21-
2220
/**
2321
* Alias for {@link PlexusIoTarXZFileResourceCollection}
2422
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright The Plexus developers.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.codehaus.plexus.archiver.tar;
17+
18+
import javax.inject.Named;
19+
20+
/**
21+
* Alias for {@link PlexusIoTarZstdFileResourceCollection}
22+
*
23+
* @since 4.7.2
24+
*/
25+
@Named( "tzst" )
26+
public class PlexusIoTZstdFileResourceCollection extends PlexusIoTarZstdFileResourceCollection
27+
{
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright The Plexus developers.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.codehaus.plexus.archiver.tar;
17+
18+
import javax.inject.Named;
19+
20+
/**
21+
* Alias for {@link TarZstdArchiver}.
22+
*
23+
* @since 4.7.2
24+
*/
25+
@Named( "tzst" )
26+
public class TZstdArchiver extends TarZstdArchiver
27+
{
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright The Plexus developers.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.codehaus.plexus.archiver.tar;
17+
18+
import javax.inject.Named;
19+
20+
/**
21+
* Alias for {@link TarZstdUnArchiver}
22+
*
23+
* @since 4.7.2
24+
*/
25+
@Named( "tzst" )
26+
public class TZstdUnArchiver extends TarZstdUnArchiver
27+
{
28+
}

src/site/apt/index.apt

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ Plexus Archiver
3131
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TGZArchiver.html}<<<tgz>>>}}),
3232
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarSnappyArchiver.html}<<<tar.snappy>>>}},
3333
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarZstdArchiver.html}<<<tar.zst>>>}}
34+
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TZstdArchiver.html}<<<tzst>>>}}),
3435
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarXZArchiver.html}<<<tar.xz>>>}}
3536
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TXZArchiver.html}<<<txz>>>}}),
3637
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/war/WarArchiver.html}<<<war>>>}},
3738
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/xz/XZArchiver.html}<<<xz>>>}},
38-
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/zip/ZipArchiver.html}<<<zip>>>}}.
39+
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/zip/ZipArchiver.html}<<<zip>>>}},
3940
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/zstd/ZstdArchiver.html}<<<zst>>>}}
4041
| |
4142
*------------------+-----------------+
@@ -50,6 +51,7 @@ Plexus Archiver
5051
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TGZUnArchiver.html}<<<tgz>>>}}),
5152
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarSnappyUnArchiver.html}<<<tar.snappy>>>}}
5253
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarZstdUnArchiver.html}<<<tar.zst>>>}}
54+
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TZstdUnArchiver.html}<<<tzst>>>}}),
5355
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TarXZUnArchiver.html}<<<tar.xz>>>}}
5456
| | ({{{./apidocs/index.html?org/codehaus/plexus/archiver/tar/TXZUnArchiver.html}<<<txz>>>}}),
5557
| | {{{./apidocs/index.html?org/codehaus/plexus/archiver/xz/XZUnArchiver.html}<<<xz>>>}},

src/test/java/org/codehaus/plexus/archiver/manager/ArchiverManagerTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ private static Stream<String> getArchiversAndUnArchiverForTests()
6767
"tbz2",
6868
"tgz",
6969
"txz",
70+
"tzst",
7071
"war",
7172
"xz",
7273
"zip",

0 commit comments

Comments
 (0)