This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
'Clean and build' is called again after I run "Clean and Build" and start JUnit tests.
Product Version: NetBeans IDE Dev (Build 201110110600) Java: 1.6.0_27; Java HotSpot(TM) Client VM 20.2-b06 System: Windows 7 version 6.1 running on x86; Cp1252; en_BR (nb)
Even if I have "Compile on Save" enabled and don't run "Clean and Build" before, when I start JUnit tests it cleans all the code and recompile again... init: deps-jar: Updating property file: C:\Users\Carlos\Desktop\projetos_java\logics\build\built-jar.properties init: deps-clean: Updating property file: C:\Users\Carlos\Desktop\projetos_java\logics\build\built-clean.properties Deleting directory C:\Users\Carlos\Desktop\projetos_java\logics\build clean: Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\classes Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\empty Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\generated-sources\ap-source-output Compiling 2328 source files to C:\Users\Carlos\Desktop\projetos_java\logics\build\classes Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying 471 files to C:\Users\Carlos\Desktop\projetos_java\logics\build\classes Copied 42 empty directories to 1 empty directory under C:\Users\Carlos\Desktop\projetos_java\logics\build\classes compile: Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\test\classes Compiling 67 source files to C:\Users\Carlos\Desktop\projetos_java\logics\build\test\classes Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying 20 files to C:\Users\Carlos\Desktop\projetos_java\logics\build\test\classes compile-test: Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\test\results
Reassigning to java/project for evaluation.
When I run "Profile main project", the profiler also calls "Clean and Build" without need before the program is run/profiled, when "Compile on Save" is enabled. init: profile-init: Deleting: C:\Users\Carlos\Desktop\projetos_java\logics\build\built-jar.properties deps-jar: Updating property file: C:\Users\Carlos\Desktop\projetos_java\logics\build\built-jar.properties init: deps-clean: Updating property file: C:\Users\Carlos\Desktop\projetos_java\logics\build\built-clean.properties Deleting directory C:\Users\Carlos\Desktop\projetos_java\logics\build clean: Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\classes Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\empty Created dir: C:\Users\Carlos\Desktop\projetos_java\logics\build\generated-sources\ap-source-output Compiling 2345 source files to C:\Users\Carlos\Desktop\projetos_java\logics\build\classes Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying 472 files to C:\Users\Carlos\Desktop\projetos_java\logics\build\classes compile: profile: Agente Profiler: aguardando conexão na porta 5140, tempo de espera 10 segundos (Versão do protocolo: 11) Agente Profiler: conexão estabelecida com a ferramenta Agente Profiler: sessão local acelerada ... Product Version: NetBeans IDE 7.0.1 (Build 201107282000) Java: 1.6.0_29; Java HotSpot(TM) Server VM 20.4-b02 System: Windows 7 version 6.1 running on x86; Cp1252; en_BR (nb)
Steps to reproduce from scratch? Are you talking about a j2seproject here, or a web project, ...?
Java SE.
Steps to reproduce: - Open a big project with many packages and classes; - Make sure "Compile on Save" is enabled; - Do "CVS Update" or "Clean and Build"; - Run a class.
Related bugs: http://netbeans.org/bugzilla/show_bug.cgi?id=203858 http://netbeans.org/bugzilla/show_bug.cgi?id=203351 http://netbeans.org/bugzilla/show_bug.cgi?id=204074
No clean and build is done. Clean copy of Compile On Save classes is done. The CoS needs to ensure that the classes you run by it were created by indexer. You can turn the compile on save off.