From 47f06debb3a51ace355f0dabf58722d54c41e2a2 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Wed, 18 Jul 2001 13:05:19 +0000 Subject: [PATCH] Add example of environment variables being read in as properties. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269359 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/property.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/manual/CoreTasks/property.html b/docs/manual/CoreTasks/property.html index a8635fc5b..1d45a9df0 100644 --- a/docs/manual/CoreTasks/property.html +++ b/docs/manual/CoreTasks/property.html @@ -120,10 +120,20 @@ to be your home directory. This technique is more appropriate for Unix than Windows since the notion of a home directory doesn't exist on Windows. On the JVM that I tested, the home directory on Windows is "C:\". Different JVM implementations may use other values for the home directory on Windows.

+ +
+  <property environment="env"/>
+  <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/>
+  <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
+
+

reads the system environment variables and stores them in properties, prefixed with "env". +Note that this only works on select operating systems. +Two of the values are shown being echoed. +

+

Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.

-