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 168023 - build-impl.xml is not regenerated after migration to new NetBeans
Summary: build-impl.xml is not regenerated after migration to new NetBeans
Status: RESOLVED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-02 10:37 UTC by pzajac
Modified: 2009-07-20 13:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
troublesome build-impl.xml (1.41 KB, text/plain)
2009-07-02 13:25 UTC, pzajac
Details
nbproject.zip (9.27 KB, application/octet-stream)
2009-07-07 07:29 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2009-07-02 10:37:41 UTC
We probably started development of application based on NetBeans 5.0. We migrated to new NB platform every new NB
release. We found build-impl.xml file was not regenerated for all modules in suite. It causes a lot of problems. Is it
possible to regenete the build-impl.xml files for all projects in suite?
Comment 1 rmichalsky 2009-07-02 12:33:15 UTC
What problems does it cause? 6.7 harness should build 6.5 and older modules/suites without problems, however some manual
tweaks in platform.properties or build.xml can break it. If you didn't do manual changes, the bug is rather in harness
than in IDE. AFAIK the policy is that project metadata should not change just by opening the project in newer version.

If you want to re-generate build-impl.xml, changing something in Suite Properties -> Libraries should do.
Comment 2 pzajac 2009-07-02 13:25:09 UTC
Created attachment 84305 [details]
troublesome  build-impl.xml
Comment 3 pzajac 2009-07-02 13:27:17 UTC
I attached troublesome build-impl.xml. I was not able to debug or run from modules build.xml. 
Comment 4 Jesse Glick 2009-07-02 17:17:59 UTC
build-impl.xml ought to be regenerated if you open the project in a new IDE. If not, it's a bug. Can you reproduce?

"project metadata should not change just by opening the project in newer version" is true for primary configuration such
as project.xml, not for generated build scripts.

BTW as of NB 6.7 the IDE remembers in genfiles.properties which version of the module generated build-impl.xml, so
reopening the project in the old IDE again will not cause build-impl.xml to be replaced with the old version.
Comment 5 pzajac 2009-07-07 07:26:46 UTC
genfiles.properties is not updated for some projects. For example I tried to add a dependency to project. Project.xml
was updated corretly. But genfiles.properties was the same. Last modification of genfiles.properties was done at      
2007-10-12 05:17:04. I'll attach packed nbproject folder.     
Comment 6 pzajac 2009-07-07 07:29:29 UTC
Created attachment 84425 [details]
nbproject.zip
Comment 7 Jesse Glick 2009-07-07 15:47:58 UTC
Your ZIP shows nbproject/build-impl.xml modified Jul 2nd and nbproject/genfiles.properties modified Jun 23rd.

Do you have a test case to reproduce?
Comment 8 pzajac 2009-07-07 17:18:26 UTC
My coworker doesn't have such problems like me. The files are correctly regenerated on his computer. I don't have any
idea what's wrong on my computer (Ubuntu). 
Comment 9 rmichalsky 2009-07-20 13:34:28 UTC
I cannot reproduce this. What I did:
1) I've set up suite with 2 projects and some classes in them in NB 6.5 with 6.5 platform, harness supplied with IDE
 - clean, build works, uses "old" (i.e. 6.5) build-impl.xml files
2) I've added the same platform to platform mgr in NB 6.7, opened the suite and one of the modules
 - clean, build works, only suite private.properties were changed, that's ok
3) Disabled some clusters in Suite Libraries
 - build-impl.xml in suite re-generated correctly, genfiles.properties updated, clean, build works
 - module files unchanged
4) Added module dep in one of the modules and used it in code
 - build-impl.xml in module re-generated correctly, genfiles.properties updated, clean, build works

Then I tried the same with harness supplied with Platform (i.e. "old" harness), everything works as well, only
build-impl.xml are not re-generated at all as expected.

Closing, feel free to reopen when you find reproducible test case.