umm, standard URL class understand karaf's maven specific url?

Thanks

-Dan

On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen
<gert.vanthie...@gmail.com> wrote:
> L.S.,
>
> Since the mvn: URL handler is available to you when you're running
> your code inside the container, you should be able to just create a
> URL instance and read from its InputStream.
>
> Something like
>  URL url = new URL("mvn:commons-codec/commons-codec/1.4")
>  InputStream is = url.openConnection().getInputStream()
>  // now read from the stream and write the bytes to a FileOutputStream
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> FuseSource
> Web: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran <dant...@gmail.com> wrote:
>> I was hoping to to take advantage of the service that already aware of
>> org.ops4j.pax.url.mvn.cfg
>>
>> -Dan
>>
>> On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber <anpie...@gmail.com> wrote:
>>> hey dan,
>>>
>>> for that uc I am afraid the features service is not sufficient. I think it
>>> is best to directly take the aether libs.
>>>
>>> kind regards,
>>> Andreas
>>>
>>> On Apr 5, 2011 5:32 AM, "Dan Tran" <dant...@gmail.com> wrote:
>>>> Hi Andreas,
>>>>
>>>> I just need to download any arbitrary artifact ( for example
>>>> mvn:commons-codec/commons-codec/1.4 ), to a specify directory under
>>>> karaf
>>>>
>>>>
>>>> On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber <anpie...@gmail.com> wrote:
>>>>> Hey Dan,
>>>>>
>>>>> I assume you're looking for org.apache.karaf.features.FeaturesService
>>>>> [1]. Simply add the following to your blueprint file to use it:
>>>>>
>>>>> <reference id="featuresService"
>>>>> interface="org.apache.karaf.features.FeaturesService" />
>>>>>
>>>>> Hope this helps and kind regards,
>>>>> Andreas
>>>>>
>>>>> [1]
>>>>> http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java
>>>>>
>>>>> On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran <dant...@gmail.com> wrote:
>>>>>> Hi
>>>>>>
>>>>>> Karaf can download and install features with bundles using mvn:xxx
>>>>>> url.  Does that interface ( service ) expose somewhere? so that I can
>>>>>> download a given maven artifact into karaf's local disk space, to be
>>>>>> processed later?
>>>>>>
>>>>>> Thanks for all the help.
>>>>>>
>>>>>> -Dan
>>>>>>
>>>>>
>>>
>>
>

Reply via email to