Ant 특성

org.eclipse.ant.core.antProperties

3.0

플러그인에서 Ant 빌드 파일에 사용할 Ant 특성을 정의할 수 있습니다.

<!ELEMENT extension (antProperty*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT antProperty EMPTY>

<!ATTLIST antProperty

name           CDATA #REQUIRED

value          CDATA #IMPLIED

class          CDATA #IMPLIED

headless       (true | false)

eclipseRuntime (true| false) >


다음은 Ant 특성 확장점에 관한 예제입니다.

   

<extension point=

"org.eclipse.ant.core.antProperties"

>

<antProperty name=

"eclipse.home"

class=

"org.eclipse.ant.internal.core.AntPropertyValueProvider"

/>

<antProperty name=

"eclipse.running"

value=

"true"

/>

</extension>

class 특성에서 이름 지정된 클래스는 org.eclipse.ant.core.IAntPropertyProvider 인터페이스를 구현해야 합니다.

플랫폼에서는 이 메커니즘을 사용하여 Ant 특성 eclipse.home을 Eclipse 설치 디렉토리에 설정하고 eclipse.running 특성을 설정합니다.