|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.vremanagement.softwarerepository.util.ArchiveManagement
public class ArchiveManagement
Archive Management Class
Constructor Summary | |
---|---|
ArchiveManagement()
|
Method Summary | |
---|---|
static void |
createTarGz(java.io.File targetArchive,
java.io.File[] archiveFiles)
Compress Archive Method. |
static void |
createTarGz(java.io.File targetArchive,
java.util.List<java.io.File> archiveFiles)
Compress Archive Method |
static java.io.File |
downloadArchive(java.io.File targetDirectory,
java.lang.String fromURL)
Download Archive method |
static void |
unTarGz(java.io.File sourceArchive)
Uncompress Archive Method () |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchiveManagement()
Method Detail |
---|
public static java.io.File downloadArchive(java.io.File targetDirectory, java.lang.String fromURL) throws java.lang.Exception
targetDirectory
- directory to save the package (the directory will be created)fromURL
- where download the archive
java.lang.Exception
- if local store of Service Archive failspublic static void unTarGz(java.io.File sourceArchive) throws java.lang.Exception
sourceArchive
- source archive
java.lang.Exception
- if the uncompress operation failspublic static void createTarGz(java.io.File targetArchive, java.util.List<java.io.File> archiveFiles) throws java.lang.Exception
targetArchive
- archive filearchiveFiles
- List of files to include in TAR GZ
java.lang.Exception
- if the compression failspublic static void createTarGz(java.io.File targetArchive, java.io.File[] archiveFiles) throws java.lang.Exception
targetArchive
- archive filearchiveFiles
- Array of files to include in TAR GZ. The first entry
in the array is the source root directory. It is used to calculate relative path.
If it is not supplied the archive will not have directory tree.
java.lang.Exception
- if the compression fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |