Build trunk with Java 7

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build trunk with Java 7

Jacques Le Roux
Administrator
Hi,

Currently when you build the trunk with Java 7 all works but you get this warning:

[options] bootstrap class path not set in conjunction with -source 1.6

I suggest we change in macros.xml

     <presetdef name="javac16">
         <default-javac compiler="javac1.6" target="1.6" source="1.6" encoding="UTF-8" sourcepathref="src-path" includeantruntime="false">

to

     <presetdef name="javac17">
         <default-javac compiler="javac1.7" target="1.7" source="1.7" encoding="UTF-8" sourcepathref="src-path" includeantruntime="false">

But this would also mean we begin to recommend using Java 7 for the trunk (did someone test R13.07?)

We spoke already about that somehow.
Lastly with http://markmail.org/message/t54rr3zul3f5cvtx
Since then we know it's OK to build and run the trunk under Java 7. But there is an issue with tests because of their order and Junit.

Opinions?

Jacques
Reply | Threaded
Open this post in threaded view
|

Re: Build trunk with Java 7

Adrian Crum-3
I already have a patch to build OFBiz with Java 7, but I won't commit it
until we have the tests fixed.

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 4/30/2014 3:03 AM, Jacques Le Roux wrote:

> Hi,
>
> Currently when you build the trunk with Java 7 all works but you get
> this warning:
>
> [options] bootstrap class path not set in conjunction with -source 1.6
>
> I suggest we change in macros.xml
>
>      <presetdef name="javac16">
>          <default-javac compiler="javac1.6" target="1.6" source="1.6"
> encoding="UTF-8" sourcepathref="src-path" includeantruntime="false">
>
> to
>
>      <presetdef name="javac17">
>          <default-javac compiler="javac1.7" target="1.7" source="1.7"
> encoding="UTF-8" sourcepathref="src-path" includeantruntime="false">
>
> But this would also mean we begin to recommend using Java 7 for the
> trunk (did someone test R13.07?)
>
> We spoke already about that somehow.
> Lastly with http://markmail.org/message/t54rr3zul3f5cvtx
> Since then we know it's OK to build and run the trunk under Java 7. But
> there is an issue with tests because of their order and Junit.
>
> Opinions?
>
> Jacques
Reply | Threaded
Open this post in threaded view
|

Re: Build trunk with Java 7

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
This did not get through, again...

Jacques

Le 30/04/2014 12:03, Jacques Le Roux a écrit :

> Hi,
>
> Currently when you build the trunk with Java 7 all works but you get this warning:
>
> [options] bootstrap class path not set in conjunction with -source 1.6
>
> I suggest we change in macros.xml
>
>     <presetdef name="javac16">
>         <default-javac compiler="javac1.6" target="1.6" source="1.6" encoding="UTF-8" sourcepathref="src-path" includeantruntime="false">
>
> to
>
>     <presetdef name="javac17">
>         <default-javac compiler="javac1.7" target="1.7" source="1.7" encoding="UTF-8" sourcepathref="src-path" includeantruntime="false">
>
> But this would also mean we begin to recommend using Java 7 for the trunk (did someone test R13.07?)
>
> We spoke already about that somehow.
> Lastly with http://markmail.org/message/t54rr3zul3f5cvtx
> Since then we know it's OK to build and run the trunk under Java 7. But there is an issue with tests because of their order and Junit.
>
> Opinions?
>
> Jacques