Coder Social home page Coder Social logo

prantlf / apache-archiver Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 21 KB

Simple compressing and decompressing command-line tools using Apache Commons Compress.

License: Apache License 2.0

Makefile 9.63% Java 90.37%
apache-commons commons-compress untar unzip tar zip

apache-archiver's Introduction

apache-archiver

Build Status Maintainability

Simple compressing and decompressing command-line tools using Apache Commons Compress. You can use them as source code examples too.

How to Use

Run the command-line tools without parameters to see the usage description:

$ java -cp commons-compress-1.18.jar:. untar
Usage: untar l|x <input archive> [output directory]

$ java -cp commons-compress-1.18.jar:. unzip
Usage: unzip l|x <input archive> [output directory]

$ java -cp commons-compress-1.18.jar:. tar
Usage: tar <output archive> [input directory]

$ java -cp commons-compress-1.18.jar:. zip
Usage: zip <output archive> [input directory]

List contents of a TAR.GZ archive:

$ java -cp commons-compress-1.18.jar:. untar l commons-compress-1.18-bin.tar.gz
File "commons-compress-1.18/LICENSE.txt"
...

Uncompress a ZIP archive to the current directory:

$ java -cp commons-compress-1.18.jar:. unzip x commons-compress-1.18-bin.zip .
Unpacking "commons-compress-1.18/LICENSE.txt"...
...

Compress a TAR archive of the current directory:

$ java -cp commons-compress-1.18.jar:. tar test.tar
Packing "./LICENSE"...
...

How to Build

Make sure, that you installed OpenJDK Java and GNU Make or compatibles. The following command will download the common-compress package and build the command line tools:

make all

The following command will test, that the command-line tools work:

make test

The following command will remove build and test output files:

make clean

The following command will remove all files created by the Makefile, including the downloaded commons-compress package:

make distclean

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.

License

Copyright (c) 2019 Ferdinand Prantl

Licensed under the Apache 2.0 license.

apache-archiver's People

Contributors

prantlf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

xuqiyu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.