Closed GerardPaligot closed 9 years ago
Can you please print the contents of the paper-example01\src\
and if still existent the paper-example01\src\example01
folder after the propagation of the changes.
Maybe you are deleting the java files from the src folder and are moving them to the java project directory. ARTE is only searching in the src folder.
Do you talk about /var/folders/yd/kdk6_3wn4fvc71sblyjpgnn80000gn/T/tmp_ttc/paper-example01
? If yes, this directory doesn't exist before and after the test case.
Yes, this is a temporal copy, which is created before the test and directly deleted after the test.
E.g. in the synchronizeChanges()
method you can access it.
So I mustn't print my sources refactored at this place?
You have to print your refactored sources at this place but they are only kept until the test case has been executed.
At the moment I am interested which files are there available after your refactoring.
You can only list them before synchronize()
returns as in the test case "pub_pum1_1_paper1" after the call of synchronize()
ARTE performs static checks, tries to compile and execute the program and then deletes everything.
Ok, so I generated sources on a personal directory (~/Documents/paper-examples01
) and files generated are:
paper-example01
+ example01
+ ChildClass1.java
+ ChildClass2.java
+ ParentClass.java
But you said that sources must to be generated in a src
folder in paper-example01
directory. So, should I modify your location given in createProgramGraph
to generate sources in a src
folder? For me, ARTE should give me directly the good folder.
Yes, the structure of the java projects is oriented on standard eclipse projects. We require always a src folder. This simplifies the handling of e.g external. libraries in jar files for us.
In the example the structure has to be:
paper-example01
+src
+ example01
+ ChildClass1.java
+ ChildClass2.java
+ ParentClass.java
Ok, that was that. Everything works fine when I modify the program location to generate in a src folder. Thanks.
I have always a problem with the execution of sources generated after the refactoring. I'm trying to execute the test case
pub_pum1_1_paper1
and I create a JUnit test case which make the exactly same assert of your test (and the test case is green) but, when ARTE would like to execute the generated sources, it didn't find sources.For information, I generate sources in the folder specified in
createProgramGraph
(like confirmed there) and I print sources onsynchronizeChanges
method and this is the output of the test case: