Access environment variables

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- 
  Here is how you can access your environment variables.
  Note: Environment variables are specific to your system.
  More details can be found at http://ant.apache.org/manual/Tasks/property.html
 -->
<project basedir="." default="EnvironmentVariables" name="EnvironmentVariables">
 
  <target name="EnvironmentVariables">
    <property environment="my_env" />
    <echo>
      Here are sample environment variables in my operating system:
      ${my_env.PATH}
      ${my_env.COMPUTERNAME}
      ${my_env.ANT_HOME}
      ${my_env.JAVA_HOME}
    </echo>
  </target>
 
</project>