ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/docs/manual/CoreTasks property.html
Date Wed, 18 Jul 2001 13:05:19 GMT
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>
   
  
  
  

Mime
View raw message