ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wurm, Markus" <>
Subject How to set PATH in EXEC task
Date Fri, 23 Jun 2006 13:59:59 GMT


I got a problem setting the correct PATH env in an exec task, I wrote it


    <exec executable="sqlplus" description="Drop datamodel users"

      <arg line='"sys/${sys.password}@${ORACLE_SID} as sysdba"

      <env key="ORACLE_HOME" path="${ORACLE_HOME}"/>

      <env key="PATH" path="${oracle.stmt.path}"/>



The problem is that the PATH setting is ignored and the system property
in the build machine is used instead. I even used newenvironment="true"
but it did not help; ANT always uses the PATH set on the buildserver.


How can I override it?

Thanks for any hint.




Markus Wurm | GoldenSource Corporation | A-4061 Pasching, Pluskaufstr. 7
| <>  |T: +43
7229 76656 49 |


This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any erroneous
transmission. If you receive this message in error, please immediately
destroy it and notify the sender. You must not, directly or indirectly,
use, disclose, distribute, or copy any part of this message if you are
not the intended recipient.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message