URL based properties file : Resource File « Ant « Java Tutorial






<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
  

  <target name="properties.url">

    <property url="http://localhost:8080/properties/build.properties"/>

    <path id="build.classpath.id">
      <pathelement path="${build.classpath}"/>
    </path>

    <property name="build.classpath.property" refid="build.classpath.id"/>

    <echo message="Server URL: ${server.url}"/>
    <echo message="Build classpath: ${build.classpath}"/>
    <echo message="Build classpath converted: ${build.classpath.property}"/>
  </target>

</project>








38.4.Resource File
38.4.1.Resource file base properties
38.4.2.URL based properties file
38.4.3.Properties file priority