| Summary: | Refactoring in AbstractAcceleoGenerator whether running in eclipse | ||
|---|---|---|---|
| Product: | [Modeling] Acceleo | Reporter: | Rainer Menke <rainer> |
| Component: | Core | Assignee: | Project Inbox <acceleo-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | stephane.begaudeau |
| Version: | 3.1.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
A fix has been contributed on HEAD and R3_2_maintenance. It will be available in Acceleo 3.2.1 and 3.3.0 Marking as resolved. Closing resolved bugs |
Build Identifier: 3.1.2.v20111005-0955 In the class AbstractAcceleoGenerator the method public void initialize(EObject element, File folder, List<? extends Object> arguments) throws IOException { calls the operation resourceSet.setURIConverter(createURIConverter()); if the condition EMFPlugin.IS_ECLIPSE_RUNNING is fulfilled. Because it is possible to require different behaviour in different runtimes ( eclipse, osgi, plain java, apache ant ) each generator has to override the initialize method of the abstract generator. Based on this fact, it would be a good idea, to move the condition into the implementation of protected URIConverter createURIConverter() of the class AbstractAcceleoGenerator. Reproducible: Always