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 191061 - "Needs to be compiled" does not get cleared after full build of free form project
Summary: "Needs to be compiled" does not get cleared after full build of free form pro...
Status: CLOSED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2010-10-17 15:23 UTC by kororos
Modified: 2010-10-25 19:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Results of clean and build. Flag "needs to be compiled" still visible (243.26 KB, image/jpeg)
2010-10-17 15:23 UTC, kororos
Details
project.xml (freeform project) (6.16 KB, application/xml)
2010-10-19 21:34 UTC, kororos
Details
The updated project.xml as per suggestion (5.98 KB, application/xml)
2010-10-21 22:49 UTC, kororos
Details
The screenshot showing the problem after the suggested change was performed (411.42 KB, image/jpeg)
2010-10-21 22:50 UTC, kororos
Details
The test project (1.53 KB, application/x-gzip)
2010-10-25 08:44 UTC, Tomas Zezula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kororos 2010-10-17 15:23:54 UTC
Created attachment 102438 [details]
Results of clean and build. Flag "needs to be compiled" still visible

I have a freeform project. The project has two packages. Once I clean and build the whole project the flag "Needs to be compiled" disappears from the one of the two packages. However, both packages have been compiled and wokring properly. 

Initially thought that this is the same as issue #161673 but this has been resolved in 6.8 (according to the issue report). 

I am also attaching the screenshot.
Comment 1 Tomas Zezula 2010-10-19 13:41:25 UTC
Please attach the project.xml file.
Thanks
Comment 2 kororos 2010-10-19 21:34:33 UTC
Created attachment 102499 [details]
project.xml (freeform project)

Please find attached the project.xml as requested.
Comment 3 Tomas Zezula 2010-10-21 08:09:41 UTC
The problem is caused due to mixed compilation units.
The project has 2 compilation unit which is fine but they have mixed artifact (output) folder.

 <compilation-unit>
                <package-root>plugins/net.sourceforge.homekeeper.core/source</package-root>
                <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/log4j.jar;lib/swing-layout-1.0.4.jar;lib/mysql-connector-java-5.1.13-bin.jar</classpath>
                <built-to>build/plugins/net.sourceforge.homekeeper.core/classes</built-to>
                <built-to>build/plugins/net.sourceforge.homekeeper.bills/classes</built-to>
                <source-level>1.6</source-level>
            </compilation-unit>
            <compilation-unit>
                <package-root>plugins/net.sourceforge.homekeeper.bills/source</package-root>
                <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/swing-layout-1.0.4.jar;build/plugins/net.sourceforge.homekeeper.core/classes</classpath>
                <built-to>build/plugins/net.sourceforge.homekeeper.core/classes</built-to>
                <built-to>build/plugins/net.sourceforge.homekeeper.bills/classes</built-to>
                <source-level>1.6</source-level>
            </compilation-unit>


The first cu (homekeeper.core) is a library of the second cu (homekeeper.bills).  You probably want to change the cu's <build-to> in the following way:

<compilation-unit>
                <package-root>plugins/net.sourceforge.homekeeper.core/source</package-root>
                <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/log4j.jar;lib/swing-layout-1.0.4.jar;lib/mysql-connector-java-5.1.13-bin.jar</classpath>
                <built-to>build/plugins/net.sourceforge.homekeeper.core/classes</built-to>
                <source-level>1.6</source-level>
            </compilation-unit>
            <compilation-unit>
                <package-root>plugins/net.sourceforge.homekeeper.bills/source</package-root>
                <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/swing-layout-1.0.4.jar;build/plugins/net.sourceforge.homekeeper.core/classes</classpath>
                <built-to>build/plugins/net.sourceforge.homekeeper.bills/classes</built-to>
                <source-level>1.6</source-level>
            </compilation-unit>
Comment 4 kororos 2010-10-21 22:47:02 UTC
Hello and thank you for your reply. 

However, please note that I have updated project.xml according to your recommendation but the problem still exists. I am attaching the new project.xml (renamed it to project.xml_new) and a new screenshot. 

I am reopening the issue.
Comment 5 kororos 2010-10-21 22:49:45 UTC
Created attachment 102554 [details]
The updated project.xml as per suggestion
Comment 6 kororos 2010-10-21 22:50:48 UTC
Created attachment 102555 [details]
The screenshot showing the problem after the suggested change was performed
Comment 7 Tomas Zezula 2010-10-25 08:44:06 UTC
Still works for me. Seems caused by the project set up.
I am attaching a simple freeform where file built status works fine (tested in dev build).
The freeform project sometimes requires IDE restart after change of the project metadata, this may be the problem.
Comment 8 Tomas Zezula 2010-10-25 08:44:53 UTC
Created attachment 102604 [details]
The test project
Comment 9 kororos 2010-10-25 17:35:32 UTC
I confirm that after restarting the IDE, the problem has gone away.
Comment 10 Tomas Zezula 2010-10-25 19:43:50 UTC
OK, thanks.