Accelleo project does not recompile changed Java code [message #1782201] |
Tue, 20 February 2018 06:47  |
Eclipse User |
|
|
|
I'm following the tutorial (https://wiki.eclipse.org/Acceleo/Getting_Started) and things are working fine. I build a wrapper for my own Java Service which also works fine. May Java looks like:
package TOOLING_GenSystemC.services;
public class UML2Services {
public String myTestAgain(String toBeParsed){
return toBeParsed.concat("_test1");
}
}
The wrapper looks like:
[query public myTestAgain(arg0 : String) : String
= invoke('TOOLING_GenSystemC.services.UML2Services', 'myTestAgain(java.lang.String)', Sequence{arg0})
/]
And I call it like:
[let result : String = myTestAgain('TEST1')]
[result/]
[/let]
The result is as expected: 'TEST1_test1' as my Java receives the string from the template ('TEST1') and concats its own string to it ('_test1') and returns the result.
NOW THE PROBLEM:
If I change the template call to 'TEST2' and also I change my Java code to "_test2" I receive: 'TEST2_test1'
ANALYSIS:
The change in the .mtl code is recognized, but the Java change remains unchanged. Java is not recompiled.
But! : If I check the 'bin' dir for the '.class' file generated from the '.java' I see that the date has changed. I can also delete the entire 'bin' dir or use Project->clean, to have it completely re-generated. Still my java behaves as before and will answer with '_test1' even though I changed it to 'return toBeParsed.concat("_test2");'
Yes, I checked autobuild is on. That does not seem the problem. As I said I deleted all possible files from the build that I can think of and they are all re generated including the according '.class'
Where does the Accelleo project get the outdated information (Java Code) from and how can I force it to recompile?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04512 seconds