ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 848] New - <exec>'s <env> does not set environment variables correctly.
Date Mon, 05 Mar 2001 21:17:13 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=848

*** shadow/848	Mon Mar  5 13:17:12 2001
--- shadow/848.tmp.8406	Mon Mar  5 13:17:12 2001
***************
*** 0 ****
--- 1,34 ----
+ +============================================================================+
+ | <exec>'s <env> does not set environment variables correctly.             
 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 848                         Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority:                           Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: trelawny@pacbell.net                                         |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ If the variable name's case was correct the variable is deleted, otherwise no 
+ variables is set.
+ 
+ Example (for NT):
+ <project name="test" default="main" basedir=".">
+ <target name="main">
+   <exec dir="." executable="cmd" failonerror="yes">
+     <arg value="/c"/>
+     <arg value="set"/>
+     <env key="Path" path="${java.library.path};path/to/bin"/>
+     <env key="JAVA_HOME" path="${java.home}/.."/>
+   </exec>
+ </target>
+ </project>
+ 
+ =============
+ both 'Path' and 'JAVA_HOME' variables are not present in the output. If path 
+ variable is written as 'PATH' - Path variable is not changed.

Mime
View raw message