Feature request for a new xml tag
Brought to you by:
alexandrefau,
mauceric
I've been trying to fix my java code by running the translator through the 2 phases of the Java Compatible Refactoring.
To do this, I need to recompile the generated Java project, see what breaks & then fix that in my original source.
I'd like two new xml tags (and optionally, checkboxes in the plugin UI) which allow the translator to stop automatically after the first and the second pass of the Java Compatible Refactoring
Currently, I wait by my computer at around the time I expect each pass to end, and then kill eclipse when the translator starts the next pass. It's crude, but it works...
Unfortunately, it requires me to be there. and I cannot automate the process.
This is the purpose of that : https://sourceforge.net/projects/j2cstranslator/forums/forum/787970/topic/3588884
Hmm, yes, that makes sense.
I have some other rich reporting ideas too, such as, the ability for each translating option to log which files, methods & lines were affected.
I still have a ways to go to get my first complete C# translation, but when I get there, I would be interested in helping find ways to augment the translation process.
I still don't know how Eclipse plugins work. :)
Have you seen the wiki : https://sourceforge.net/apps/mediawiki/j2cstranslator/index.php?title=Main_Page ?
Umm, yes, not sure why you asked the question.
It's almost my bible now. :)
I've spent the last several weeks 'polishing' our java code, applying several transformations to our source code such as converting anonymous classes to private static inner classes, cleaning up switch statements with case fall throughs etc.
Both my source code & my test suite now successfully go through the first & second pass of the java compatible refactoring without producing any errors in the generated source.
So, on to the next pass - producing C#, figuring out the edge conditions, providing overrides, running the produced NUnit test suite against the C# sources, verifying the translation, etc. etc. Finally, I need to automate this process, since our core development doesn't stop.
If you download the last version of the plugin you can add in the xml file used for the command line version that attribute : configurationFileName="c:\temp\myjava2csharp.xml".
It allow you to "customize" the translation.
You can look the original "java2csharp.xml" here : http://j2cstranslator.svn.sourceforge.net/viewvc/j2cstranslator/trunk/EclipsePlugin/configuration/java2csharp.xml?revision=232&view=markup .
Just copy it, put it somewhere on your drive (reference it as mentioned above).
You can see in that file the description for each "pass" (the 1, 2, 4, 7 and 11 are quite special right now).
If you want to disable a pass, just change the 'launch="true"' into 'launch="false"'.
@
I see. Appreciate it. Thanks