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 44392 - Need some way of excluding new wizard attrs from FileUtil.copyFile
Summary: Need some way of excluding new wizard attrs from FileUtil.copyFile
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords: API, REGRESSION
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-06-07 00:50 UTC by Jesse Glick
Modified: 2008-12-22 16:13 UTC (History)
2 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 Jesse Glick 2004-06-07 00:50:28 UTC
I just noticed that my attributes.xml is full of
crap like this:

    <fileobject
name="|space|src|nb_all|ant|test|unit|data|targetlister|dir1|dir3">
        <attr name="instantiatingIterator"
serialvalue=""/>
        <attr name="instantiatingWizardURL"
urlvalue="nbresloc:/org/netbeans/modules/project/ui/resources/templatesFolder.html"/>
        <attr name="templateCategorized"
boolvalue="true"/>
        <attr name="templateCategory"
stringvalue="category_simpleFileTypes"/>
        <attr name="templateType_Other"
boolvalue="true"/>
    </fileobject>

just from making a new folder from template! This
is very bad.

Currently FileUtil.copyAttributes uses a fixed
table (transientAttributes), which is now out of date.

Either need to continue this hack, expanding the
fixed list of attrs to match various attr patterns
used in templates (e.g. "templateType_.*"), or
provide a real SPI for specifying what to copy.
Comment 1 David Konecny 2004-06-07 13:11:25 UTC
Talked with Hrebejk and Jirka about this and we will extend current
mechanism with names of new attrs. Ugly.
Comment 2 David Konecny 2004-06-07 13:12:42 UTC
wanted to say "expand current list..."
Comment 3 David Konecny 2004-06-08 14:30:49 UTC
Fixed in:
src/org/openide/filesystems/FileUtil.java
new revision: 1.99; previous revision: 1.98