building-with-ant.dita 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
  3. <!--This file is part of the DITA Open Toolkit project. See the accompanying LICENSE.md file for applicable licenses.-->
  4. <task id="runant" xml:lang="en">
  5. <title>Building output using Ant</title>
  6. <shortdesc>You can build output by using an Ant build script to provide the DITA-OT parameters.</shortdesc>
  7. <taskbody>
  8. <steps>
  9. <step>
  10. <cmd conref="../resources/conref-task.dita#ID/open-terminal"/>
  11. </step>
  12. <step>
  13. <cmd>Issue the following command:</cmd>
  14. <choicetable frame="topbot" relcolwidth="1.0* 3.0*">
  15. <chrow platform="linux osx">
  16. <choption>Linux or Mac OS&#xA0;X&#xA0;</choption>
  17. <chdesc>
  18. <cmdname>bin/ant</cmdname>
  19. <option>-f</option>
  20. <codeph><varname>build-script</varname>
  21. <varname>target</varname></codeph>
  22. </chdesc>
  23. </chrow>
  24. <chrow platform="windows">
  25. <choption>Windows</choption>
  26. <chdesc>
  27. <cmdname>bin\ant</cmdname>
  28. <option>-f</option>
  29. <codeph><varname>build-script</varname>
  30. <varname>target</varname></codeph>
  31. </chdesc>
  32. </chrow>
  33. </choicetable>
  34. <info> where:
  35. <ul>
  36. <li><varname>build-script</varname> is name of the Ant build script.</li>
  37. <li><varname>target</varname> is an optional switch that specifies the name of the Ant target that you want
  38. to run. <p>If you do not specify a target, the value of the <xmlatt>default</xmlatt> attribute for the Ant
  39. project is used.</p>
  40. </li>
  41. </ul></info>
  42. </step>
  43. </steps>
  44. </taskbody>
  45. </task>