dita-cmd.xml 718 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--This file is part of the DITA Open Toolkit project. See the accompanying LICENSE.md file for applicable licenses.-->
  3. <project basedir="." name="dita-cmd">
  4. <description>Defines a dita-cmd macro you can use in your Ant builds.
  5. See build-chm-pdf-hybrid.xml for usage.</description>
  6. <property name="dita.dir" location="${basedir}/../../.."/>
  7. <macrodef name="dita-cmd">
  8. <attribute name="input"/>
  9. <attribute name="format"/>
  10. <attribute name="propertyfile"/>
  11. <sequential>
  12. <exec executable="${dita.dir}/bin/dita">
  13. <arg line="-i @{input} -f @{format} -propertyfile @{propertyfile}"/>
  14. </exec>
  15. </sequential>
  16. </macrodef>
  17. </project>