|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jpkgmk.PkgMk
public class PkgMk
Pure java implementation of the pkgmk
command. Should be a 1:1 port so that it can be used as a drop-in replacement.
For the code that was ported see:
pkgmk of opensolaris and
pkgbuild on sourceforge
This implementation should be useful if you want to create your solaris packages regardless on which platform you are currently developing. Additionally it has the advantage that it can be used with maven/ant without the need of native platform calls.
The original solaris package providing this functionality has the name SUNWpkgcmdsu
.
Some further docs about packaging can be found at creating solaris packages and solaris pkgmk tools
Constructor Summary | |
---|---|
PkgMk(java.io.File baseSourceDir)
|
|
PkgMk(java.io.File baseSourceDir,
java.io.File baseTargetDir)
|
|
PkgMk(java.io.File baseSourceDir,
java.io.File baseTargetDir,
PkgInfo packageInfo,
Prototype prototype)
|
|
PkgMk(java.io.File baseSourceDir,
java.io.File baseTargetDir,
java.lang.String targetFileName,
PkgInfo packageInfo,
Prototype prototype)
|
Method Summary | |
---|---|
void |
create()
Creates the whole package |
java.io.File |
getGzipFile()
|
PkgInfo |
getPackageInfo()
|
boolean |
isOverwriteIfExists()
|
static void |
main(java.lang.String[] args)
Entry point for the application |
void |
setOverwriteIfExists(boolean overwriteIfExists)
Whether or not to overwrite the files in the target directory if this directory already exists |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PkgMk(java.io.File baseSourceDir)
baseSourceDir
- The base source directory for searching all required packaging filespublic PkgMk(java.io.File baseSourceDir, java.io.File baseTargetDir)
baseSourceDir
- The base source directory for searching all required packaging filesbaseTargetDir
- The base directory in which the whole new package should be created. Can be nullpublic PkgMk(java.io.File baseSourceDir, java.io.File baseTargetDir, PkgInfo packageInfo, Prototype prototype)
baseSourceDir
- The base source directory for searching all required packaging filesbaseTargetDir
- The base directory in which the whole new package should be created. Can be nullpackageInfo
- The pkginfo object. Can be null if the file exists in the given source dirprototype
- The prototype object. Can be null if the file exists in the given source dirpublic PkgMk(java.io.File baseSourceDir, java.io.File baseTargetDir, java.lang.String targetFileName, PkgInfo packageInfo, Prototype prototype)
baseSourceDir
- The base source directory for searching all required packaging filesbaseTargetDir
- The base directory in which the whole new package should be created. Can be nulltargetFileName
- The name to be used for the created tar.gz file. Can be nullpackageInfo
- The pkginfo object. Can be null if the file exists in the given source directoryprototype
- The prototype object. Can be null if the file exists in the given source directoryMethod Detail |
---|
public PkgInfo getPackageInfo()
public boolean isOverwriteIfExists()
public void setOverwriteIfExists(boolean overwriteIfExists)
overwriteIfExists
- public java.io.File getGzipFile()
public void create() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |