Source Code : Define custom property based on existing properties

Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com. Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com. Click Here or search from google with Libraries Name you get jar file related it

Define custom property based on existing properties

 
<?xml version="1.0"?>

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

  <target name="properties.custom">
    <property name="fs" value="${file.separator}"/>
    <property name="ps" value="${path.separator}"/>

    <echo message="File: ${basedir}${fs}build.xml"/>
    <echo message="Path: ${basedir}${fs}build.xml${ps}${basedir}${fs}build.properties"/>
  </target>

</project>

           
         
  

Thank with us