Browse Source

Show the list of supported platforms for <property env=""/>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@488981 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 18 years ago
parent
commit
f710134d16
1 changed files with 54 additions and 5 deletions
  1. +54
    -5
      docs/manual/CoreTasks/property.html

+ 54
- 5
docs/manual/CoreTasks/property.html View File

@@ -122,12 +122,11 @@ SYSTEM).
&quot;.&quot; it will not be doubled. ie environment=&quot;myenv.&quot; will still &quot;.&quot; it will not be doubled. ie environment=&quot;myenv.&quot; will still
allow access of environment variables through &quot;myenv.PATH&quot; and allow access of environment variables through &quot;myenv.PATH&quot; and
&quot;myenv.TERM&quot;. This functionality is currently only implemented &quot;myenv.TERM&quot;. This functionality is currently only implemented
on select platforms. Feel free to send patches to increase the number of platforms
this functionality is supported on ;).<br>
on <a href="#notes-env">select platforms</a>. Feel free to send patches to increase the
number of platforms this functionality is supported on ;).<br>
Note also that properties are case sensitive, even if the Note also that properties are case sensitive, even if the
environment variables on your operating system are not, e.g. it environment variables on your operating system are not, e.g. it
will be ${env.Path} not ${env.PATH} on Windows 2000.</td> will be ${env.Path} not ${env.PATH} on Windows 2000.</td>

</tr> </tr>
<tr> <tr>
<td valign="top">classpath</td> <td valign="top">classpath</td>
@@ -210,7 +209,57 @@ deploy.url=http://${deploy.server}:${deploy.port}/
</pre> </pre>




<a name="notes-env"></a>
<h3>Notes about environment variables</h3>
<p>
Ant runs on Java 1.2 therefore it cant use Java5 features for accessing environment
variables. So it starts a command in a new process which prints the environment variables,
analyzes the output and creates the properties. <br>
There are commands for the following operating systems implemented in
<a href="http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java?view=markup">
Execute.java</a> (method <tt>getProcEnvCommand()</tt>):
<table>
<tr>
<th>OS</th>
<th>command</th>
</tr>
<tr>
<td> os/2 </td>
<td> cmd /c set </td>
</tr>
<tr>
<td colspan="2"> windows </td>
</tr>
<tr>
<td> * win9x </td>
<td> command.com /c set </td>
</tr>
<tr>
<td> * other </td>
<td> cmd /c set </td>
</tr>
<tr>
<td> z/os </td>
<td> /bin/env <b>OR</b> /usr/bin/env <b>OR</b> env <i>(depending on read rights)</i> </td>
</tr>
<tr>
<td> unix </td>
<td> /bin/env <b>OR</b> /usr/bin/env <b>OR</b> env <i>(depending on read rights)</i> </td>
</tr>
<tr>
<td> netware </td>
<td> env </td>
</tr>
<tr>
<td> os/400 </td>
<td> env </td>
</tr>
<tr>
<td> openvms </td>
<td> show logical </td>
</tr>
</table>
</p>


</body> </body>
</html>

</html>

Loading…
Cancel
Save