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 booleanprotected Fileprotected static LoggerInfprotected static final longprotected static final Stringprotected TFrameprotected static final Stringprotected PrintStreamprotected Fileprotected Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManifestBuild.PropInfogetPostManifest(String fileURLS, File sourceDir, File postManifest) Build a POST manifeststatic ManifestBuild.PropInfogetPostManifest(String fileURLS, File sourceDir, File postManifest, LoggerInf logger) Build a POST manifestprotected voidinitialize(TFrame mFrame) protected static voidstatic voidMain methodprotected voidrun()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
-