Example to print the existing properties using ANT.

text zoom

There are some properties already set to run the ant command. The following script will help the user to print the default properties for the ant.


<?xml version="1.0"?>
<project name="Ant Tutorial" basedir=".." default="setup">


<target name="setup">
<echo> ${basedir}</echo>
<echo> ${ant.file}</echo>
<echo> ${ant.version}</echo>
<echo> ${ant.project.name}</echo>
<echo> ${ant.java.version}</echo>
</target>
</project>


Output:-


The above command will print the environment properties and the ant properties on the screen

                    

Copyright © 2012 VisualBuilder. All rights reserved