ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "1800 tbsfunny" <1800tbsfu...@gmail.com>
Subject Re: JAVA_HOME to be changed dynamically
Date Mon, 17 Jul 2006 14:02:03 GMT
I know that Ant needs a JDK. But can we start CC setting JAVA_HOME=1.5 and
ANT_HOME=<some-ant-version> and then during the build change JAVA_HOME=1.4

Thanks,
-Jed

On 7/10/06, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
>
> 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:1800tbsfunny@gmail.com]
> >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?
> >
> >On 7/6/06, Jan.Materne@rzf.fin-nrw.de
> ><Jan.Materne@rzf.fin-nrw.de> wrote:
> >>
> >> What do you mean with "run the remaining tests with jdk1.4" ?
> >>
> >>   JDK1.5   <project>
> >>   JDK1.5      <echo/>
> >>   JDK1.5      <switchJDK/>
> >>   JDK1.4      <echo>
> >>   JDK1.4   </project>
> >>
> >> something like that? That isnt possible as Ant is already running...
> >> But <java> and <javac> support using another JDK for their work.
> >>
> >>
> >> Jan
> >>
> >> >-----Urspr√ľngliche Nachricht-----
> >> >Von: 1800 tbsfunny [mailto:1800tbsfunny@gmail.com]
> >> >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 JAVA_HOME=c:\jdk1.4.
> >> >And run the remaining tests with jdk1.4.
> >> >
> >> >Can I do this?
> >> >
> >> >Thanks,
> >> >-Jed
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message