Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338684 - put templates, extensions and workflow in a prefixed directory in the generator plugin
Summary: put templates, extensions and workflow in a prefixed directory in the generat...
Status: CLOSED INVALID
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 10:30 EST by Lorenzo Bettini CLA
Modified: 2011-03-02 10:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Bettini CLA 2011-03-02 10:30:22 EST
the Xtext generator, when it generates the generator plugin of the DSL, say MyDsl, puts the extension files, the template files and the workflow file in the directories 'extensions', 'templates' and 'workflow' respectively.

Since these directories are not prefixed with anything that identifiers MyDsl, files ext, xpt and mwe2 files with the same name, belonging to different xtext generator plugins may clash.

For instance, if in your development workspace you have two dsl plugins (which have nothing to do with each other), say mydsl1 and mydsl2, and they both happen to have a template Main.xpt, in the runtime environment one of the two Main.xpt will override the other, with unpredictable behavior if you run xpand generation.

A very easy and safe solution would be to prefix extensions, templates and workflow directories with something concerning the dsl, e.g., mydsl::extensions, mydsl::templates, mydsl::workflow.
Comment 1 Sebastian Zarnekow CLA 2011-03-02 10:34:34 EST
Closed as invalid (because there is no 'obsolete') since we want to get rid of the dedicated generator plugin and the Xtend / Xpand stubs infavor of a Xtend2 based generator.
Comment 2 Lorenzo Bettini CLA 2011-03-02 10:42:34 EST
OK. I had raised the question on the newsgroup a few weeks ago, and I was told that it could have been a good feature request... sorry for the noise then :)