이 파일의 구조는 header 요소와 하나 이상의 step-type 요소로 구성됩니다. header 요소는 플러그인을 식별합니다. 각 step-type 요소는 단계를 정의합니다. 단계는 IBM® UrbanCode Deploy 프로세스 편집기에서 사용할 수 있으며 컴포넌트 프로세스를 구성하는 데 사용합니다.
문서 유형 선언 후에 plugin 루트 요소가 모든 플러그인에서 사용하는 XML 스키마 유형인 PluginXMLSchema_v1.xsd를 식별합니다. 다음 코드 샘플은 자동화 플러그인용 plugin.xml 파일의 기본 구조를 표시합니다.
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.urbancode.com/PluginXMLSchema_v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<identifier id="plugin_id" version="version_number" name="Plug-in Name"/>
<description/>
<tag>Plugin type/Plugin subtype/Plugin name</tag>
</header>
<step-type name="Step_Name">
<description/>
<properties>
<property name="porperty_name" required="true">
<property-ui type="textBox" label="Driver Jar"
description="The full path to the jdbc driver jar to use."
default-value="${p:resource/sqlJdbc/jdbcJar}"/>
</property>
</properties>
<post-processing>
<![CDATA[
if (properties.get("exitCode") != 0) {
properties.put("Status", "Failure");
}
else {
properties.put("Status", "Success");
}
]]>
</post-processing>
<command program="${path_to_tool">
<arg value="parameters_passed_to_tool"/>
<arg path="${p:jdbcJar}"/>
<arg file="command_to_run"/>
<arg file="${PLUGIN_INPUT_PROPS}"/>
<arg file="${PLUGIN_OUTPUT_PROPS}"/>
</command>
</step-type>
</plugin>
소스 플러그인용 plugin.xml의 구조에 대한 정보는 소스 플러그인 작성의 내용을 참조하십시오.