[oXygen-user] debugging a java extension?

Kai Hackemesser
Mon May 21 07:11:25 CDT 2007


Hello,

I mean I'm editing xsl files, xml files (and currently a java class) in 
the oXygen XSLT Debugger perspective. I have set up the scenario in the 
XSLT Debugger view and start it from there as needed. I do kind of 
trial-and-error development in my xsl, so this is the fastest way to 
produce the results I need. But when I start a new translation the java 
class which may have changed in the meantime isn't refreshed, but the 
old one keeps getting used. For each transaction. Until I restart 
Eclipse. But I'm currently not sure about what I wrote in my last mail, 
because it still needs a eclipse restart sometimes.

Kind regards,
Kai

Sorin Ristache schrieb:
> Hello,
>
> What do you mean by working continuously in the Debugger? Do you mean 
> that you update the extension class/jar and you expect that the new 
> version is used in the same debugging session? That does not work, the 
> extension is loaded when the transformation is started. The extension 
> will be refreshed at the next transformation. This is also true for 
> the Editor perspective.
>
>
> Regards,
> Sorin
>
>
> Kai Hackemesser wrote:
>> I found that the extension class is reloaded when I use the way you 
>> described below. But it doesn't work when I'm working in the Debugger 
>> continuously (what I usually do).
>>
>> Sorin Ristache schrieb:
>>> Hello,
>>>
>>> You should set the extensions in a transformation scenario in the 
>>> Editor perspective and start the debugger with the Debug Scenario 
>>> action. If you add the extensions in the Debugger perspective using 
>>> the Edit extensions button then they are not saved.
>>>
>>> I cannot reproduce the problem of refreshing the extension. Can you 
>>> send us sample files for reproducing?
>>>
>>>
>>> Regards,
>>> Sorin
>>>
>>>
>>> Kai Hackemesser wrote:
>>>> That would be the behavior I would expect, but I tried several 
>>>> times and controlled the log output. Even when I commented out my 
>>>> log statements the log showed them again and again. I had to 
>>>> restart Eclipse to get the extension class correctly reloaded. BTW, 
>>>> it is annoying that the configuration of extensions get lost 
>>>> between Eclipse sessions, because I always have to set them up again.
>>>>
>>>> Ciao!
>>>> Kai
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>




More information about the oXygen-user mailing list