|[Acceleo] file-exists/ generate once [message #1095762]
||Tue, 27 August 2013 13:48
| Martin Eisengardt
Registered: July 2009
Im am facing a problem. I tried to search the forums and via google but I did not get any information on it.
I have a file I want to only generate if it does not exist. If the user decides to manipulate it the changes should be kept. On normal files and codes I would simply use [protected.... but there is no way to do this on the mentioned file. It is an xml and as soon as I embedd the xml in a user code with "<!-- [protected..." the editor silently removes the comment and acceleo recreates the whole file.
To solve the issue I wrote a query and a java service (fileExists(String) : Boolean).
All I want to know is: How to I get the target generation folder within the java service? The code is running at eclipse main folder. The current working dir is not set to the generation root.
Or is there any other way to solve this request?
[Updated on: Tue, 27 August 2013 14:49]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01838 seconds