Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 82261 invoked from network); 3 Apr 2008 10:23:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 10:23:15 -0000 Received: (qmail 5811 invoked by uid 500); 3 Apr 2008 10:23:13 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 5776 invoked by uid 500); 3 Apr 2008 10:23:13 -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 4377 invoked by uid 99); 3 Apr 2008 06:16:10 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=selector1; d=genuco.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=cncnMdJEOT0Z71swga9WMtXA5Oq9c0A6/ANFF30YORSXCa6l/0nLKo4o27ATNKWrDFICgbEyM1A/tcMKJiMaMpEKttF8Y/nG4l56qrV2U0NJJ/LvBktoTNsPrtwAPJP6PtqjOQZ/JRXY8LwiePwMvpGIsmUGEU8FE9qtzVY1iWc=; Message-ID: <47F47607.7020805@genuco.com> Date: Thu, 03 Apr 2008 14:15:35 +0800 From: Adrian Sandor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080331 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Ant Developers List Subject: Mapping source artifacts in Ivy Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'd like to ask about 2 problems I encountered in the process of building an Ivy repository: 1. Is it possible to define an artifact to belong to the "intersection" of 2 configurations? Generally, in my modules I have at least 2 configurations: compile and devel; compile is the minimum required to get the code to compile, and devel extends compile and is supposed to include sources and javadocs. In slf4j for example, I have several jar artifacts: slf4j-api, slf4j-jdk14, slf4j-log4j12 etc. So I defined some more configurations, such as jdk and log4j, extending compile. Now, for each jar artifact I also have a source artifact. But I only want the sources to be accessible in the devel configuration. So for example, slf4j-log4j12 sources should belong to the intersection of the devel and log4j configurations. Is there a way to define that in ivy? So far, the only solution I found is to define yet another configuration for each such case, e.g. devel-log4j extends log4j, and then that doesn't extends devel, so I have to write mappings like devel->devel,devel-log4j This is not just about source artifacts; as Archie mentioned in a previous email, each module may be configured along several "dimensions", and if that leads to exponential growth in the number of configurations (that need to be defined explicitly), then it can very quickly get out of hand. 2. Can we have a way to define the source (or javadoc, or whatever) artifact(s) associated with a jar artifact? Currently, the convention seems to be to have artifacts with the same name and different type. E.g. artifact name="slf4j-api" type="source" associates with artifact name="slf4j-api" type="jar". But what if, for example, I have the source for all slf4j artifacts in slf4j-src.zip? It would be nice to have a way to define that as the same source artifact for all the jar artifacts. Same for javadocs. What do you think? Adrian --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org