Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 80750 invoked from network); 28 Jan 2008 08:21:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2008 08:21:01 -0000 Received: (qmail 5109 invoked by uid 500); 28 Jan 2008 08:20:52 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 4926 invoked by uid 500); 28 Jan 2008 08:20:51 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 4917 invoked by uid 99); 28 Jan 2008 08:20:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 00:20:51 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xavier.hanin@gmail.com designates 209.85.198.188 as permitted sender) Received: from [209.85.198.188] (HELO rv-out-0910.google.com) (209.85.198.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 08:20:22 +0000 Received: by rv-out-0910.google.com with SMTP id k15so1796024rvb.40 for ; Mon, 28 Jan 2008 00:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=I7r7zznuyDy9zhCt6/yRQm63QfDgCYrVK4Fa/JYbdtA=; b=Cl4KKoXNEyb+9SlczZW0molzeWqhBRCJxXpTYnhx4ziHdkKMnrGSGd5lepw66LCE46YzCJEAlhks5iyCkypVV+o6vvqYzwVHSrTWg0HHkK1dvMv7s30M5fKlK2JodPX7gImI2SkgQdVFE7rI6RapisHhMqGII2/mQcHsJvFmxM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RlddhDH5sBfQsmLd6CSmQJQMPV3OdtS4ZEu/3wLhhtepOwYmc07hKKbGTYzTMK2xLWHtrOxOBoMbEhGocSO5uw3Pl2NKBeGIBgvFBHCB9wUXRS/9MMSIbpMiRzCFo19qzlfy17tC+jX0c7SudcjIpJ+mOQAPSmwKTzXn80tbiK0= Received: by 10.141.206.13 with SMTP id i13mr3219441rvq.211.1201508429541; Mon, 28 Jan 2008 00:20:29 -0800 (PST) Received: by 10.140.225.10 with HTTP; Mon, 28 Jan 2008 00:20:29 -0800 (PST) Message-ID: <635a05060801280020q3d4d980dv1fce75542314bc17@mail.gmail.com> Date: Mon, 28 Jan 2008 09:20:29 +0100 From: "Xavier Hanin" To: ivy-user@ant.apache.org Subject: Re: Publishing ivy files In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2953_31176385.1201508429539" References: <18B1BCC2-33BA-4639-BF38-7F35ECE083D9@dockter.biz> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2953_31176385.1201508429539 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You need to provide an Ivy file for Ivy to publish it. But generating the file on the fly is very easy with the module descriptor, you just have to use XmlModuleDescriptorWriter. Xavier On Jan 23, 2008 10:20 PM, Hans Dockter wrote: > I would like to add that so far I use for publishing the following > method of the PublishEngine: > > public Collection publish(ModuleDescriptor md, Collection > srcArtifactPattern, > DependencyResolver resolver, PublishOptions options) > throws IOException { ... > > - Hans > > On Jan 23, 2008, at 10:15 PM, Hans Dockter wrote: > > > I have the following requirement. My build tool, which uses ivy > > under the hood, does not work with ivy files. It uses Ivy via its > > API and thus creates the ModuleDescriptors, DependencyDescriptors, > > etc ... My problem is to publish a module via its > > ModuleDescriptors. The artifacts are published without any > > problems. But I want the ivy file also to be published to the > > repository. But locally there exists no ivy file. Only the > > ModuleDescriptor exists in memory. > > > > Is there a way that Ivy does the ivy file generation on the fly for > > publishing? Or do I have to locally generate a temporary ivy file, > > to get it published? > > > > - Hans > > > > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/ ------=_Part_2953_31176385.1201508429539--