On Jan 30, 2007, at 1:32 PM, Raymond Feng wrote:
Hi, Jeremy.
Thank you for the explanation.
One more thing to clarify:
Assuming I have a folder structure on the file system to host my
contribution:
/tuscany/apps/MyApp/
/tuscany/apps/MyApp/META-INF/sca/default.scdl
/tuscany/apps/MyApp/xsd/a.xsd
/tuscany/apps/MyApp/sample/Component1Impl.class
What's the input to the ContributionProcessor? The root folder or
each file under the structure?
Either depending on whether you are looking to contribute a directory
or individual files. Let's assume the directory as that's
interesting :-)
When I asked the question for the file system case, I thought the
ContributionProcessor takes the whole archive as the input. For a
directory, we cannot open the InputStream.
A directory or other collection-type location has a URL ending in "/"
such as
file:///tuscany/apps/MyApp/
The trailing "/" is significant and indicates that this is a location
containing other things. Depending on the URL scheme there are
different ways in which the content of these resources can be
enumerated - directory listing for file:, WebDAV PROPFIND for http,
LIST for imap, etc.
A suitable processor can walk these trees (if appropriate) and add
their contents.
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]