Return-Path: Delivered-To: apmail-incubator-general-archive@www.apache.org Received: (qmail 89328 invoked from network); 7 Dec 2006 14:36:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 14:36:38 -0000 Received: (qmail 80733 invoked by uid 500); 7 Dec 2006 14:36:42 -0000 Delivered-To: apmail-incubator-general-archive@incubator.apache.org Received: (qmail 80580 invoked by uid 500); 7 Dec 2006 14:36:41 -0000 Mailing-List: contact general-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@incubator.apache.org Delivered-To: mailing list general@incubator.apache.org Delivered-To: moderator for general@incubator.apache.org Received: (qmail 72967 invoked by uid 99); 7 Dec 2006 14:32:49 -0000 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ebarten1401@hotmail.com designates 65.54.246.85 as permitted sender) Message-ID: X-Originating-IP: [199.203.172.254] X-Originating-Email: [ebarten1401@hotmail.com] X-Sender: ebarten1401@hotmail.com From: "Eran Bartenstein" To: general@incubator.apache.org Subject: Ivy List modules with extra attributes Date: Thu, 07 Dec 2006 16:32:13 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 07 Dec 2006 14:32:16.0925 (UTC) FILETIME=[7E993CD0:01C71A0C] X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am trying to list a module for a specified organisation and revision with an extra attribute: kind. However, it seems that Ivy ignores the extra attribute. Also when checking into the code I can see no use of the extra attrbute specified in the passed ModuleReviosionId. I use the following: HashMap extraAttributes = new HashMap(); extraAttributes.put("kind", "gsce"); ModuleRevisionId currModuleRevisionId = ModuleRevisionId.newInstance(currOrganizationName, currModuleName, currRevisionName, extraAttributes); PatternMatcher matcher = _ivy.getMatcher(PatternMatcher.EXACT); ModuleRevisionId[] moduleRevisionIds = _ivy.listModules(currModuleRevisionId, matcher); // Populate revisions array - with childs of type: revision RepositoryItem currRevisionRepositoryItem = new RepositoryItem(currRevisionName, currModuleRepositoryItem); revisionRepositoryItemsList.add(currRevisionRepositoryItem); My main purpose is to try and list all modules under all organizations that match the specific extra attrbute. Does anyone know how I can do that ? _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org For additional commands, e-mail: general-help@incubator.apache.org