You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2009/03/16 15:06:40 UTC

Re: Jar contribution processing question: Using URI "" to correspond to the jar itself

On Mon, Mar 16, 2009 at 11:48 AM, Vamsavardhana Reddy
<c1...@gmail.com> wrote:
> We have org.apache.tuscany.sca.contribution.processor.impl.JarContributionProcessor
> to construct a list of URI's to artifacts in the jar file.  In case of
> EJB jar files, in addition to the artifacts in the jar, the jar file
> itself needs to be treated as an artifact since there are model
> elements that are derived from the jar as a whole. I intend to use the
> URI "" (empty string) to correspond to archive (right now, the empty
> string URI has no special meaning). I don't see any problem with doing
> so.  Wanted to get others comments and inputs to see if I have missed
> out something.
>
> ++Vamsi
>

Hi Vamsi

Is "" a valid URI?

Simon

Re: Jar contribution processing question: Using URI "" to correspond to the jar itself

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
On Mon, Mar 16, 2009 at 7:36 PM, Simon Laws <si...@googlemail.com> wrote:
> On Mon, Mar 16, 2009 at 11:48 AM, Vamsavardhana Reddy
> <c1...@gmail.com> wrote:
>> We have org.apache.tuscany.sca.contribution.processor.impl.JarContributionProcessor
>> to construct a list of URI's to artifacts in the jar file.  In case of
>> EJB jar files, in addition to the artifacts in the jar, the jar file
>> itself needs to be treated as an artifact since there are model
>> elements that are derived from the jar as a whole. I intend to use the
>> URI "" (empty string) to correspond to archive (right now, the empty
>> string URI has no special meaning). I don't see any problem with doing
>> so.  Wanted to get others comments and inputs to see if I have missed
>> out something.
>>
>> ++Vamsi
>>
>
> Hi Vamsi
>
> Is "" a valid URI?
>
> Simon
>
"" seems to be a valid relative path.  See [1].

[1] http://java.sun.com/j2se/1.5.0/docs/api/java/net/URI.html#URI(java.lang.String)

-- 
Vamsi