Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AE5476C5 for ; Sun, 31 Jul 2011 01:20:34 +0000 (UTC) Received: (qmail 51477 invoked by uid 500); 31 Jul 2011 01:20:34 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 51439 invoked by uid 500); 31 Jul 2011 01:20:34 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 51429 invoked by uid 99); 31 Jul 2011 01:20:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Jul 2011 01:20:34 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Jul 2011 01:20:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E96CD96D1C for ; Sun, 31 Jul 2011 01:20:09 +0000 (UTC) Date: Sun, 31 Jul 2011 01:20:09 +0000 (UTC) From: "Glen Mazza (JIRA)" To: issues@karaf.apache.org Message-ID: <1144791891.21303.1312075209952.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1078982980.1462.1311456789875.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KARAF-762) dev:watch should support multiple bundle IDs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KARAF-762?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13073= 274#comment-13073274 ]=20 Glen Mazza commented on KARAF-762: ---------------------------------- I'm not sure dev:watch takes bundle IDs -- it just seems to treat it as a U= RL, even if it doesn't make sense. karaf@root> dev:watch No watched urls karaf@root> dev:watch 23 Adding watched urls Watched urls: 23 karaf@root> dev:watch 23-34 Adding watched urls Watched urls: 23 23-34 karaf@root> dev:watch 2314 Adding watched urls Watched urls: 23 23-34 2314 karaf@root> dev:watch Watched urls: 23 23-34 2314 But the --help information for dev:watch still needs some elaboration IMO. = It currently says: The watch command can be used to help at developement time. It allows you t= o configure a set of URLs that will be monitored. All bundles location matc= hing the given URL will be automatically updated. This avoids the need for = manually updating the bundles or even copying the bundle to the system fold= er if needed. Note that only maven based urls and maven snapshots will actu= ally be updated automatically, so if you run > dev:watch * It will actually monitor all bundles that have a location matching mvn:* th= at have '-SNAPSHOT' in their url. Problems: 1.) It doesn't tell us what "monitoring" or "watching" really *means* -- wh= at does watching a bundle URL mean? I think it means when the bundle in th= e Maven repo has been updated that it will automatically refresh in Karaf a= s well. =20 2.) The example I think is bad, because it will monitor bundles that also *= don't* have the "-SNAPSHOT" in their URL. (Actually dev:watch * means watc= h everything? What is being watched in that case? How does it watch every= Maven URL -- how does it know what the full list of Maven URLs are? Confu= sed.) 3.) The text says "even copying the bundle to the system folder if needed" = is no longer necessary. I'm not sure why it wouldn't be--does this mean Ka= raf will automatically copy over the bundle from the Maven repo to the syst= em folder (physically replace it), or just ignore it and instead just refer= ence what's in the Maven repo, or? 4.) Some grammatical typos. I've attached a patch that I believe fixes (1), (2), and (4) -- (3) I'm lea= ving vague because I don't know the answer to that. > dev:watch should support multiple bundle IDs > -------------------------------------------- > > Key: KARAF-762 > URL: https://issues.apache.org/jira/browse/KARAF-762 > Project: Karaf > Issue Type: Improvement > Components: karaf-shell > Affects Versions: 2.2.2, 3.0.0 > Reporter: Achim Nierbeck > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Minor > Fix For: 2.2.3, 3.0.0 > > Attachments: watchTxt.patch > > > if you want to watch multiple bundle you have to re-issue the dev:watch c= ommand for every bundle to be watched.=20 > if dev:watch would accept a list of bundle Ids this would help. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira