ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: environment variable
Date Fri, 05 Sep 2003 15:31:52 GMT
1) copy that <env>-part  :-)
2) define that part outside in a file and include that on both places with
xml-includes
3) I donĀ“t know whether <include> can help here ...


Mmm, <java> supports <syspropertyset>s. I think a <envpropertyset> would
be
useful
for <exec> and <java> also ...


Jan



> -----Original Message-----
> From: Blanchet Samuel [mailto:sblanchet@sopragroup.com]
> Sent: Friday, September 05, 2003 4:10 PM
> To: user@ant.apache.org
> Subject: environment variable
> 
> 
> Hi,
>  
> I've a prob with the environment variables.
>  
> I would like to set a lot of environment variables to use 
> them in different process.
>  
> My script is below.
>  
> the pb is that I'm not able to use the differents environment 
> variables (PNG_HOME, ORACLE_HOME,...) in the second  prog : TEST2.BAT.
>  
>  
> <exec executable="test.bat" newenvironment="false">
>  <env key="PNG_HOME" value="${PNG_HOME}"/>
>  <env key="ORACLE_HOME" value="${ORACLE_HOME}"/>
>  <env key="ORACLE_SID" value="${ORACLE_SID}"/>
>  <env key="SCHEMA" value="${SCHEMA}"/>
>  <env key="PASSWD" value="${PASSWD}"/>
>  <env key="NLS_LANG" value="${NLS_LANG}"/>
>  <env key="NG_PORT" value="${NG_PORT}"/>
>  <env key="MAX_USERS" value="${MAX_USERS}"/>
>  <env key="TRACE" value="${TRACE}"/>
>  <env key="COBOLREP" value="${COBOLREP}"/>
>  <env key="COBOLREPBIS" value="${COBOLREPBIS}"/>
>  <env key="JAVA_HOME" value="${JAVA_HOME}"/>
>  <env key="ANT_HOME" value="${ANT_HOME}"/>
> </exec>
>  
> <exec executable="test2.bat"/>
>  
> Could you help me ?
>  
> thx
> 
>  Sam
> 
> 

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