-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We have UnArchiver for tar.* so we can also have corresponding Archiver
- Loading branch information
1 parent
54b75e9
commit 1d7ff06
Showing
13 changed files
with
561 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/org/codehaus/plexus/archiver/tar/TBZ2Archiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* | ||
* Copyright 2004 The Apache Software Foundation | ||
* | ||
* 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 TarBZip2Archiver}. | ||
* | ||
* @since 4.7.0 | ||
*/ | ||
@Named( "tbz2" ) | ||
public class TBZ2Archiver | ||
extends TarBZip2Archiver | ||
{ | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/java/org/codehaus/plexus/archiver/tar/TGZArchiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* | ||
* Copyright 2004 The Apache Software Foundation | ||
* | ||
* 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 TarGZipArchiver}. | ||
* | ||
* @since 4.7.0 | ||
*/ | ||
@Named( "tgz" ) | ||
public class TGZArchiver | ||
extends TarGZipArchiver | ||
{ | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/org/codehaus/plexus/archiver/tar/TXZArchiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2016 Codehaus. | ||
* | ||
* 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 TarXZArchiver}. | ||
* | ||
* @since 4.7.0 | ||
*/ | ||
@Named( "txz" ) | ||
public class TXZArchiver extends TarXZArchiver | ||
{ | ||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/org/codehaus/plexus/archiver/tar/TarBZip2Archiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* | ||
* Copyright 2004 The Apache Software Foundation | ||
* | ||
* 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; | ||
|
||
/** | ||
* Create tar with bzip2 compression. | ||
* | ||
* @since 4.7.0 | ||
*/ | ||
@Named( "tar.bz2" ) | ||
public class TarBZip2Archiver | ||
extends TarArchiver | ||
{ | ||
|
||
public TarBZip2Archiver() | ||
{ | ||
this.setupCompressionMethod(); | ||
} | ||
|
||
private void setupCompressionMethod() | ||
{ | ||
this.setCompression( TarCompressionMethod.bzip2 ); | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/org/codehaus/plexus/archiver/tar/TarGZipArchiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* | ||
* Copyright 2004 The Apache Software Foundation | ||
* | ||
* 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; | ||
|
||
/** | ||
* Create tar with gzip compression. | ||
* | ||
* @since 4.7.0 | ||
*/ | ||
@Named( "tar.gz" ) | ||
public class TarGZipArchiver | ||
extends TarArchiver | ||
{ | ||
|
||
public TarGZipArchiver() | ||
{ | ||
this.setupCompressionMethod(); | ||
} | ||
|
||
private void setupCompressionMethod() | ||
{ | ||
this.setCompression( TarCompressionMethod.gzip ); | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/org/codehaus/plexus/archiver/tar/TarSnappyArchiver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* | ||
* Copyright 2004 The Apache Software Foundation | ||
* | ||
* 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; | ||
|
||
/** | ||
* Create tar with snappy compression. | ||
* | ||
* @since 4.7.0 | ||
*/ | ||
@Named( "tar.snappy" ) | ||
public class TarSnappyArchiver | ||
extends TarArchiver | ||
{ | ||
|
||
public TarSnappyArchiver() | ||
{ | ||
this.setupCompressionMethod(); | ||
} | ||
|
||
private void setupCompressionMethod() | ||
{ | ||
this.setCompression( TarCompressionMethod.snappy ); | ||
} | ||
|
||
} |
Oops, something went wrong.