Re: how to set JAVA_HOME in antscript build.xml

Eric Minick <[email protected]> Tue, 01 Jul 2008 14:39:37 -0600
Newsgroups gmane.comp.java.anthill
Organization Urbancode Software
Message-ID <[email protected]>
Naina,

Typically we have recommended having two Anthill OS instances standing 
next to each-other. Multiple jre support was always one of those things 
the commercial tool did.

I suppose you could have a stubbed out Ant script that calls your real 
script through the exec task. The exec task does take environment 
variables as options, so that should work. I haven't tried that though.

Cheers,

Eric

Naina Dani wrote:
> Hello everybody,
>
> I am facing a peculiar problem. I have two projects in anthill. One of 
> them needs java 1.4 and the other needs java 1.5. The problem is, if I 
> set JAVA_HOME to 1.4 or 1.5 in my .profile, one project builds and the 
> other fail.
>
> So I want to set JAVA_HOME in build.xml of the project, so that 
> JAVA_HOME is set depending on the project being built. Can anybody 
> give me an idea how to do this ?
>
> Thanks in advance.
> Regards,
> Naina.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill mailing list
> Anthill-IWHQxnLZ/[email protected]
> http://lists.urbancode.com/mailman/listinfo/anthill
>