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 142958 - 'Get Local Copy' action for referenced resource
Summary: 'Get Local Copy' action for referenced resource
Status: CLOSED WONTFIX
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 18:55 UTC by Kirill Sorokin
Modified: 2009-11-09 11:25 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2008-08-05 18:55:50 UTC
Currently if I create a variable whose type comes from a schema in the global catalog, an import statement is created in
the BPEL file, but the actual file is not present anywhere in the project (and its catalog). We should rethink this
behavior as it is likely to often break the runtime. Especially as we broaden the set of schemes available in the catalog.
Comment 1 Sergey Lunegov 2008-10-01 15:15:41 UTC
Vladimir, please take a look.
Comment 2 Vladimir Yaroslavskiy 2008-10-15 10:50:31 UTC
Looks like feature which should be discussed in details,
requirements must be specified and this task will be
passed for XML team to implement it in Catalog [Support]/
Retriever modules.
Comment 3 Vladimir Yaroslavskiy 2008-10-27 15:16:42 UTC
Kirill, please, provide requirements for XML team which we discussed on Friday, October 24 on Referenced meeting.
Comment 4 Kirill Sorokin 2008-10-28 20:21:11 UTC
Yeah, sorry for the delay. Our discussions boiled down to two things:

1) The BPEL global catalog acts as a sort of centralized storage of schemes (and potentially other XML-based resources)
which are readily available for reuse @ development time. This is a good thing, but we need to allow the developers to
manage this storage, i.e. add, edit, update, and remove entries. I believe that the catalog should be visualized somehow
in the Service tab and provide the required actions for the users.

2) We need to have an easy way of "localizing" the resources from the catalog. I.e. whenever a user imports a
catalog-based schema to one of his files, we need to put a copy of it locally (within the project, but outside the
actual sources) and to reference it properly from the project's catalog. This way the resource will be correctly
packaged @ build time and will be available to the target runtime system, also doing this will help us ensure the
portability of projects between different development environments whose global catalogs will (in general case) differ. 

2.1) Once the resource has been cached locally from the global catalog, there should be an easy way for the user to
"refresh" the local copy from the catalog.

I'm not sure which part should be implemented on the XML support side, which -- on the BPEL side, so now I'm reassigning
to XML for evaluation.
Comment 5 Sergey Lunegov 2008-11-21 14:13:00 UTC
Sam, we'd like this one to be implemented in 7.0.
Comment 6 Samaresh Panda 2008-12-03 23:26:30 UTC
I suggest you go ahead with #2 and make a copy in your project. Use the retriever APIs to copy so that it creates
catalog in entries in the project.
Comment 7 Kirill Sorokin 2008-12-04 08:30:55 UTC
Okay, reassigning to meself then.
Comment 8 Vladimir Yaroslavskiy 2009-03-03 13:16:59 UTC
What should be implemented: "Localize" action in popup menu of a resource which
retrieves the file to somewhere in <project>/nbbuild/private folder and change
the record in catalog.xml. After this action the reference points to the local
copy of the file. Note, that this action can not be rolled back.
Comment 9 Vladimir Yaroslavskiy 2009-06-29 09:07:57 UTC
As it was discussed, the action should be "Get Local Copy",
which gets the local copy of the resources, and copies it
into "src" folder. It doesn't modify origin reference
resource and allows freedom for user to use/delete/
modify reference resource and its local copy together
as he/she wishes.
Comment 10 Vladimir Yaroslavskiy 2009-07-01 12:23:55 UTC
After team meeting it was decided not to implement this feature.
Comment 11 terrybraun 2009-11-09 11:25:03 UTC
With the decision [documented above] to not implement this feature, this ticket is closed to get it off the books. If necessary, it should be reopened with appropriate requirements.