Thats what I'll start doing then, its easy enough to move them if anyone has a different suggestion.
If they're separate projects must they really use the org.apache.tuscany.samples.javascript... package names or could that be something shorter? Some of those long names are quite hard to read in the scdl. ...ant On 3/24/06, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote: > > ant elder wrote: > > I'd like to make some more complete samples for the JavaScript > componentType > > so where should they go? > > > > JavaScript works a bit differently from Java so I think there should be > > separate samples for things like: > > - basic helloworld > > - properties > > - service references > > - a couple for E4X (if thats going) > > - importing packages and classes (for SDO) > > - how to do initialization when a script is loaded > > - probably some others... > > > > Are these tests or samples? Should they be in the JavaScript project or > > Samples project? > > > > I'm inclined to keep them in the JavaScript project as testcase/samples > > instead of keeping on adding things to Samples. > > > > I'd also quite like to have them coded just like a user would, using a > J2SE > > client doing new TuscanyRuntime/getModuleContext/locateService, and with > an > > sca.module file for each one so its obvious what SCDL is required. Thats > not > > possible though if they're all in the JavaScript project as each project > can > > only have the single sca.module file in the top level of the project. > That > > was discussed here: > > > http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200602.mbox/[EMAIL > PROTECTED] > > > > An alternative would be to have a JavaScript sub project in samples and > add > > all these samples as sub projects to that. > > > > Any comments or suggestions? > > > > ...ant > > > > > Ant, +1 from me, the more samples we have the better! I like the idea of > having a javascript sub project with samples as sub-projects, mainly > because I think it's what app developers will do: one project per SCA > module. > > -- > Jean-Sebastien > >
