ant 读取xml

来源:互联网 发布:ubuntu安装qq错误 编辑:程序博客网 时间:2024/05/05 23:23
<project name="xmlprops" default="main">  <target name="main">    <property name="customer" value="acme"/>    <xmlproperty file="${customer}.xml"/>    <echo message="Building for ${customer(name)}..."/>    <echo message="${customer.settings.impl}"/>  </target></project> 

<customer name="Acme, Inc."><settings><impl>org.example.antbook.acme.SomeClass</impl></settings></customer>


原创粉丝点击