Re: how to set JAVA_HOME in antscript build.xml

"Naina Dani" <[email protected]> Tue, 1 Jul 2008 15:51:43 -0500
Newsgroups gmane.comp.java.anthill
Message-ID <[email protected]>
--===============0165056051==
Content-Type: multipart/alternative; 
	boundary="----=_Part_22366_16532627.1214945503884"

------=_Part_22366_16532627.1214945503884
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello Eric,

Thank you so much for the help.

Here in the current situation, one project is dependent on the other. So
having two anthill instances is ruled out.

I do not know how to stub out main ant script calling the real script
through the exec task. Could you please elaborate this further.

Thanks again for the help :)

Regards,
Naina.

On Tue, Jul 1, 2008 at 3:39 PM, Eric Minick <[email protected]> wrote:

> 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
>>
>>
> _______________________________________________
> Anthill mailing list
> Anthill-IWHQxnLZ/[email protected]
> http://lists.urbancode.com/mailman/listinfo/anthill
>

------=_Part_22366_16532627.1214945503884
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello Eric,<br><br>Thank you so much for the help.<br><br>Here in the current situation, one project is dependent on the other. So having two anthill instances is ruled out.<br><br>I do not know how to stub out main ant script calling the real script through the exec task. Could you please elaborate this further.<br>
<br>Thanks again for the help :)<br><br>Regards,<br>Naina.<br><br><div class="gmail_quote">On Tue, Jul 1, 2008 at 3:39 PM, Eric Minick &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Naina,<br>
<br>
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.<br>
<br>
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&#39;t tried that though.<br>
<br>
Cheers,<br>
<br>
Eric<br>
<br>
Naina Dani wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hello everybody,<br>
<br>
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.<br>

<br>
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 ?<br>
<br>
Thanks in advance.<br>
Regards,<br>
Naina.<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Anthill mailing list<br>
<a href="mailto:Anthill-IWHQxnLZ/[email protected]" target="_blank">Anthill-IWHQxnLZ/[email protected]</a><br>
<a href="http://lists.urbancode.com/mailman/listinfo/anthill" target="_blank">http://lists.urbancode.com/mailman/listinfo/anthill</a><br>
 &nbsp;<br>
</blockquote>
_______________________________________________<br>
Anthill mailing list<br>
<a href="mailto:Anthill-IWHQxnLZ/[email protected]" target="_blank">Anthill-IWHQxnLZ/[email protected]</a><br>
<a href="http://lists.urbancode.com/mailman/listinfo/anthill" target="_blank">http://lists.urbancode.com/mailman/listinfo/anthill</a><br>
</blockquote></div><br>

------=_Part_22366_16532627.1214945503884--

--===============0165056051==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Anthill mailing list
Anthill-IWHQxnLZ/[email protected]
http://lists.urbancode.com/mailman/listinfo/anthill

--===============0165056051==--