<?xml version="1.0" encoding="UTF-8"?>
<!--Arbortext, Inc., 1988-2011, v.4002-->
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
 "reference.dtd">
<?Pub Inc?>
<reference id="plugin-anttarget" xml:lang="en-us">
<title>Adding new targets to the Ant build process</title>
<shortdesc>The Ant conductor extension point is used to make new targets
available to the Ant processing pipeline. This may be done as part
of creating a new transform, extending pre-processing, or simply to
provide Ant targets for the use of other plug-ins.</shortdesc>
<refbody>
<section> <dl><dlentry>
<dt><codeph>dita.conductor.target.relative</codeph></dt>
<dt importance="deprecated"><codeph>dita.conductor.target</codeph></dt>
<dd>             <p>Add Ant import to main Ant build file.</p>   
         <note type="remember">The <codeph>dita.conductor.target</codeph> extension
is               deprecated. Use <codeph>dita.conductor.target.relative</codeph> instead.</note> 
         </dd>
</dlentry></dl>       </section>
<example><title>Example</title><?Pub Caret -2?><p>To extend And processing,
first place your extensions in an Ant project file within your plug-in,
such           as <filepath>myAntStuff.xml</filepath>. Next, create
a small wrapper file <filepath>myAntStuffWrapper.xml</filepath> in
the same directory: </p><codeblock>&lt;dummy> &lt;import file="myAntStuff.xml"/> &lt;/dummy></codeblock><p>Then
create the following feature: </p><codeblock>&lt;plugin id="com.example.ant">
  &lt;feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
&lt;/plugin></codeblock><p>When the plug-in is integrated, the imports
from <filepath>myAntStuffWrapper.xml</filepath> will be copied into <filepath>build.xml</filepath> (using
the correct path). This makes targets in <filepath>myAntStuff.xml</filepath> available
to any other processing.</p></example>
</refbody>
</reference>
<?Pub *0000001921?>
