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>
  +  &lt;property environment=&quot;env&quot;/&gt;
  +  &lt;echo message=&quot;Number of Processors = ${env.NUMBER_OF_PROCESSORS}&quot;/&gt;
  +  &lt;echo message=&quot;ANT_HOME is set to = ${env.ANT_HOME}&quot;/&gt;
  +</pre>
  +<p>reads the system environment variables and stores them in properties, prefixed with &quot;env&quot;.
  +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 &copy; 2000,2001 Apache Software Foundation. All rights
   Reserved.</p>
  -
   </body>
   </html>