Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359139 - Defer filename denormalisation till emission
Summary: Defer filename denormalisation till emission
Status: CLOSED WONTFIX
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows Vista
: P3 enhancement
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 16:18 EDT by Ed Willink CLA
Modified: 2016-04-05 10:30 EDT (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 Ed Willink CLA 2011-09-27 16:18:08 EDT
The preview mode allows the FileBlock to support multiple returns, unfortunately Windows filename denormalisation occurs during generate() rather than after, consequently the keys in the results map are OS-dependent and differ from the original argument.

If instead the FileBlock argument is evaluated and used as-is as the results key, the Preview mode is more portable and the keys more predictable.
Comment 1 Laurent Goubet CLA 2016-04-05 10:30:30 EDT
This is deeply embedded in the code of Acceleo since we use the java.io.File api for every manipulation right from when the file block is evaluated (see org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationContext.getFileFor(String)) . There will not be changes on that aspect.