ant 读取xml

<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>


你可能感兴趣的:(xml,ant,File)