Running from Command LineEdit online
To publish to the WebHelp Responsive output from a command line outside of Oxygen XML
Editor/Author, you can use the dita startup script that comes bundled
with DITA Open Toolkit distribution.
dita Command
Format
DITA-OT
dita command has the following format:
DITA-OT-DIR/bin/dita --format=webhelp-responsive --input=input-file
optionswhere the arguments are as follows:
dita- Windows - The dita.bat script located in:
DITA-OT-DIR\bin\. --format=webhelp-responsive- Specifies the output format (transformation type) for WebHelp Responsive transformation.
--input=input-file- The
input-filerepresents the path to the DITA map that you want to process. options-
optionsinclude the following optional build parameters:--output=dir-odir- Specifies the path of the output directory; the path can be absolute or
relative to the current directory. By default, the output is written to the
outsubdirectory of the current directory. --filter=file- Specifies filter file(s) used to include, exclude, or flag content.
--temp=dir-tdir- Specifies the location of the temporary directory.
--verbose-v- Verbose logging.
--debug-d- Debug logging.
--logfile=file-lfile- Write logging messages to a file.
--parameter=value-Dparameter=value- Specify a value for a DITA-OT or Ant build parameter.
--propertyfile=file- Use build parameters defined in the referenced
.propertiesfile.Build parameters specified on the command line override those set in the
.propertiesfile.
WebHelp and DITA-OT parameters
In addition to the transformation parameters that are specific to WebHelp Responsive, you can use to the common DITA-OT transformation parameters and the Modifying or adding generated text.
Command Line Example
- Windows:
dita.bat --format=webhelp-responsive --input=c:\mySample.ditamap --output=c:\output -Dwebhelp.logo.image=C:\images\myLogo.jpg - Linux/Mac OS X:
dita --format=webhelp-responsive --input=c:\mySample.ditamap --output=c:\output -Dwebhelp.logo.image=C:\images\myLogo.jpg