You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@apache.org on 2001/07/18 15:05:19 UTC
cvs commit: jakarta-ant/docs/manual/CoreTasks property.html
conor 01/07/18 06:05:19
Modified: docs/manual/CoreTasks property.html
Log:
Add example of environment variables being read in as properties.
Revision Changes Path
1.3 +11 -1 jakarta-ant/docs/manual/CoreTasks/property.html
Index: property.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/property.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- property.html 2001/02/13 12:31:51 1.2
+++ property.html 2001/07/18 13:05:19 1.3
@@ -120,10 +120,20 @@
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.</p>
+
+<pre>
+ <property environment="env"/>
+ <echo message="Number of Processors = ${env.NUMBER_OF_PROCESSORS}"/>
+ <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
+</pre>
+<p>reads the system environment variables and stores them in properties, prefixed with "env".
+Note that this only works on <em>select</em> operating systems.
+Two of the values are shown being echoed.
+</p>
+
<hr>
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights
Reserved.</p>
-
</body>
</html>