Ant Extensions for WebHelp Responsive
The WebHelp Responsive plugin provides extension points that allow you to implement custom
      Ant targets to perform additional operations before and after certain processing stages. The
      following extension points are available in WebHelp Responsive:
    - whr-init-pre
- Runs a custom Ant target before the whr-initprocessing stage.
- whr-init-post
- Runs a custom Ant target after the whr-initprocessing stage.
- whr-collect-indexterms-pre
- Runs a custom Ant target before the whr-collect-indextermsprocessing stage.
- whr-collect-indexterms-post
- Runs a custom Ant target after the whr-collect-indextermsprocessing stage.
- whr-toc-xml-pre
- Runs a custom Ant target before the whr-toc-xmlprocessing stage.
- whr-toc-xml-post
- Runs a custom Ant target after the whr-toc-xmlprocessing stage.
- whr-context-help-map-pre
- Runs a custom Ant target before the whr-context-help-mapprocessing stage.
- whr-context-help-map-post
- Runs a custom Ant target after the whr-context-help-mapprocessing stage.
- whr-sitemap-pre
- Runs a custom Ant target before the whr-sitemapprocessing stage.
- whr-sitemap-post
- Runs a custom Ant target after the whr-sitemapprocessing stage.
- whr-copy-resources-pre
- Runs a custom Ant target before the whr-copy-resourcesprocessing stage.
- whr-copy-resources-post
- Runs a custom Ant target after the whr-copy-resourcesprocessing stage.
- whr-create-topic-pages-pre
- Runs a custom Ant target before the whr-create-topic-pagesprocessing stage.
- whr-create-topic-pages-post
- Runs a custom Ant target after the whr-create-topic-pagesprocessing stage.
- whr-create-main-page-pre
- Runs a custom Ant target before the whr-create-main-pageprocessing stage.
- whr-create-main-page-post
- Runs a custom Ant target after the whr-create-main-pageprocessing stage.
- whr-create-search-page-pre
- Runs a custom Ant target before the whr-create-search-pageprocessing stage.
- whr-create-search-page-post
- Runs a custom Ant target after the whr-create-search-pageprocessing stage.
- whr-create-indexterms-page-pre
- Runs a custom Ant target before the whr-create-indexterms-pageprocessing stage.
- whr-create-indexterms-page-post
- Runs a custom Ant target after the whr-create-indexterms-pageprocessing stage.
- whr-search-index-pre
- Runs a custom Ant target before the whr-search-indexprocessing stage.
- whr-search-index-post
- Runs a custom Ant target after the whr-search-indexprocessing stage.
To use Ant extension points for WebHelp Responsive, follow these steps:
  - In the DITA-OT-DIR/plugins/ folder, create a folder for this plugin (for example, com.oxygenxml.webhelp.responsive.custom.ant.extensions).
- Create a plugin.xml file (in the folder you created in step
          1) that extends the WebHelp Responsive plugin and specifies an Ant extension point with
          your custom Ant project file that contains the new build targets. For
          example:<plugin id="com.oxygenxml.webhelp.responsive.custom.ant.extensions"> <require plugin="com.oxygenxml.webhelp.responsive"/> <feature extension="ant.import" file="custom_build_file.xml"/> </plugin>
- Create the custom_build_file.xml file (in the folder you created in step 1) that
          contains your custom Ant project implementing one or more extension
          points:<project name="custom.ant.extensions.integrator" basedir="."> <target name="custom-whr-init-pre" extensionOf="whr-init-pre"> <echo>Extension point that executes before whr-init</echo> </target> <target name="custom-whr-init-post" extensionOf="whr-init-post"> <echo>Extension point that executes after whr-init</echo> </target> </project>
- Integrate the plugin into the DITA-OT. In the DITA-OT-DIR/bin
          directory of the DITA Open Toolkit, run one of the following
          scripts, depending on your operating system:DITA-OT-DIR/bin/dita.bat --installsh DITA-OT-DIR/bin/dita --install
- Execute a DITA Map to WebHelp Responsive transformation script.
