Skip to content

Utilitity library for stuff that I use in multiple projects

Notifications You must be signed in to change notification settings

Conraad/commons-dost

 
 

Repository files navigation

Build Status

Maven Central Maven Central

This is a small library of code-pieces that I find useful in many of my projects.

It covers areas that I miss in the JDK itself e.g. for arrays and collections, logging, networking stuff, as well as helpers for testing.

Contents

Here an (incomplete) list of bits and pieces in this lib:

  • MappedCounter - counting things easily
  • DateParser - print out things like "1h 2min ago" instead of "at 2015-04-01 16:23:23"
  • ExecutionHelper - More easily run external processes and collect their output using Apache commons-exec underneath
  • DeleteOnCloseInputStream - Delete a file as soon as the stream is closed
  • SVNLogFileParser - Parse the XML output of 'svn log --xml ...'
  • ZipFileCloseInputStream - Close a ZipFile as soon as the related InputStream (usually returned by the ZipFile) is closed
  • ZipUtils - utilities for accessing content in Zip files recursively, i.e. access a file in a zip file inside a zip file.

Please note that some testing related pieces were moved into their own library to better separate these things. Look at http://github.com/centic9/commons-test for more details.

Use it

Gradle

compile 'org.dstadler:commons-dost:1.+'

Change it

Grab it

git clone git://github.com/centic9/commons-dost

Create Eclipse project files

./gradlew eclipse

Build it and run tests

cd commons-dost
./gradlew check jacocoTestReport

Licensing

  • commons-dost is licensed under the BSD 2-Clause License.
  • A few pieces are imported from other sources, the source-files contain the necessary license pieces/references.

About

Utilitity library for stuff that I use in multiple projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%