ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Toomey <toome...@yahoo.com>
Subject Re: Any Windows experts out there?????
Date Fri, 15 Feb 2002 14:30:10 GMT
I've tried running under a specific account, and shuddered, but it
didn't make a difference. Path still doesn't get picked up. 

Is there a way to specifically check LOCALSYSTEM's (what services
usually run under) environment variables? Path is set up as a System
variable in Control Panel > System > Advanced > Environment variables.

Thanks,
Kevin

--- Ted Neward <tneward@javageeks.com> wrote:
> Services run under different user accounts than what you would be
> using when
> logged in--check to see what the environment variables are for that
> service
> account (typically "LocalSystem" or something similar).
> Alternatively,
> change the Service to run under a specific account (such as your
> development
> one <shudder>) with the environment variables set the way you want.
> 
> Ted Neward
> {.NET || Java} Course Author & Instructor, DevelopMentor
> (http://www.develop.com)
> http://www.javageeks.com/tneward
> 
> ----- Original Message -----
> From: "Kevin Toomey" <toomeykh@yahoo.com>
> To: <ant-user@jakart.apache.org>; <ant-dev@jakarta.apache.org>
> Sent: Wednesday, February 13, 2002 9:25 PM
> Subject: Any Windows experts out there?????
> 
> 
> > Does anyone know why Ant running under a Service on W2K might not
> have
> > access to all environment variables (specifically Path)?
> >
> > The following target gets different results depending on if it is
> run
> > from a command prompt or within a service:
> >
> > <target name="testpath" >
> > <property environment="myenv" />
> > <echo message="PATH = ${myenv.Path}" />
> > </target>
> >
> > If I run Ant in a command prompt, I get:
> >
> > [property] Loading Environment myenv.
> > Setting project property: myenv.HOMEDRIVE -> c:
> > Setting project property: myenv.JAVA_HOME ->
> d:\programs\jdk1.3.1_02
> > .
> > .
> > .
> > Setting project property: myenv.Path ->
> > d:\programs\jdk1.3.1_02\bin;d:\programs\jakarta-ant-1.4.1\bin
> > [echo] PATH =
> > d:\programs\jdk1.3.1_02\bin;d:\programs\jakarta-ant-1.4.1\bin
> >
> > If I run Ant from within a Service, I get:
> >
> > Setting project property: myenv.JAVA_HOME ->
> d:\programs\jdk1.3.1_02
> > .
> > .
> > .
> > (all the same properties from above, except for Path)
> >
> > Property ${myenv.Path} has not been set
> > [echo] PATH = ${myenv.Path}
> >
> > Any ideas??????
> >
> >
> > Thanks,
> > Kevin
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE Valentine eCards with Yahoo! Greetings!
> > http://greetings.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:  
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:ant-dev-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-dev-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message