Package dk.netarkivet.deploy
Class DeployApplication
- java.lang.Object
-
- dk.netarkivet.deploy.DeployApplication
-
public final class DeployApplication extends java.lang.Object
The application that is run to generate install and start/stop scripts for all physical locations, machines and applications.The actual deployment has to be done from an Linux/Unix machine, and this application should therefore not be run on Windows.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
initArchiveDatabase(java.lang.String arcDbFileName)
Checks the argument for the archive database.static void
initBitmagSourceDir(java.lang.String folderName)
Checks the argument for the bitmagasin source directory.static void
initBundlerZip(java.lang.String defaultBundlerZipName)
Checks if the default bundler zip file exists if defined.static void
initEvaluate(java.lang.String evaluateArgument, java.lang.String encoding)
Checks the arguments for evaluating the config file.static void
initJarFolder(java.lang.String folderName)
Checks the argument for the external jar-folder.static void
initLogos(java.lang.String logoFilename, java.lang.String menulogoFilename)
Checks if the logo files existsstatic void
main(java.lang.String[] args)
Run deploy.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Run deploy.- Parameters:
args
- The Command-line arguments in no particular order: -C The deploy configuration file (ends with .xml). -Z The NetarchiveSuite file to be unpacked (ends with .zip). -S The security policy file (ends with .policy). -L The logging property file (ends with .prop). -O [OPTIONAL] The output directory -D [OPTIONAL] The harvest definition database -T [OPTIONAL] The test arguments (httpportoffset, port, environmentName, mailReceiver) -R [OPTIONAL] For resetting the tempDir (takes arguments 'y' or 'yes') -E [OPTIONAL] Evaluating the deployConfig file (arguments: 'y' or 'yes') -A [OPTIONAL] For archive database. -J [OPTIONAL] For deploying with external jar files. Must be the total path to the directory containing jar-files. -l [OPTIONAL] for logo png file. -m [OPTIONAL] for menulogo png file These external files will be placed on every machine, and they have to manually be put into the classpath, where they should be used.
-
initEvaluate
public static void initEvaluate(java.lang.String evaluateArgument, java.lang.String encoding)
Checks the arguments for evaluating the config file. Only the arguments 'y' or 'yes' is accepted for evaluation. Anything else (including argument set to null) does not evaluate the deployConfigFile.- Parameters:
evaluateArgument
- The argument for evaluation.encoding
- the encoding to use to read from the input file
-
initArchiveDatabase
public static void initArchiveDatabase(java.lang.String arcDbFileName)
Checks the argument for the archive database.- Parameters:
arcDbFileName
- The path to the archive database.
-
initJarFolder
public static void initJarFolder(java.lang.String folderName)
Checks the argument for the external jar-folder.- Parameters:
folderName
- The path to the folder. Global path.
-
initBitmagSourceDir
public static void initBitmagSourceDir(java.lang.String folderName)
Checks the argument for the bitmagasin source directory. Specifically, if specified, the folder must - be a directory - contain RepositorySettings.xml and ReferenceSettings.xml files - contain exactly one .pem file, assumed to be the client certkey No other validation is carried out (e.g. of the file formats)- Parameters:
folderName
- The path to the folder.
-
initBundlerZip
public static void initBundlerZip(java.lang.String defaultBundlerZipName)
Checks if the default bundler zip file exists if defined.- Parameters:
defaultBundlerZipName
- The path to the default bundler zip file to use.
-
initLogos
public static void initLogos(java.lang.String logoFilename, java.lang.String menulogoFilename)
Checks if the logo files exists- Parameters:
logoFilename
- The absolute path to the logo png file.menulogoFilename
- The absoluet path to the menu logo png file.
-
-