1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
|
---|
3 | <task id="plugins-installing" xml:lang="en">
|
---|
4 | <title>Installing plug-ins</title>
|
---|
5 | <shortdesc>Plug-ins are generally distributed as zip files. There are two steps to installing a
|
---|
6 | plug-in: unzipping and integrating.</shortdesc>
|
---|
7 | <taskbody>
|
---|
8 | <context>
|
---|
9 | <p>It is possible to define a plug-in so that it may be installed anywhere, although most
|
---|
10 | expect to be placed in <filepath>plugins/</filepath> directory inside of the DITA-OT. Most
|
---|
11 | plug-ins do not require a specific install directory and can go in either of the default
|
---|
12 | locations, but some may come with instructions for a particular install directory.</p>
|
---|
13 | </context>
|
---|
14 | <steps>
|
---|
15 | <step>
|
---|
16 | <cmd>The unzip the plug-in file to <filepath>plugins</filepath> subdirectory.</cmd>
|
---|
17 | <info>The plug-in directory should be named after plug-in ID and version, for example
|
---|
18 | <filepath>plugins/com.example.xhtml_1.0.0</filepath>.</info>
|
---|
19 | </step>
|
---|
20 | <step>
|
---|
21 | <cmd>Run plug-in integration process.</cmd>
|
---|
22 | <choices>
|
---|
23 | <choice>From the toolkit directory, run the following command to integrate all installed
|
---|
24 | plug-ins: <codeblock>ant -f integrator.xml </codeblock></choice>
|
---|
25 | <choice>Any build that uses the Java command line interface automatically runs the integrator
|
---|
26 | before processing begins.</choice>
|
---|
27 | <choice>Ant based builds may import the <codeph>integrator.xml</codeph> file, and add
|
---|
28 | <codeph>integrate</codeph> to the start of the dependency chain for the build. <note
|
---|
29 | type="note">The integration process in considered part of the installation process and
|
---|
30 | running it before each conversion will incur a performance penalty.</note></choice>
|
---|
31 | </choices>
|
---|
32 |
|
---|
33 |
|
---|
34 | <info>
|
---|
35 | <p>The integration process has two modes, lax and strict. In the strict mode the integration process will immediately fail if it encounters errors in plug-in configurations or installation process. In the lax mode, the integration process will continue to finish regardless of errors; the lax mode does not imply error recovery and may leave the DITA-OT installation into a broken state. The default mode is lax due to backwards compatibility, to run the integration in strict mode:</p>
|
---|
36 | <codeblock>ant -f integrator.xml strict</codeblock>
|
---|
37 | <p>To get more information about the integration process, run Ant in verbose mode:</p>
|
---|
38 | <codeblock>ant -f integrator.xml -verbose strict</codeblock>
|
---|
39 | </info>
|
---|
40 | </step>
|
---|
41 | </steps>
|
---|
42 | </taskbody>
|
---|
43 | </task>
|
---|