| Summary: | Reader: allow comma-separated list for addPath() | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Karsten Thoms <karsten.thoms> |
| Component: | Xtext | Assignee: | Karsten Thoms <karsten.thoms> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | anton |
| Version: | 2.0.1 | ||
| Target Milestone: | M7 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| See Also: | https://github.com/eclipse/xtext/pull/979 | ||
| Whiteboard: | v2.10 | ||
GitHub Pull Request 979 created by [kthoms] https://github.com/eclipse/xtext/pull/979 Merged with #607ed3d54b3ad75bd4669092ffa83aa2043e4bde |
Sometimes it is not possible to add multiple paths using org.eclipse.xtext.mwe.Reader#addPath(). For example, when the generator workflow should be delivered in a plugin and its workflow invoked from outside by passing a 'modelPath' property. Suggested change: Modify method addPath(String) as follows: @Override public void addPath(String path) { for (String p : path.split(",")) { this.pathes.add(p.trim()); } }