You effectively can do this by forking off a separate Java/Ant process
that uses 1.4 instead of 1.5. Cheers, Tony.
On Mon, 17 Jul 2006 15:02:03 +0100, 1800 tbsfunny <[EMAIL PROTECTED]>
wrote:
I know that Ant needs a JDK. But can we start CC setting JAVA_HOME=1.5
and
ANT_HOME= and then du
nt tested on 1.6).
Jan
>-Ursprüngliche Nachricht-
>Von: 1800 tbsfunny [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 7. Juli 2006 21:21
>An: Ant Users List
>Betreff: Re: JAVA_HOME to be changed dynamically
>
>Does Junit support running with different JDKs?
>
>O
Yes. Ant itself needs a JDK >= 1.2 - but only one per run ;-)
(Personally I havent tested on 1.6).
Jan
>-Ursprüngliche Nachricht-
>Von: 1800 tbsfunny [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 7. Juli 2006 21:21
>An: Ant Users List
>Betreff: Re: JAVA_HOME to be c
s Ant is already running...
But and support using another JDK for their work.
Jan
>-Ursprüngliche Nachricht-
>Von: 1800 tbsfunny [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 5. Juli 2006 16:38
>An: Ant Users List
>Betreff: JAVA_HOME to be changed dynamically
>
che Nachricht-
>Von: 1800 tbsfunny [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 5. Juli 2006 16:38
>An: Ant Users List
>Betreff: JAVA_HOME to be changed dynamically
>
>I set JAVA_HOME=c:\jdk1.5 before running ant. At some point
>inside the an ant target I want to change
I set JAVA_HOME=c:\jdk1.5 before running ant. At some point inside the an
ant target I want to change JAVA_HOME=c:\jdk1.4. And run the remaining tests
with jdk1.4.
Can I do this?
Thanks,
-Jed