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.

Bug 203618 - JUnit calls 'Clean and Build' without need
Summary: JUnit calls 'Clean and Build' without need
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-10-12 23:46 UTC by ceklock
Modified: 2012-06-05 16:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ceklock 2011-10-12 23:46:29 UTC
'Clean and build' is called again after I run "Clean and Build" and start JUnit tests.
Comment 1 ceklock 2011-10-12 23:49:33 UTC
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)
Comment 2 ceklock 2011-10-13 02:16:38 UTC
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
Comment 3 Tomas Hurka 2011-10-13 06:12:18 UTC
Reassigning to java/project for evaluation.
Comment 4 ceklock 2011-10-21 16:00:32 UTC
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)
Comment 5 Jesse Glick 2011-10-21 19:14:52 UTC
Steps to reproduce from scratch? Are you talking about a j2seproject here, or a web project, ...?
Comment 6 ceklock 2011-10-22 01:33:22 UTC
Java SE.
Comment 7 ceklock 2011-10-22 02:46:35 UTC
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.
Comment 9 Tomas Zezula 2012-06-05 16:41:50 UTC
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.