[ https://issues.apache.org/jira/browse/TUSCANY-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525399 ]
Kelvin Goodson commented on TUSCANY-1638: ----------------------------------------- In the absence of a test case for this I manually altered the value of org.eclipse.emf.common.EMFPlugin.IS_ECLIPSE_RUNNING to true in an eclipse debug session and observed different behaviour. I made the changes suggested and observed that the generation then proceeded OK with the variable value once again altered to true. Please could you try out the updated code that I committed in http://svn.apache.org/viewvc?view=rev&revision=573214 and see if it fixes your problem. I will leave the JIRA open pending your feedback. My guess is it is not easy to provide a test case to exhibit the problem, but if you can it would be greatly appreciated. > SDO command-line code generator behaves differently than standalone when > invoked in Eclipse > ------------------------------------------------------------------------------------------- > > Key: TUSCANY-1638 > URL: https://issues.apache.org/jira/browse/TUSCANY-1638 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Tools > Affects Versions: Java-SDO-1.0 > Environment: OS is Windows XP Professional SP2, and the SDO command > line tool is invoked in side an Eclipse 3.3 plugin. > Reporter: Sean Zhou > Fix For: Java-SDO-Next > > > I am trying to invoke the SDO command-line code generator inside eclipse > which is causing it to behave differently than standalone. The following fix > is suggested by Frank in Tuscany: > 1) In class > org.apache.tuscany.sdo.generate.adapter.SDOGenModelGeneratorAdapterFactory > add another override method, createGenModelAdapter(), to return a new Tuscany > subclass of GenModelGeneratorAdapter (e.g., SDOGenModelGeneratorAdapter). > 2) In the new subclass, override the ensureProjectExists() method to do > nothing. > 3) Override anything else you need to ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]