You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacques Le Roux <ja...@les7arts.com> on 2014/04/30 12:03:31 UTC

Build trunk with Java 7

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

Re: Build trunk with Java 7

Posted by Jacques Le Roux <ja...@les7arts.com>.
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

Re: Build trunk with Java 7

Posted by Adrian Crum <ad...@sandglass-software.com>.
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