Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 90083 invoked from network); 10 Jan 2008 17:26:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 17:26:57 -0000 Received: (qmail 77176 invoked by uid 500); 10 Jan 2008 17:26:45 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 77122 invoked by uid 500); 10 Jan 2008 17:26:45 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 77111 invoked by uid 99); 10 Jan 2008 17:26:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 09:26:45 -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 (nike.apache.org: domain of xavier.hanin@gmail.com designates 72.14.252.157 as permitted sender) Received: from [72.14.252.157] (HELO po-out-1718.google.com) (72.14.252.157) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 17:26:32 +0000 Received: by po-out-1718.google.com with SMTP id c31so1341401poi.0 for ; Thu, 10 Jan 2008 09:26:24 -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=j3dOIhBcKLfwFTIOzzdYupYR4md55jQxdws97fphnPo=; b=e6H3w9QZ8t5mQcrT4yzw9AEXhDON8cdq6jjzFL1LE6xlJwROLRTzkMzLphcoHMqTQQcJC2HY7cLxpISEg594xJLNMAb8pesdMgpnhfa5bzkDtmhoTjDSkZXZavjzrp4WIheyDC1SVE23HvED1LuQy5M3J+tLF/xyzzqEplKAolI= 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=p4iOMq4+2CE6mBfSP99e1/VTowBHGl442GGhvx98jsXfMVjJLPWExqfV5I/NNan+59VlhGpGxgkN3iOmOjrmmwFs4pvtWPcSa3tjeGkjjhrGD3xmDJgIwNRxXyKTHzscHXlz005dkbtPQ/Eq4CAWBdKas2RF0EZ46b6FLVfXAcI= Received: by 10.141.161.6 with SMTP id n6mr1357382rvo.155.1199985984083; Thu, 10 Jan 2008 09:26:24 -0800 (PST) Received: by 10.140.225.10 with HTTP; Thu, 10 Jan 2008 09:26:24 -0800 (PST) Message-ID: <635a05060801100926v485ae8bcy9b2324849c4e2196@mail.gmail.com> Date: Thu, 10 Jan 2008 18:26:24 +0100 From: "Xavier Hanin" To: "Ant Developers List" Subject: Re: C++ and Ivy [WAS: Re: [DISCUSS] EasyAnt ...] In-Reply-To: <255d8d690801100913r48f092e6m5b5081e48fb42c6d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19396_16316690.1199985984081" References: <255d8d690801100913r48f092e6m5b5081e48fb42c6d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_19396_16316690.1199985984081 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Jan 10, 2008 6:13 PM, Dominique Devienne wrote: > > On Jan 10, 2008 10:34 AM, Xavier Hanin wrote: > > > On Jan 10, 2008 5:13 PM, Dominique Devienne > wrote: > > > it so that my involvement with Ant took a back step, and I'm mostly > > > watching from afar what's going on in Ant. I've never used Ivy for > > > example. I'd probably have replaced my dependency stuff with Ivy by > > > now, although my stuff was C++ aware and was pulling not just jars > > > with also C++ headers and libraries, packaged sources of dependent > > > modules for debugging, etc... > > > > BTW Ivy is language agnostic, so you can use it for non java dependency > > management. But this is out of topic. > > Can I abuse of your time to explore this a little more Xavier? Being > language agnostic doesn't necessarily translate in being usable to > deal with natively compiled and linked dependencies. The ad-hoc system > I built wasn't agnostic. When a dependency had native code associated > to it (the JNI glue code and supporting native libs it depended upon) > as described in the published artifact descriptor, the system knew to > look for foo-module-win32.zip in addition to foo-module.zip, if you > were building on win32, and each platform was getting its own specific > binaries. Then once the dependency was expanded, in addition to > automatically adding the dependent JARs on the classpath, it also > appended to the compilation include path, link library path, and > runtime PATH and java.library.path, and all transitive dependencies of > the current project. The common build could then reference all these > paths by well know ids, with no further configuration. The system > depended on a fixed and well know hierarchy for the artifact zips. > > Given the agnostic nature of Ivy, how would one go about replicating > the kind of system I describing above on top of existing Ivy? Note > that I'm pretty ignore of Ivy, and haven't taken the time to explore > the doc before asking this question, so feel free to brush me off to > find the answers myself ;-) But since I have your attention, I thought > I'd try to get advice from the Ivy man directly ;-) Thanks, --DD Sure :-) But I'm not *the* Ivy man, only *one* Ivy man :-) First what I mean by language agnostic is that Ivy can handle any kind of artifacts, and not only jars. So in your case you can easily declare that your module publishes several artifacts, one being the jar, and the others being platform specific zips. Then you can split your platform specific zips in separate configurations (one by platform). This declaration goes in the module ivy file in the repository. Then you can ask Ivy to resolve the platform specific configuration you need depending on the platform you make your build on. And once you get the zip on your local filesystem you can do whatever you want with it like you did before, Ivy being used only for provisioning. Is this clear enough for an Ivy "ignorant"? Xavier > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/ ------=_Part_19396_16316690.1199985984081--