Package org.cdlib.mrt.core
Class ManifestBuild
java.lang.Object
org.cdlib.mrt.core.ManifestBuild
Tool for creating a Storage POST manifest used in addVersion from all files
in a specific directory
- Author:
- David Loy
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final boolean
protected File
protected static LoggerInf
protected static final long
protected static final String
protected TFrame
protected static final String
protected PrintStream
protected File
protected Properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManifestBuild.PropInfo
getPostManifest
(String fileURLS, File sourceDir, File postManifest) Build a POST manifeststatic ManifestBuild.PropInfo
getPostManifest
(String fileURLS, File sourceDir, File postManifest, LoggerInf logger) Build a POST manifestprotected void
initialize
(TFrame mFrame) protected static void
static void
Main methodprotected void
run()
Loop through list of data directories to have manifest generation
-
Field Details
-
DEBUG
protected static final boolean DEBUG- See Also:
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
logger
-
mFrame
-
printOut
-
listFile
-
propFile
-
sizeProp
-
MAX_MIMETYPE_LENGTH
protected static final long MAX_MIMETYPE_LENGTH- See Also:
-
-
Constructor Details
-
ManifestBuild
-
ManifestBuild
public ManifestBuild()
-
-
Method Details
-
main
Main method -
initialize
- Throws:
TException
-
run
protected void run()Loop through list of data directories to have manifest generation -
getPostManifest
public static ManifestBuild.PropInfo getPostManifest(String fileURLS, File sourceDir, File postManifest) throws TException Build a POST manifest- Parameters:
fileURLS
- base URL for deriving manifest fileURLssourceDir
- directory file containing files for manifest generationpostManifest
- output file to contain POST manifest- Returns:
- accumulated size of files referenced by manifest
- Throws:
TException
- process exception
-
getPostManifest
public static ManifestBuild.PropInfo getPostManifest(String fileURLS, File sourceDir, File postManifest, LoggerInf logger) throws TException Build a POST manifest- Parameters:
fileURLS
- base URL for deriving manifest fileURLssourceDir
- directory file containing files for manifest generationpostManifest
- output file to contain POST manifestlogger
- output logger - null=use System.out- Returns:
- accumulated size of files referenced by manifest
- Throws:
TException
- process exception
-
log
-