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 C5CBE1096D for ; Fri, 26 Dec 2014 16:17:47 +0000 (UTC) Received: (qmail 23235 invoked by uid 500); 26 Dec 2014 16:17:47 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 23100 invoked by uid 500); 26 Dec 2014 16:17:47 -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 22786 invoked by uid 99); 26 Dec 2014 16:17:47 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Dec 2014 16:17:47 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id A8993AC10E7 for ; Fri, 26 Dec 2014 16:17:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1647992 [10/18] - in /ant/site/ivy/production/history/2.4.0: ivyfile/ settings/ settings/caches/ settings/macrodef/ settings/namespace/ Date: Fri, 26 Dec 2014 16:17:43 -0000 To: notifications@ant.apache.org From: hibou@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141226161744.A8993AC10E7@hades.apache.org> Added: ant/site/ivy/production/history/2.4.0/settings/classpath.html URL: http://svn.apache.org/viewvc/ant/site/ivy/production/history/2.4.0/settings/classpath.html?rev=1647992&view=auto ============================================================================== --- ant/site/ivy/production/history/2.4.0/settings/classpath.html (added) +++ ant/site/ivy/production/history/2.4.0/settings/classpath.html Fri Dec 26 16:17:42 2014 @@ -0,0 +1,293 @@ + + + + + + + +classpath | Apache Ivy™ + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

classpath

+
Tag: classpath

Includes a jar in the classpath used to load plugins. since 1.4 + +This let you add ivy plugins without relying on an external classpath (the ant classpath for instance), therefore easing the use of ivy in multiple execution environments (ant, standalone, IDE plugins, ...).

Attributes

+ + + + + + + + + + +
AttributeDescriptionRequired
urlthe url of a jar to add to the classpathYes, unless file is specified
filea jar to add to the classpathYes, unless url is specified
+

Examples

+
+<ivysettings>
<classpath file="${ivy.settings.dir}/custom-resolver.jar"/>
<typedef name="custom" classname="org.apache.ivy.resolver.CustomResolver"/>
<resolvers>
<custom name="custom"/>
</resolvers>
</ivysettings> +
+Adds the custom-resolver.jar (found in the same directory as the ivysettings.xml file) to the classpath, then defines a custom resolver and uses it.


+
+<ivysettings>
<classpath url="http://www.myserver.com/ivy/custom-resolver.jar"/>
<typedef name="custom" classname="org.apache.ivy.resolver.CustomResolver"/>
<resolvers>
<custom name="custom"/>
</resolvers>
</ivysettings> +
+Same as above, but finds the jar on a web server.
+
+
+ + + + + + + + + +
+ + Propchange: ant/site/ivy/production/history/2.4.0/settings/classpath.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ant/site/ivy/production/history/2.4.0/settings/classpath.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/site/ivy/production/history/2.4.0/settings/classpath.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html URL: http://svn.apache.org/viewvc/ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html?rev=1647992&view=auto ============================================================================== --- ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html (added) +++ ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html Fri Dec 26 16:17:42 2014 @@ -0,0 +1,299 @@ + + + + + + + +conflict-managers | Apache Ivy™ + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

conflict-managers

+
Tag: conflict-managers

Defines a list of conflicts managers usable in Ivy. Each conflict manager is identified by its name, given as an attribute.
The child tag used for the conflict manager must be equal to a name of a conflict manager type (either built-in or added with the typedef tag).

Here is a list of built-in conflicts managers (which do not require anything in the configuration file): +
    +
  • all
  • this conflicts manager resolve conflicts by selecting all revisions. Also called the NoConflictManager, it doesn't evict any modules. +
  • latest-time
  • this conflict manager selects only the 'latest' revision, latest being defined as the latest in time. Note that latest in time is costly to compute, so prefer latest-revision if you can. +
  • latest-revision
  • this conflict manager selects only the 'latest' revision, latest being defined by a string comparison of revisions. +
  • latest-compatible
  • this conflict manager selects the latest version in the conflicts which can result in a compatible set of dependencies. This means that in the end, this conflict manager does not allow any conflicts (similar to the strict conflict manager), except that it follows a best effort strategy to try to find a set of compatible modules (according to the version constraints) +
  • strict
  • this conflict manager throws an exception (i.e. causes a build failure) whenever a conflict is found. +
+The two "latest" conflict managers also take into account the force attribute of the dependencies.
Indeed direct dependencies can declare a force attribute (see dependency), which indicates that the revision given in the direct dependency should be preferred over indirect dependencies.

Here is a list of conflict manager types available, which can be used to define your own custom conflict managers: +
    +
  • latest-cm
  • The latest conflict manager uses a latest strategy to select the latest revision among several ones. Both latest-time and latest-revision conflict managers are based on this conflict manager type. It takes 'latest' as attribute to define which latest strategy should be used. Example: +
    <latest-cm name="mylatest-conflict-manager" latest="my-latest-strategy"/>
    +
  • compatible-cm
  • The latest compatible conflict manager uses a latest strategy to select the latest revision among several ones. It takes 'latest' as an attribute to define which latest strategy should be used. Example: +
    <compatible-cm name="my-latest-compatible-conflict-manager" latest="my-latest-strategy"/>
    +
  • regexp-cm
  • This conflict manager is based on a regular expression and throws an exception (i.e. causes a build failure) when a conflict is found with versions with different matching group. For instance if a conflict is found between 1.2.x and 1.3.y it will throw an exception if the regular expression is (.*)\.\d, because the matching group will match different strings (1.2 and 1.3). 1.2.1 and 1.2.2 won't throw an exception with the same regular expression. The regular expression is set using the 'regexp' attribute. A 'ignoreNonMatching' attribute can also be set to simply warn when a version is found which does not match the regular expression, instead of throwing an exception. +
+ +

Child elements

+ + + + + + + + +
ElementDescriptionCardinality
any conflict manageradds a conflict manager to the list of available conflict managers0..n
+ + +
+
+ + + + + + + + + +
+ + Propchange: ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/site/ivy/production/history/2.4.0/settings/conflict-managers.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: ant/site/ivy/production/history/2.4.0/settings/credentials.html URL: http://svn.apache.org/viewvc/ant/site/ivy/production/history/2.4.0/settings/credentials.html?rev=1647992&view=auto ============================================================================== --- ant/site/ivy/production/history/2.4.0/settings/credentials.html (added) +++ ant/site/ivy/production/history/2.4.0/settings/credentials.html Fri Dec 26 16:17:42 2014 @@ -0,0 +1,287 @@ + + + + + + + +credentials | Apache Ivy™ + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

credentials

+
Tag: credentials

Configures HTTP authentication credentials. since 2.0.

Attributes

+ + + + + + + + + + + + + + +
AttributeDescriptionRequired
hostthe name of the hostYes
realmthe name of the realmNo
usernamethe usernameYes
passwdthe passwordYes
+ +
+
+ + + + + + + + + +
+ + Propchange: ant/site/ivy/production/history/2.4.0/settings/credentials.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ant/site/ivy/production/history/2.4.0/settings/credentials.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/site/ivy/production/history/2.4.0/settings/credentials.html ------------------------------------------------------------------------------ svn:mime-type = text/html