VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/docsrc/dev_ref/plugin-anttarget.dita@ 99507

最後變更 在這個檔案從99507是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.9 KB
 
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
9available to the Ant processing pipeline. This may be done as part
10of creating a new transform, extending pre-processing, or simply to
11provide 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
18is 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,
22first place your extensions in an Ant project file within your plug-in,
23such as <filepath>myAntStuff.xml</filepath>. Next, create
24a small wrapper file <filepath>myAntStuffWrapper.xml</filepath> in
25the same directory: </p><codeblock>&lt;dummy> &lt;import file="myAntStuff.xml"/> &lt;/dummy></codeblock><p>Then
26create the following feature: </p><codeblock>&lt;plugin id="com.example.ant">
27 &lt;feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
28&lt;/plugin></codeblock><p>When the plug-in is integrated, the imports
29from <filepath>myAntStuffWrapper.xml</filepath> will be copied into <filepath>build.xml</filepath> (using
30the correct path). This makes targets in <filepath>myAntStuff.xml</filepath> available
31to any other processing.</p></example>
32</refbody>
33</reference>
34<?Pub *0000001921?>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette