Running jAlbum from the command line

Revision as of 8 August 2014 11:02 by sannanordgren (Comments | Contribs) n

The jAlbum application can also be controlled from the command line. It accepts the same parameters as you are able to set through the graphical user interface.

Issue java -jar JAlbum.jar -help in the same directory as the jAlbum application is installed in and jAlbum will list all allowed parameters. Here is a list of the currently allowed parameters and their defaults:

 
-alwaysUploadPages true
-appendImages false
-characterEncoding
-classicReaders true
-closeupDirectory slides
-closeupPrefix
-cols 6
-copyOriginals false
-customImageOrdering
-dateFormat
-directoriesFirst true
-directory
-exifImageDescription false
-exifUserComment true
-ftpForceUTF8 false
-ftpPassword
-ftpPort 21
-ftpServer
-ftpUser
-ftpWebDirectory
-highQualityScaling false
-highQualityThumbs true
-ignorePattern \..*
-imageLinking LinkScaled
-imageOrdering OrderByDate
-imageSize 800x800
-includeDirectories true
-indexPageName index
-iptcCaption true
-jpegComment false
-metaData true
-outputDirectory album
-pageExtension .html
-passiveMode true
-programDirectory C:\Dev\Java\jAlbum
-progressiveMode false
-projectFile
-qualityPercent 70
-remoteDirectory album
-resourceDirectory res
-reverseOrder false
-rows 4
-runTool
-sameDirectory false
-savePassword true
-secureFtp false
-skin XP
-skinsDirectory C:\Dev\Java\jAlbum\skins
-slideDirectory slides
-slides true
-smartUpload
-style Plain.css
-subdirs true
-textEncoding ISO-8859-1
-textFileComment true
-thumbSize 120x120
-thumbnailDirectory thumbs
-thumbnailPrefix
-updatedDirsOnly false
-uploadAll
-urlEncode false
-user.<user variable> <value>
-webRoot http://
-writeUTF8 false

User defined variables are passed as -user.yourVariable "Value". Similar applies to skin defined variables (having a -skin. prefix). Command line mode is great for automated album generation and updates. Webmasters can make scripts that call the jAlbum application regularly to update server albums etc.


glödlampa.png

Variables and their parameters are case sensitive, so remember to write -projectFile, not -projectfile or -ProjectFile for instance