|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fuin.kickstart4j.UpdateSet
public final class UpdateSet
Set of update operations based on a list fo source files and a local directory.
| Constructor Summary | |
|---|---|
UpdateSet(java.util.List srcFiles,
java.util.List mkDirs,
java.io.File destDir,
boolean lazyLoading)
Constructor with source URL and destination directory. |
|
| Method Summary | |
|---|---|
java.lang.String |
createClasspath()
Creates a classpath from the entries in the classpathJarFiles list. |
java.util.List |
getChangedFiles()
Returns a list of files that changed. |
java.util.List |
getClasspathJarFiles()
Returns a list of jar files needed for starting the target application. |
java.util.List |
getDecompressFiles()
Returns a list of files that needs to be decompressed after the copy. |
java.util.List |
getDeletedFiles()
Returns a list of files that are present in the local directory but no longer needed. |
java.io.File |
getDestDir()
Returns the destination directory. |
java.util.List |
getMkDirs()
Returns a list of directories to create at the target location. |
java.util.List |
getNewFiles()
Returns a list of files that are new. |
java.util.List |
getUnchangedFiles()
Returns a list of files that haven't changed. |
boolean |
isUpdateNecessary()
Checks if there is are new or changed files or files to be deleted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateSet(java.util.List srcFiles,
java.util.List mkDirs,
java.io.File destDir,
boolean lazyLoading)
srcFiles - List of SrcFile objects - Cannot be
null.mkDirs - List of MkDir objects - Cannot be
null.destDir - Destination directory - Cannot be null and must
exist!lazyLoading - If lazy loading is active true else
false.| Method Detail |
|---|
public final java.io.File getDestDir()
public final java.util.List getNewFiles()
SrcFile that are not present in the local
directory.public final java.util.List getChangedFiles()
SrcFile with a difference between remote and
local directory.public final java.util.List getDeletedFiles()
SrcFile no longer present on remote
directory.public final java.util.List getUnchangedFiles()
SrcFile without a difference between remote
and local directory.public final java.util.List getDecompressFiles()
SrcFile that are unzipped at the destination
directory.public final java.util.List getClasspathJarFiles()
SrcFile that are added to the classpath.public final java.util.List getMkDirs()
MkDir objects.public final boolean isUpdateNecessary()
true else
false.public final java.lang.String createClasspath()
classpathJarFiles list.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||