No, not new.  I think the environment conditions have changed a bit,
though, javac used to be able to respect the :target specification under
all circumstances but it now it can't compile 1.7 source and target 1.6
without explicitly stating it.

In other words, what's new is that people are now using JDK 1.7.

I'll fix the documentation.


On Thu, Oct 3, 2013 at 7:03 AM, Jean-Philippe Caruana 
<[email protected]>wrote:

> Le 03/10/2013 15:40, Alex Boisvert a écrit :
> > You also need to specify :source => '1.6' to your compile options.
>
> Hi Alex,
>
> Thanks, it works !
> Is that new ? In my old buildr days (3 years ago), I just had to specify
> :target and not :source if I recall (I found a working buildfile with
> java 5).
>
> The documentation doesn't say so, see
> https://buildr.apache.org/building.html :
> You can change various compile options by calling, you guessed,
> compile.options. For example, to set the compiler to VM compatibility
> with Java 1.5 and turn on all Lint messages:
>
> compile.options.target = '1.5'
> compile.options.lint = 'all'
>
> Or, if you want to chain methods together:
>
> compile.using :target=>'1.5', :lint=>'all'
>
> --
> Jean-Philippe Caruana - [email protected]
> http://www.target2sell.com
>

Reply via email to