| Summary: | XText uses project name from .project file during generation of genmodel file and java artifacts | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Andreas Lüdeke <andreas> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Andreas Lüdeke
We use EMF's platform:/resource URI scheme which at runtime also relies on the information from .project files. So we do use that at runtime in order to be able to get the same behavior. Why does your build job fail if you check in the .project file? (In reply to comment #1) > We use EMF's platform:/resource URI scheme which at runtime also relies on the > information from .project files. So we do use that at runtime in order to be > able to get the same behavior. > > Why does your build job fail if you check in the .project file? Its the other way around. The build only succeeds if the .project file is submitted. From my point of view submitting this file isn't a good practice. Its getting modified depending on the workspace configuration of the user (e.g builder for checkstyle or other stuff), so changes are always accidentally submitted and the file gets messed up. I just have seen that it (could be) quiet easy to inject the project path configured in the mwe2 file into the ECoreFragmentGenerator. Isn't that a possible option? The EcoreGeneratorFragment relies on what's in EcorePlugin.getPlatformResourceMap(). To add an entry you can simple call some java class wihch does : EcorePlugin.getPlatformResourceMap().put(projectName, URI.createFileURI(pathToProject)); from within your workflow. |