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

David T. Adcox updated TUSCANY-1638:
------------------------------------

    Attachment: test1638.zip

The attached test case involves the use of an Eclipse plugin.  The following 
directions are a bit lengthy, but are required to simulate the environment for 
reproduction of the defect.  Included in the zip file is an eclipse project 
directory and a sample WSDL file.

1) Unpack test1638.zip into a working directory.
2) In an Eclipse workspace, import the emitterTest project.  This can be done 
by right-clicking in the package explorer pane, and selecting import.
3) Navigate to the working directory created to house test1638.zip, the import 
tool will then show the emitterTest project.
4) This test case uses a binary distribution of Tuscany, so you will need to 
download 0.99 binary distribution from here: 
http://incubator.apache.org/tuscany/sca-java-releases.html.  Unpack this into 
the working directory created in step #1.
5) The Tuscany distribution location and the location of the test WSDL file 
need to be specified.  Open the SampleAction.java, found in the 
emitterTest\src\emittertest.actions directory.  Update the following values to 
match your test locations:

   • IPath installIPath
   • String targetDirectory 
   • String wsdlURI 

6) Execute the test case by right clicking on the emitterTest project in the 
package explorer and select "run as -> Eclipse Application".
7) From the new Eclipse instance, select the "Sample Menu" option and then 
select "Sample Action".
8) This will attempt to execute a code generation of the specified WSDL file.  
If changes are not made to the 0.99 SDO libraries, this execution will fail.  
Use the patch and update the SDO files in the 0.99 binary tree to fix the 
defect.






> 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