Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 51529 invoked from network); 12 Jan 2010 14:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 14:37:20 -0000 Received: (qmail 54700 invoked by uid 500); 12 Jan 2010 14:37:20 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 54668 invoked by uid 500); 12 Jan 2010 14:37:20 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 54659 invoked by uid 99); 12 Jan 2010 14:37:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 14:37:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 14:37:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 95C5C2388A29; Tue, 12 Jan 2010 14:36:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r898344 - in /ant/ivy/core/trunk: CHANGES.txt doc/use/info.html src/java/org/apache/ivy/ant/IvyInfo.java test/java/org/apache/ivy/ant/IvyInfoTest.java test/java/org/apache/ivy/ant/ivy-info-all.xml Date: Tue, 12 Jan 2010 14:36:59 -0000 To: notifications@ant.apache.org From: maartenc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100112143659.95C5C2388A29@eris.apache.org> Author: maartenc Date: Tue Jan 12 14:36:58 2010 New Revision: 898344 URL: http://svn.apache.org/viewvc?rev=898344&view=rev Log: NEW: Make ivy.xml available (IVY-1158) Modified: ant/ivy/core/trunk/CHANGES.txt ant/ivy/core/trunk/doc/use/info.html ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyInfo.java ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyInfoTest.java ant/ivy/core/trunk/test/java/org/apache/ivy/ant/ivy-info-all.xml Modified: ant/ivy/core/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=898344&r1=898343&r2=898344&view=diff ============================================================================== --- ant/ivy/core/trunk/CHANGES.txt (original) +++ ant/ivy/core/trunk/CHANGES.txt Tue Jan 12 14:36:58 2010 @@ -99,6 +99,8 @@ ===================================== - DOCUMENTATION: ivy-doc.xsl does not show configurations (IVY-1151) (thanks to Jasper Blues) +- NEW: Make ivy.xml available (IVY-1158) + - IMPROVEMENT: Ivy doesn't support Maven 2.0.9 'import' scope (IVY-807) - IMPROVEMENT: resolver attribute for listmodules task (IVY-1057) - IMPROVEMENT: discover 'src' sources in maven repos (IVY-1138) Modified: ant/ivy/core/trunk/doc/use/info.html URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/use/info.html?rev=898344&r1=898343&r2=898344&view=diff ============================================================================== --- ant/ivy/core/trunk/doc/use/info.html (original) +++ ant/ivy/core/trunk/doc/use/info.html Tue Jan 12 14:36:58 2010 @@ -29,7 +29,11 @@ The info task ease the access to some essential data contained in an ivy file without performing a dependency resolution. The information is retrieved by setting ant properties: - +
+ + + + @@ -38,6 +42,8 @@ + +
PropertyDescription
ivy.organisationThe organisation of the module, as found in the info tag of the ivy file parsed
ivy.moduleThe name of the module, as found in the info tag of the ivy file parsed
ivy.branchThe branch of the module if any, as found in the info tag of the ivy file parsed
ivy.extra.[any extra attribute]Corresponding extra attribute value, as found in the info tag of the ivy file parsed
ivy.configurationsA comma separated list of configurations of the module, as declared in the configurations section
ivy.public.configurationsA comma separated list of public configurations of the module, as declared in the configurations section
ivy.configuration.[config name].descFor each configuration with a description, a property is created containing this description. (Since 2.2)

since 2.0 Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyInfo.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyInfo.java?rev=898344&r1=898343&r2=898344&view=diff ============================================================================== --- ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyInfo.java (original) +++ ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyInfo.java Tue Jan 12 14:36:58 2010 @@ -171,8 +171,14 @@ Configuration[] configs = md.getConfigurations(); List publicConfigsList = new ArrayList(); for (int i = 0; i < configs.length; i++) { + String name = configs[i].getName(); if (Visibility.PUBLIC.equals(configs[i].getVisibility())) { - publicConfigsList.add(configs[i].getName()); + publicConfigsList.add(name); + } + + if (configs[i].getDescription() != null) { + getProject().setProperty(property + ".configuration." + name + ".desc", + configs[i].getDescription()); } } String[] publicConfigs = (String[]) publicConfigsList Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyInfoTest.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyInfoTest.java?rev=898344&r1=898343&r2=898344&view=diff ============================================================================== --- ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyInfoTest.java (original) +++ ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyInfoTest.java Tue Jan 12 14:36:58 2010 @@ -56,6 +56,11 @@ assertEquals("default, test", info.getProject().getProperty("ivy.public.configurations")); assertEquals("trunk", info.getProject().getProperty("ivy.branch")); assertEquals("myvalue", info.getProject().getProperty("ivy.extra.myextraatt")); + + // test the configuration descriptions + assertEquals("The default dependencies", info.getProject().getProperty("ivy.configuration.default.desc")); + assertEquals("Dependencies used for testing", info.getProject().getProperty("ivy.configuration.test.desc")); + assertNull(info.getProject().getProperty("ivy.configuration.private.desc")); } public void testIVY726() throws Exception { Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/ant/ivy-info-all.xml URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/ant/ivy-info-all.xml?rev=898344&r1=898343&r2=898344&view=diff ============================================================================== --- ant/ivy/core/trunk/test/java/org/apache/ivy/ant/ivy-info-all.xml (original) +++ ant/ivy/core/trunk/test/java/org/apache/ivy/ant/ivy-info-all.xml Tue Jan 12 14:36:58 2010 @@ -25,8 +25,8 @@ e:myextraatt="myvalue" /> - - + +