|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.softwaregateway.impl.repositorymanager.maven.ArchiveManagement
public class ArchiveManagement
Archive Management Class
| Field Summary | |
|---|---|
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger
Class logger. |
| Constructor Summary | |
|---|---|
ArchiveManagement()
|
|
| Method Summary | |
|---|---|
static void |
createTarGz(File targetArchive,
File[] archiveFiles)
Compress Archive Method. |
static void |
createTarGz(File targetArchive,
List<File> archiveFiles)
Compress Archive Method |
File |
extractFileFromArchive(File tar,
String pathToFile)
|
void |
insertFileToArchive(File tar,
String pathToFile)
|
void |
replaceFilesToTarGz(File source,
File file)
|
static void |
unTarGz(File sourceArchive)
Uncompress Archive Method () |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.gcube.common.core.utils.logging.GCUBELog logger
| Constructor Detail |
|---|
public ArchiveManagement()
| Method Detail |
|---|
public static void unTarGz(File sourceArchive)
throws Exception
sourceArchive - source archive
Exception - if the uncompress operation fails
public static void createTarGz(File targetArchive,
List<File> archiveFiles)
throws Exception
targetArchive - archive filearchiveFiles - List of files to include in TAR GZ
Exception - if the compression fails
public static void createTarGz(File targetArchive,
File[] archiveFiles)
throws 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.
Exception - if the compression fails
public File extractFileFromArchive(File tar,
String pathToFile)
throws IOException
IOException
public void insertFileToArchive(File tar,
String pathToFile)
throws IOException
IOException
public void replaceFilesToTarGz(File source,
File file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||