|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jpkgmk.prototype.PrototypeBuilder
public class PrototypeBuilder
Utility that helps creating a prototype file.
Constructor Summary | |
---|---|
PrototypeBuilder()
|
|
PrototypeBuilder(java.io.File basedir)
|
|
PrototypeBuilder(java.io.File basedir,
java.lang.String defaultUser,
java.lang.String defaultGroup)
|
|
PrototypeBuilder(java.io.File basedir,
java.lang.String defaultUser,
java.lang.String defaultGroup,
PermissionProvider defaultPermissionProvider)
|
Method Summary | |
---|---|
void |
add(PrototypeEntry prototypeEntry)
|
void |
addDirectory(java.io.File directory)
Adds the given directory recursively to this prototype file. |
void |
addDirectory(java.io.File directory,
boolean recurse)
Adds the given directory recursively to this prototype file. |
void |
addDirectory(java.io.File directory,
java.lang.String targetPathDir)
Adds the given directory recursively to this prototype file. |
void |
addDirectory(java.io.File directory,
java.lang.String targetPathDir,
java.lang.String owner,
java.lang.String group,
PermissionProvider permissionProvider)
Adds the given directory recursively to this prototype file. |
void |
addDirectory(java.io.File directory,
java.lang.String targetPathDir,
java.lang.String owner,
java.lang.String group,
PermissionProvider permissionProvider,
java.io.FileFilter fileFilter,
boolean recurse)
Adds the given directory recursively to this prototype file. |
protected void |
addDirectoryInternal(java.io.File directory,
java.lang.String targetPathDir,
java.lang.String owner,
java.lang.String group,
PermissionProvider permissionProvider,
java.io.FileFilter fileFilter,
boolean recurse)
|
void |
addFile(java.io.File sourceFile)
|
PrototypeEntryFile |
addFile(java.io.File sourceFile,
PrototypeEntryType type)
|
PrototypeEntryFile |
addFile(java.io.File sourceFile,
PrototypeEntryType type,
java.lang.String targetPathForPackage)
|
protected PrototypeEntryFile |
addFileInternal(java.io.File currentFile,
java.lang.String filePathOnTarget,
java.lang.String owner,
java.lang.String group,
PermissionProvider permissionProvider,
PrototypeEntryType entryType)
|
void |
addLink(java.lang.String linkLocation,
PrototypeEntryFile entry)
|
java.io.File |
clean()
|
java.io.File |
create()
|
java.lang.String |
getDefaultGroup()
|
java.lang.String |
getDefaultUser()
|
java.io.File |
getFile()
|
Prototype |
getPrototype()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrototypeBuilder()
PrototypeBuilder(File, String, String, PermissionProvider)
public PrototypeBuilder(java.io.File basedir)
PrototypeBuilder(File, String, String, PermissionProvider)
public PrototypeBuilder(java.io.File basedir, java.lang.String defaultUser, java.lang.String defaultGroup)
PrototypeBuilder(File, String, String, PermissionProvider)
public PrototypeBuilder(java.io.File basedir, java.lang.String defaultUser, java.lang.String defaultGroup, PermissionProvider defaultPermissionProvider)
basedir
- The basedirectory in which the prototype file is created after invocation of the create() method.defaultUser
- defaultGroup
- defaultPermissionProvider
- Method Detail |
---|
public java.lang.String getDefaultUser()
public java.lang.String getDefaultGroup()
public Prototype getPrototype()
public void add(PrototypeEntry prototypeEntry)
public void addLink(java.lang.String linkLocation, PrototypeEntryFile entry)
public void addFile(java.io.File sourceFile) throws java.io.IOException
java.io.IOException
public PrototypeEntryFile addFile(java.io.File sourceFile, PrototypeEntryType type) throws java.io.IOException
java.io.IOException
public PrototypeEntryFile addFile(java.io.File sourceFile, PrototypeEntryType type, java.lang.String targetPathForPackage) throws java.io.IOException
java.io.IOException
public void addDirectory(java.io.File directory)
directory
- public void addDirectory(java.io.File directory, boolean recurse)
directory
- recurse
- public void addDirectory(java.io.File directory, java.lang.String targetPathDir)
directory
- targetPathDir
- public void addDirectory(java.io.File directory, java.lang.String targetPathDir, java.lang.String owner, java.lang.String group, PermissionProvider permissionProvider)
directory
- owner
- group
- permissionProvider
- targetPathDir
- public void addDirectory(java.io.File directory, java.lang.String targetPathDir, java.lang.String owner, java.lang.String group, PermissionProvider permissionProvider, java.io.FileFilter fileFilter, boolean recurse)
directory
- The directory to be added to the prototypetargetPathDir
- Path for this directory on the target machine. Can be nullowner
- Owner of the directory and the child files. Can be nullgroup
- Group of the directory and the child files. Can be nullpermissionProvider
- Permission provider for the given directory and the child files. Can be nullfileFilter
- Can be null. Filters out some unwished files.recurse
- If subdirectories should be includedprotected void addDirectoryInternal(java.io.File directory, java.lang.String targetPathDir, java.lang.String owner, java.lang.String group, PermissionProvider permissionProvider, java.io.FileFilter fileFilter, boolean recurse)
protected PrototypeEntryFile addFileInternal(java.io.File currentFile, java.lang.String filePathOnTarget, java.lang.String owner, java.lang.String group, PermissionProvider permissionProvider, PrototypeEntryType entryType)
public java.io.File clean()
public java.io.File create() throws java.io.IOException
java.io.IOException
public java.io.File getFile()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |