On Wed, Nov 25, 2009 at 3:16 PM, Simon Laws <[email protected]> wrote:
>> The issue with doing that is that the contribution then gets included
>> in the Tuscany runtime classpath and the Tuscany runtime gets included
>> in the contribution classpath - so its not really properly testing how
>> it would be used which leads to bugs. This is a real issue as while
>> i'm working on all this domain and client stuff I keep coming across
>> issues where things dont work properly as its only ever been tested
>> with the contribution part of the system classpath.
>>
>>   ...ant
>>
>
> OK, fair point. We just then need a sample launcher project that
> allows us and our users to easily run the samples from Eclipse in lieu
> of us bringing up the Eclipse plugin. Even when we do I would argue
> that it's useful for a user to be able to easily fire up a
> contribution from the binary distribution without needing to further
> configure their Eclipse environment. I guess we can debate that. In
> the mean time though we do need an easy way to run sample
> contributions during development.
>
> Simon
>

In r884146 I've added the maven tuscany plugin to the helloworld
sample pom.xml so you can now run it with "mvn tuscany:run"

You could also run it with the the launcher from the trunk
distribution build by doing:

..\..\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPSHOT.dir\tuscany-sca-2.0-SNAPSHOT\bin\tuscany.bat
target\sample-helloworld.jar

or more simply by first adding that to your environment path eg:

set 
PATH=\Tuscany\trunk\distribution\all\target\apache-tuscany-sca-all-2.0-SNAPSHOT.dir\tuscany-sca-2.0-SNAPSHOT\bin;%PATH%

and then you can run any sample with:

tuscany target\sample-helloworld.jar

I'm not sure about Eclipse, ideally you would have some Eclipse plugin
like the old Tuscany one or the STP one wouldnt you? (eg you can't run
an webapp or ejb in eclipse without first installing some container
plugin). If there's an itest for the sample like the
itest-sample-helloworld one you can run that in eclipse, doesn't that
do what you want or am i misunderstanding what you're suggesting?

  ...ant

Reply via email to