Environment: ant home, OS and Processor : Environment « Ant « Java






Environment: ant home, OS and Processor

<?xml version="1.0"?>

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


  <target name="properties.environment">
    <property environment="env"/>
    <echo message="Built on: ${env.OS} ${env.PROCESSOR_ARCHITECTURE}"/>
    <echo message="ANT_HOME: ${env.ant_home}"/>
  </target>



</project>

           
       








AntBasicTags.zip( 2 k)

Related examples in the same category

1.Set system properties in Ant build script
2.Get environment variables