ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: java task question for ant 1.6.5
Date Fri, 27 Oct 2006 21:26:37 GMT
On 10/27/06, Dominique Devienne <ddevienne@gmail.com> wrote:
> On 10/27/06, Jeff Holt <jeff.holt@hotsos.com> wrote:
> > The reason I don't want to use <apply> is that I have to qualify the
> > executable path. Otherwise, for some yet unknown reason, ant executes
> > /usr/bin/java rather than the one in the PATH. And, of course,
> > /usr/bin/java, is not appropriate.
>
> Both <exec> and <apply> have a 'resolveExecutable', but only <exec>
> seems to have a 'searchpath' attribute. But if ${java.home}/bin/java
> below works, it's absolute so this problem becomes moot.
>
> > I gave ${jre.home} a try and it didn't get resolved. I looked but didn't
> > see where I had to change anything else. I just assumed jre is a built
> > in property namespace. Bad assumption?
>
> Ah, it may be ${java.home} you need to use. I might (again) to wrong,
> but I vaguely recollect using ${java.home}/bin/java. --DD

${java.home} is the jre home:

I have used : ${java.home}/../bin/java

But there also a java.exe in ${java.home}/bin

Peter

>
> See also http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4200300
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message