Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE9D536DC for ; Thu, 28 Apr 2011 22:19:55 +0000 (UTC) Received: (qmail 79197 invoked by uid 500); 28 Apr 2011 22:19:55 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 79122 invoked by uid 500); 28 Apr 2011 22:19:55 -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 79115 invoked by uid 99); 28 Apr 2011 22:19:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 22:19:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Thu, 28 Apr 2011 22:19:53 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B1D7023889B1; Thu, 28 Apr 2011 22:19:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1097642 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/sort/SortEngine.java Date: Thu, 28 Apr 2011 22:19:32 -0000 To: notifications@ant.apache.org From: hibou@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110428221932.B1D7023889B1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hibou Date: Thu Apr 28 22:19:32 2011 New Revision: 1097642 URL: http://svn.apache.org/viewvc?rev=1097642&view=rev Log: javadoc Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/sort/SortEngine.java Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/sort/SortEngine.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/sort/SortEngine.java?rev=1097642&r1=1097641&r2=1097642&view=diff ============================================================================== --- ant/ivy/core/trunk/src/java/org/apache/ivy/core/sort/SortEngine.java (original) +++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/sort/SortEngine.java Thu Apr 28 22:19:32 2011 @@ -43,9 +43,19 @@ public class SortEngine { this.settings = settings; } - - - public List sortNodes(Collection nodes, SortOptions options) { + /** + * Same as {@link #sortModuleDescriptors(Collection, SortOptions)} but for IvyNodes. + * + * @param nodes + * a Collection of nodes to sort + * @param options + * Options to use to sort the nodes. + * @return a List of sorted IvyNode + * @throws CircularDependencyException + * if a circular dependency exists and circular dependency strategy decide to throw + * an exception + */ + public List/* */sortNodes(Collection/* */nodes, SortOptions options) { /* * here we want to use the sort algorithm which work on module descriptors : so we first put * dependencies on a map from descriptors to dependency, then we sort the keySet (i.e. a