Class GraphicsMagickCommand
java.lang.Object
org.onehippo.forge.gallerymagick.core.command.AbstractMagickCommand
org.onehippo.forge.gallerymagick.core.command.GraphicsMagickCommand
Encapsulation of Graphics Magick Command Utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault Graphics Magick command executable.static final StringSystem property name for Graphics Magick command executable.Fields inherited from class org.onehippo.forge.gallerymagick.core.command.AbstractMagickCommand
DEFAULT_SUBCOMMAND_CONVERT, PROP_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionGraphicsMagickCommand(String executable, String subCommand) Constructor with anexecutableand asubCommand. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.exec.CommandLineCreate aCommandLinefrom executable and arguments.Methods inherited from class org.onehippo.forge.gallerymagick.core.command.AbstractMagickCommand
addArgument, clearArguments, execute, execute, getArguments, getExecutable, getSubCommand, getWorkingDirectory, setWorkingDirectory
-
Field Details
-
PROP_EXECUTABLE
System property name for Graphics Magick command executable. The default value isDEFAULT_EXECUTABLE.- See Also:
-
DEFAULT_EXECUTABLE
Default Graphics Magick command executable.- See Also:
-
-
Constructor Details
-
GraphicsMagickCommand
Constructor with anexecutableand asubCommand. Ifexecutableis null, it tries to find it from a system property keyed byPROP_EXECUTABLE. If not found from the system property, it uses the default Graphics Magick executable,DEFAULT_EXECUTABLE.- Parameters:
executable- executable of Graphics Magick commandsubCommand- sub-command ofgmcommand
-
-
Method Details
-
createCommandLine
protected org.apache.commons.exec.CommandLine createCommandLine()Create aCommandLinefrom executable and arguments.- Specified by:
createCommandLinein classAbstractMagickCommand- Returns:
- a
CommandLinefrom executable and arguments
-