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.
Summary: | Renaming a project using variable-based references gets red error marks | ||
---|---|---|---|
Product: | projects | Reporter: | giorgio42 <giorgio42> |
Component: | Ant Project | Assignee: | Milan Kubec <mkubec> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | dkonecny, luis.boch, sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
giorgio42
2008-10-28 23:12:44 UTC
It seems that the ant-based build ignores the settings in nbproject/private/project.properties, while the NB project implementation takes them into account. Don't know whether this is a good thing... Please evaluate. Thanks The fix should be part of the first 65 patch. ReferenceHelper.fixReferences () causes this problem. Re. "ReferenceHelper.fixReferences()" - first time I've seen this method. I think the method should ignore all absolute path or paths starting with a variable in project.properties. It should try to update only relative paths pointing outside of project folder (starting with "../") which otherwise would get broken by project copy/move. Marking as fixed. Integrated into 'main-golden', will be available in build *200810311401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f376623414ee User: Milan Kubec <mkubec@netbeans.org> Log: #151648: references defined via properties won't be fixed in case the project is moved, copied, renamed Please verify this issue so it can be included in NetBeans 6.5 Patch1 I have tested this and it worked, but I got an intermittent exception (the dialog appeared and disappeared again almost immediately), from the message.log: SEVERE [org.openide.util.Exceptions] java.io.SyncFailedException: C:\home\a0796942\projects\experimental\nb\DesktopApplication1\nbproject\private\config.properties at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:287) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:245) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:215) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:213) at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:112) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:218) at org.openide.filesystems.FileUtil.copyFileImpl(FileUtil.java:365) at org.openide.filesystems.FileObject.copy(FileObject.java:121) at org.openide.filesystems.AbstractFileObject.copy(AbstractFileObject.java:641) at org.openide.filesystems.FileUtil.copyFile(FileUtil.java:426) at org.openide.filesystems.FileUtil.copyFile(FileUtil.java:441) [catch] at org.netbeans.modules.java.j2seproject.J2SEProjectOperations.restoreConfigurations(J2SEProjectOperations.java:329) at org.netbeans.modules.java.j2seproject.J2SEProjectOperations.notifyMoved(J2SEProjectOperations.java:200) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$4.execute(DefaultProjectOperationsImplementation.java:396) at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$6$1.run(DefaultProjectOperationsImplementation.java:655) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005) verified in Product Version: NetBeans IDE Dev (Build 200811181401) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Linux version 2.6.27-7-generic running on i386; UTF-8; en_US (nb) Userdir: /tmp/ud I've transplanted the changeset http://hg.netbeans.org/main/rev/f376623414ee into release65_fixes repository as http://hg.netbeans.org/release65_fixes/rev/3980ffde6a55 verified in 6.5 patch 1 |