Is there a way to stop NetBeans scanning projects?

前端 未结 21 2092
孤街浪徒
孤街浪徒 2020-12-07 18:34

I don\'t have much memory on my PC and a pretty weak processor. Although netbeans is by far my favorite IDE it is almost unbearable to use on my present computer because of

21条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 18:51

    If your project is a Maven structured project you can use a simple trick to make your and NetBeans life a lot easier.

    I have my projects inside of c:\dev on my machine. That's the place where Netbeans is working with. If I build in this folder then NetBean's background process get very busy.

    But if I copy the c:\dev\trunk project for example to c:\deploy\trunk before I start mvn clean install inside of c:\build\trunk then NetBeans does not need to scan the changes that happen in this folder. It does not know about it.

    I use on a windows machine:

    robocopy c:\dev\trunk c:\deploy\trunk /MIR /NFL /NS /NC /NDL /XD ".svn"

    It is a windows native command. No additional installation necessary.

    It helped me a lot decrease build time and also to avoid never ending scans on Netbeans.

    If you use tools like JRebel you can still work like this when you update the changed classes to your c:\deploy\trunk folder. You can use the same command.

    It is of course a bit of a workaround, but it helps a lot. :-)

提交回复
热议问题