public class BinaryFilesUtils extends Object
Constructor and Description |
---|
BinaryFilesUtils() |
Modifier and Type | Method and Description |
---|---|
static File |
extract(File toExtract)
Extracts given archive into a directory
target/drone/md5hash(archive)/
If the archive is not one of the archives that are supported, then the file is only copied. |
static String |
getMd5hash(File file)
Counts and returns md5 hash of the given file
|
public static File extract(File toExtract) throws Exception
target/drone/md5hash(archive)/
.zip
, .tar.gz
and .tar.bz2
toExtract
- File that should be extractedException
- If anything bad happensCopyright © 2017 JBoss by Red Hat. All rights reserved.