This page is no longer maintained — Please continue to the home page at www.scala-lang.org

[netbeans] deprecation

2 replies
Michael Davey
Joined: 2009-09-10,
User offline. Last seen 42 years 45 weeks ago.

hi guys

Q1 can I control the -deprecation flag from within the nb plugin? I
have the deprecation warning but finding out where I am to run scalac
manually is tiresome

Q2 where do I look for answers to questions like this in future?

thanks
michael

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] deprecation

Michael Davey-5 wrote:
>
> hi guys
>
> Q1 can I control the -deprecation flag from within the nb plugin? I
> have the deprecation warning but finding out where I am to run scalac
> manually is tiresome
>
> Q2 where do I look for answers to questions like this in future?
>
> thanks
> michael
>
>

Q1: Not in NetBeans yet, but you can add 'deprecation="yes"' in
nbproject/build_impl.xml directly, then, click "build" in NetBeans will
print deprecation and can click to jump to source line. I'll improve it
later.

Q2: Here.

-Caoyuan

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: [netbeans] deprecation

On Sat, Oct 10, 2009 at 10:55 AM, dcaoyuan wrote:
>
>
>
> Michael Davey-5 wrote:
>>
>> hi guys
>>
>> Q1 can I control the -deprecation flag from within the nb plugin? I
>> have the deprecation warning but finding out where I am to run scalac
>> manually is tiresome
>>
>> Q2 where do I look for answers to questions like this in future?
>>
>> thanks
>> michael
>>
>>
>
>
> Q1: Not in NetBeans yet, but you can add 'deprecation="yes"' in
> nbproject/build_impl.xml directly, then, click "build" in NetBeans will
> print deprecation and can click to jump to source line. I'll improve it
> later.

It seems adding "--deprecation" via NetBeans project properties works,
but only first param in "Additional Compiler Options" works, it's bug
of Scala ant tool.

-Caoyuan

>
> Q2: Here.
>
> -Caoyuan
> --
> View this message in context: http://www.nabble.com/-scala-tools---netbeans--deprecation-tp25804512p25...
> Sent from the Scala - Tools mailing list archive at Nabble.com.
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland