Hi all,
The samples in the M2 release could be enriched with instructions to
set up the Eclipse IDE, enabling the user to easily debug and follow the
runtime instantiation.
I configured my Eclipse environment in this way to run the
sample-calculator project in debug mode:
1.build the SCA Source Distribution from the source
2.generate eclipse projects (mvn -PEclipse eclipse:eclipse)
3.build the Samples (unpacking the Tuscany standalone server as indicated)
4. generate eclipse projects
5. import SCA and Samples projects in Eclipse
6. add the "target\distribution\bin\launcher.jar" to the build path of
the sample-calculator project (right-click on the jar)
7. create a new Java Application configuration to launch the sample
7.1 (Main Tab) select the
"org.apache.tuscany.launcher.MainLauncherBooter" class of the
target\distribution\bin\launcher.jar as Main class (checking "Includes
libraries when searching for a main class")
7.2 (Arguments Tab) add "target/sample-calculator.jar" as Program Argument
7.2 (Source Tab) add all the SCA M2 eclipse projects as sources
I don't know if this is the best way (is there any other?), but it works ;-)
regards,
francesco
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]