[ 
https://issues.apache.org/jira/browse/TUSCANY-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527546
 ] 

Kelvin Goodson commented on TUSCANY-1638:
-----------------------------------------

I have now run the test,  seen the failure, applied the patch and seen clean 
code generation, so I will commit the patch.  For reference I had to download 
the Eclipse Classic version of Europa,  since the Java developers version 
doesn't include the eclipse plugin stuff.  After that, when configuring the 
paths in the SampleAction class, I couldn't use an absolute path for the 
targetDirectory, since the test adds this to the base runtime directory of the 
spawned eclipse environment , so my config element looked like this ...

        IPath installIPath = new 
Path("C:/Dev/test1638/apache-tuscany-sca-0.99-incubating/tuscany-sca-0.99-incubating");
        String targetDirectory = "/../test1638/output/";
        String wsdlURI = "C:/Dev/test1638/AddressBook.wsdl";

I could work this out by looking at the "Run as" dialog entry for the Eclipse 
Application and seeing that the runtime directory was ..   
${workspace_loc}/../runtime-EclipseApplication



> 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
>
>         Attachments: 1638.patch, test1638.zip
>
>
> 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]

Reply via email to