On 25/01/2008, Patrick Shea <[EMAIL PROTECTED]> wrote:
>
> I haven't looked too closely at the code but I don't see why windows would
> be the issue...


trust me, I've reviewed the code and this is the issue: it's because the
file separator character on Windows is '\' whereas the URI file separator
on *all* platforms is '/' (in fact '\' is a valid non-separator URI
character)

the PathFile class has code to normalize file paths to URIs and extract
certain parts, but it's a bit fragile and only works when the path passed
into it is in a certain form - in this case the path from the deploy goals
on Windows is not in the right form (it has mixed separators).

On the local repo the uri should be "file://..." and on the remote should be
> something like "http://...";  if using http for the remote repo.


yes, unfortunately the PathFile code has kind of evolved over time so it's
been hard to check it's doing the right thing (another reason to review it)

Right?
>
> Patrick
>
>
>
>
> -----Original Message-----
> From: Stuart McCulloch <[EMAIL PROTECTED]>
> Sent: Thursday, January 24, 2008 11:01pm
> To: [email protected], [EMAIL PROTECTED]
> Subject: Re: OBR resource uri is wrong...
>
> On 25/01/2008, Patrick Shea <[EMAIL PROTECTED]> wrote:
> >
> > Unless I don't fully understand, when I deploy my bundle to my maven
> > remote repository, the repository.xml file still refers to the file in
> my
> > local repository.
> >
> > So when I try to install my bundle through servicemix runtime it gets
> the
> > repository.xml and tries to get the file from the uri that point to the
> > local repo and not the remote...
> >
> > Any ideas?
>
>
> this is a known bug, again related to how the PathFile class behaves on
> Windows:
>
>    http://issues.apache.org/jira/browse/FELIX-457
>
> I'm going to replace that class with some Plexus utilities, as they're
> more
> proven.
>
> Patrick
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> --
> Cheers, Stuart
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers, Stuart

Reply via email to