public class ProGetPackager
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
class |
ProGetPackager.ZipItem |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNIX_SEPARATOR |
static java.lang.String |
WINDOWS_SEPARATOR |
Constructor and Description |
---|
ProGetPackager() |
ProGetPackager(java.lang.String fileSeparatorChar) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
createPackage(java.io.File baseFolder,
java.util.List<ProGetPackager.ZipItem> files,
PackageMetadata metadata) |
java.util.List<ProGetPackager.ZipItem> |
getFileList(java.io.File baseFolder,
java.lang.String artifacts,
java.lang.String excludes,
boolean isDefaultExcludes,
boolean isCaseSensitive) |
static void |
unpackContent(java.io.File pkg)
Unzips the content of the unpack folder in the package to the same folder as the package is located in
Does not delete the original package file.
|
public static final java.lang.String WINDOWS_SEPARATOR
public static final java.lang.String UNIX_SEPARATOR
public ProGetPackager()
public ProGetPackager(java.lang.String fileSeparatorChar)
public java.io.File createPackage(java.io.File baseFolder, java.util.List<ProGetPackager.ZipItem> files, PackageMetadata metadata) throws java.io.IOException
java.io.IOException
public static void unpackContent(java.io.File pkg) throws java.io.IOException
pkg
- java.io.IOException
java.util.zip.ZipException
public java.util.List<ProGetPackager.ZipItem> getFileList(java.io.File baseFolder, java.lang.String artifacts, java.lang.String excludes, boolean isDefaultExcludes, boolean isCaseSensitive)