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