Generating output using the Java command-line interface

If you are not familiar with Ant, you can use the command line to perform the transformations. The DITA Open Toolkit creates a properties file (property.temp) that contains the information that you provided at the command line and then passes the property file to Ant. The properties file is saved in the args.logdir directory.

  1. Run either the startcmd.bat or startcmd.sh file.
  2. From the command prompt, type the following string and press Enter:
    java -jar lib/dost.jar /i:input_file /outdir:output_directory /transtype:transformation [options]
    where
    • input_file is the name of the DITA file or DITA map that is the input for the transformation.
    • output_directory is the directory where the DITA Open Toolkit writes the output of the transformation.
    • transformation is one of the following options:
      • docbook
      • eclipsecontent
      • eclipsehelp
      • htmlhelp
      • javahelp
      • pdf
      • troff
      • wordrtf
      • xhtml
    • [options] are optional parameters.
Related reference
Java command-line parameters