Built in properties : Properties « Ant « Java Tutorial






<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
  
  <target name="properties.built-in">
    <echo message="The base directory: ${basedir}"/>      
    <echo message="This file: ${ant.file}"/>
    <echo message="Ant version: ${ant.version}"/> 
    <echo message="Project name: ${ant.project.name}"/>     
    <echo message="Java version: ${ant.java.version}"/>     
  </target>

</project>








38.3.Properties
38.3.1.Built in properties
38.3.2.Define custom properties based on the existing properties
38.3.3.Reference defined properties
38.3.4.environment properties
38.3.5.Properties based on build.properties file