Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359139

Summary: Defer filename denormalisation till emission
Product: [Modeling] Acceleo Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: laurent.goubet
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

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.