Community
Participate
Working Groups
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.
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.