|
Re: Acceleo - search for class [message #1698377 is a reply to message #1696934] |
Mon, 15 June 2015 08:20 |
|
Hi,
I am not sure of what you are talking about so here is what I understand from your message. In the middle of your generation of the code for a class named Test, you want to be sure if a class named Check has already been generated. You have different solution for this issue, you could use a singleton to store the list of classes that you have generated. If, in your use case, this class could have been written by your end users, you have thus no choice but to check if the class indeed exist in the file system. For that, you could expose the location where your file will be generated in a singleton (the field targetFolder of the Java launcher of your generator) and then build a Java service which would leverage this information to compute whether or not the file in question exist.
Regards,
Stephane Bégaudeau, Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.03174 seconds