|[Acceleo] Filename based on result of EOperation [message #1781429]
||Wed, 07 February 2018 09:44
| Bruce Trask
Registered: July 2009
I would like to generate a file whose name depends on the result of a called EOperation which returns a string.|
So instead of doing this:
[file ('APPLICATION.'.concat(application.name), false, 'UTF-8')]
which works fine.
I would like to do this where getPropertyFileName is an EOperation I have added to the application model element.
[file ('APPLICATION.'.concat(application.getPropertyFileName()), false, 'UTF-8')]
But I get an error from Acceleo:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Couldn't evaluate URL of the file at line 310 in Module generate for block file('APPLICATION.'.concat(application.getPropertyFileName()), false, 'UTF-8'). Last recorded value of self was mymodel.impl.ApplicationImpl@3c77d488 (name: MyApp).
Not sure what the error message is doing to help me here?
Does the Acceleo file creation support the calling of an EOperation? It shows up as valid when I do ctrl-space.
[Updated on: Wed, 07 February 2018 09:45]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02082 seconds