2011-02-15 2 views

답변

5

xmlproperty 속성 작업을 사용할 수 있습니다. 당신이 당신의 ANT 스크립트는 'xmlproperty'를 사용하여로드 할 수있는 XML 파일 infoFile.xml

<?xml version="1.0" encoding="UTF-8"?> 
<cat> 
<tabby> 
<name>Mittens</name> 
<legs>4</legs> 
<colour>Ginger</colour> 
</tabby> 
</cat> 

이 있다고 할 수 있습니다.

<xmlproperty file="infoFile.xml"/>

그런 다음 해당 XML에서 요소에 액세스 할 수 있습니다. $ {cat.tabby.colour} 자세한 정보는 여기에서 찾을 수 있습니다. http://ant.apache.org/manual/Tasks/xmlproperty.html >

+0

나를 위해 작동하지 않았습니다. AndroidManifest xml 파일에서 값을 검색하려고합니다. – jonney