Separate two values : Properties « Ant « Java

Separate two values

<?xml version="1.0"?>

<project name="Apache Ant Properties Project" default="properties.custom" basedir=".">

  <target name="properties.custom">
    <!-- Windows users should leave this line uncommented -->
    <property name="build.path" 

    <!-- Unix users should remove the above line 
         and uncomment the below line -->
    <property name="build.path" 

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

    <property name="" refid=""/>

    <!-- The converted string that Ant uses as a path -->
    <echo message="Converted string: ${}"/>

    <!-- The unconverted string, which Ant treats as a string -->
    <echo message="Path: ${build.path}"/>


  2 k)

Related examples in the same category

1.Value in the properties file overwrite the value in the build.xml
2.Redefine property in the children target
3.Redefine property in the children target 2
4.Load file through URL
5.Referrence property: basedir
6.Custom properties
7.Define custom property based on existing properties
8.Ant buildin properties
10.In init target set the properties
11.Define and reference property