Index: reference.html =================================================================== --- reference.html (revision 910652) +++ reference.html (working copy) @@ -25,32 +25,32 @@ Index: tutorial/defaultconf.html =================================================================== --- tutorial/defaultconf.html (revision 910652) +++ tutorial/defaultconf.html (working copy) @@ -111,7 +111,7 @@

Going further

OK, so we have seen how to easily change the settings of the three main repositories. But what if my shared repository is on a web server? What if you don't want to use maven 2 repository as public repository? What if ... -No problem, Ivy is very flexible and be configured with very specific settings to match your needs and environment. But before considering writing your own settings from scratch, we suggest reading the following where you will learn how to leverage a part of the default settings and adjust the rest. +No problem, Ivy is very flexible and can be configured with very specific settings to match your needs and environment. But before considering writing your own settings from scratch, we suggest reading the following where you will learn how to leverage a part of the default settings and adjust the rest. But before explaining how, you will need to have a quick overview of how ivy is configured by default. Index: install.html =================================================================== --- install.html (revision 910652) +++ install.html (working copy) @@ -25,11 +25,11 @@ Index: ant.html =================================================================== --- ant.html (revision 910652) +++ ant.html (working copy) @@ -68,10 +68,10 @@ -Those 3 tasks follow the 3 main steps of ivy retrieving dependencies process: +Those 3 tasks follow the 3 main steps of the ivy retrieving dependencies process: Index: principle.html =================================================================== --- principle.html (revision 910652) +++ principle.html (working copy) @@ -25,45 +25,45 @@ Index: textual.html =================================================================== --- textual.html (revision 910652) +++ textual.html (working copy) @@ -119,7 +119,7 @@ module C revision 2.5 depends on module D with the version constraint [1.0,1.6]. -As you can see using text conventions is much more concise. +As you can see, using text conventions is much more concise. Another benefit is that these conventions are usually used in Ivy console output, and can also be used in some cases to be parsed into Ivy objects (we use it for test cases for instance). To make sure text parsing works fine, we recommend using only a limited range of characters for each attributes of your module identifiers. Index: concept.html =================================================================== --- concept.html (revision 910652) +++ concept.html (working copy) @@ -28,16 +28,16 @@

Dependency Resolver

A dependency resolver is a pluggable class in ivy which is used to: -The notion of artifact "downloading" is large: artifact can be on a web site, or on the local file system of your machine. The download is thus the fact to bring a file from a repository to ivy cache. +The notion of artifact "downloading" is large: an artifact can be on a web site, or on the local file system of your machine. The download is thus the act of bring a file from a repository to the ivy cache. -Moreover, the fact that it is the responsibility of the resolver to find ivy files and download artifacts help to implement various resolving strategies. +Moreover, the fact that it is the responsibility of the resolver to find ivy files and download artifacts helps to implement various resolving strategies. -As you see, a dependency resolver can be thought as a class responsible of describing a repository. +As you see, a dependency resolver can be thought of as a class responsible for describing a repository. -If you want to see which resolvers are available in ivy, you can go to the corresponding configuration section +If you want to see which resolvers are available in ivy, you can go to the corresponding configuration section.

Module configurations explained

Module configurations are described in the terminology page as a way to use or construct a module. Configurations being a central part of Ivy, they need more explanations as a concept. @@ -46,30 +46,30 @@ Moreover, because dependencies in ivy are expressed on modules and not on artifacts, it is important to be able to define which configurations of the dependency are required in the configuration you define of your module. That's what is called configuration mapping. -If you use only simple modules and do not want to worry about configurations, you don't have to worry about them. They're still there under the hood, cause ivy can't work without configuration. But most of the time if you declare nothing, ivy assumes that the artifacts of your module are published in all configurations, and that all the dependencies configurations are required in all configurations. And it works in simple cases. But whenever you want to separate things within a module, or get more control over things published and got through dependencies resolution, configuration may answer most of your needs. +If you use only simple modules and do not want to worry about configurations, you don't have to worry about them. They're still there under the hood because ivy can't work without configurations. But most of the time if you declare nothing, ivy assumes that the artifacts of your module are published in all configurations, and that all the dependencies' configurations are required in all configurations. And it works in simple cases. But whenever you want to separate things within a module, or get more control over things published and get better dependencies resolution, configurations will meet most of your needs. -For details on how to declare your module configurations, how declare in which configuration your artifacts are published, and how to declare configuration mapping, please refer to ivy file documentation. The configurations tutorial is also a good place to go to learn more about this concept. +For details on how to declare your module configurations, how to declare in which configuration your artifacts are published, and how to declare configuration mapping, please refer to ivy file documentation. The configurations tutorial is also a good place to go to learn more about this concept.

Variables

-During configuration, ivy allows to define what are called ivy variables. Ivy variables can be seen as ant properties, and are used in a very similar way. In particular, you use a properties tag in the configuration file to load a properties file containing ivy variables and their values. +During configuration, ivy allows you to define what are called ivy variables. Ivy variables can be seen as ant properties, and are used in a very similar way. In particular, you use a properties tag in the configuration file to load a properties file containing ivy variables and their values. -But the main differences between ant properties and ivy variables are that ivy variables can be overriden, whereas ant -properties can't, and that they are defined in separate environment. +But the main differences between ant properties and ivy variables are that ivy variables can be overridden, whereas ant +properties can't, and that they are defined in separate environments. Actually all ant properties are imported into ivy variables when the configuration is done (if you call ivy from ant). This means that if you define an ant property after the call to configure, it will not be available as an ivy variable. On the other hand, ivy variables are NOT exported to ant, thus if you define ivy variables in ivy, do not try to use them as ant properties. -To use ivy variables, you just have to follow that same syntax as for ant properties: +To use ivy variables, you just have to follow the same syntax as for ant properties: ${variablename} where variablename is the name of the variable. -Finally, it's also important to be aware of the time of substitution of variables. This substitution is done as soon as possible. This means that when ivy encounter a reference to a variable, it tries to substitute it if such a variable is defined. Consequently, any later modification of the variable will not alter the value already substituted. +Finally, it's also important to be aware of the time of substitution of variables. This substitution is done as soon as possible. This means that when ivy encounters a reference to a variable, it tries to substitute it if such a variable is defined. Consequently, any later modification of the variable will not alter the value already substituted. -Moreover, in an ant environment, a bunch of variables are going to be set by default via the ant property file loading mechanism (actually they are first loaded as ant properties and then imported as ivy variables, see [[ant]]), and even in the ant properties themselves there is going to be eager substitution on loading, effectively making it impossible to override some variable purely via the ivysettings.properties file. Some variables will really only be able to be overriden via ant properties because of this. +Moreover, in an ant environment, a bunch of variables are going to be set by default via the ant property file loading mechanism (actually they are first loaded as ant properties and then imported as ivy variables, see [[ant]]), and even in the ant properties themselves there is going to be eager substitution on loading, effectively making it impossible to override some variable purely via the ivysettings.properties file. Some variables will really only be able to be overridden via ant properties because of this. Moreover, it's also important to understand the difference between ivy variables and ivy pattern tokens. -See Patterns chapter below to see what pattern tokens are. +See the Patterns chapter below for what pattern tokens are.

Patterns

Ivy patterns are used in many dependency resolvers and ivy tasks, and are a simple way to structure the way ivy works. @@ -82,8 +82,8 @@ In this directory we have directories having for name the name of the organisation of the module we look for. Then we have a directory per module, each having for name the name of the module. -Then in module directories we find a directory per artifact type (jars, wars, ivys, ...), in which we find artifacts named by the artifact id, followed by an hyphen, then the revision, a dot, and the artifact extension. -Not too difficult to understand, isn't it ? That's it, you have understood the pattern concept ! +Then in module directories we find a directory per artifact type (jars, wars, ivys, ...), in which we find artifacts named by the artifact id, followed by a hyphen, then the revision, a dot, and the artifact extension. +Not too difficult to understand is it? That's it, you have understood the pattern concept! To give a bit more explanation, a pattern is composed of tokens, which are replaced by actual values when evaluated for a particular artifact or module. Those tokens are different from variables because they are replaced differently for each artifact, whereas variables are usually given the same value. @@ -104,12 +104,12 @@
  • [originalname] (since 1.4)
  • the original artifact name (including the extension) -Difference between type and extension are explained in ivy file documentation. +The difference between type and extension is explained in the ivy file documentation. since 1.2 [organization] can be used instead of [organisation]. -since 1.3 Optinal parts can be used in patterns. -This let the possibility to avoid some input when a token is not defined, instead of having only the token as blank. Parenthesis are used to delimit the optional part, and only one token can be found inside the parenthesis. +since 1.3 Optional parts can be used in patterns. +This provides the possibility to avoid some input when a token is not defined, instead of having only the token as blank. Parenthesis are used to delimit the optional part, and only one token can be found inside the parenthesis. So if you surround a token with '(' and ')', any other text which is between the parenthesis will be ignored if the token has no value. For instance, suppose the pattern: "abc(def[type]ghi)" @@ -117,56 +117,55 @@ type = null or "" -> the substitued pattern: abc A more real life example: -The pattern [artifact](-[revision]).[ext] let you accept both myartifact-1.0.jar when a revision is set, and myartifact.jar (instead of myartifact-.jar) when no revision is set -This is particularly useful when you need to keep control on artifact names. +The pattern [artifact](-[revision]).[ext] lets you accept both myartifact-1.0.jar when a revision is set, and myartifact.jar (instead of myartifact-.jar) when no revision is set. +This is particularly useful when you need to keep control of artifact names. -since 1.4 Extra attributes can be used as any other token in the patterns. +since 1.4 Extra attributes can be used as any other token in a pattern.

    Latest Strategy

    -Ivy often needs to know which revision between two has to be considered the "latest". For knowing that, it uses the concept of latest strategy. Indeed, there are several way to consider a revision to be the latest. -You can choose an existing one or plug your own. +Ivy often needs to know which revision between two is considered the "latest". To know that, it uses the concept of latest strategy. Indeed, there are several ways to consider a revision to be the latest. You can choose an existing one or plug in your own. -But before knowing which revision is the latest, ivy needs to be able to consider several revision of a module. Thus ivy has to get a list of files in a directory, and it uses the dependency resolver for that. So check if the dependency resolver you use is compatible with latest revisions before wondering why ivy do not manage to get your latest revision. +But before knowing which revision is the latest, ivy needs to be able to consider several revisions of a module. Thus ivy has to get a list of files in a directory, and it uses the dependency resolver for that. So check if the dependency resolver you use is compatible with latest revisions before wondering why ivy does not manage to get your latest revision. -Finally, In order to get several revisions of a module, most of the time you need to use the [revision] token in your pattern, so that ivy gets all the files which match the pattern whatever the revision is. It's only then that the latest strategy is used to determine which of this revisions is the latest one. +Finally, in order to get several revisions of a module, most of the time you need to use the [revision] token in your pattern so that ivy gets all the files which match the pattern, whatever the revision is. It's only then that the latest strategy is used to determine which of the revisions is the latest one. Ivy has three built-in latest strategies: See also how to configure new latest strategies here.

    Conflict Manager

    A conflict manager is able to select, among a list of module revisions in conflict, a list of revisions to keep. -Yes, it can selects a list of revision, even if most conflicts manager select only one revision. +Yes, it can select a list of revisions, even if most conflict managers select only one revision. But in some cases you will need to keep several revisions, and load in separate class loaders, for example. A list of revisions is said to be in conflict if they correspond to the same module, i.e. the same organisation/module name couple. The list of available conflict managers is available on the conflict manager configuration page. -To have more details on how to setup your conflict managers by module, see conflicts section in ivy file reference. +For more details on how to setup your conflict managers by module, see the conflicts section in the ivy file reference.

    Pattern matcher

    since 1.3 -At several places Ivy let uses pattern to match a set of objects. For instance, you can exclude several modules at once when declaring a dependency by using a pattern matching all the modules to exclude. +In several places Ivy uses a pattern to match a set of objects. For instance, you can exclude several modules at once when declaring a dependency by using a pattern matching all the modules to exclude. -Ivy uses pluggable pattern matcher to match those object names. 3 are defined by default: +Ivy uses a pluggable pattern matcher to match those object names. 3 are defined by default: -Note also that with any matcher the character '*' has the special meaning of matching anything. This is particularly useful with default values which do not depend on the matcher. +Note also that with any matcher, the character '*' has the special meaning of matching anything. This is particularly useful with default values which do not depend on the matcher.

    Extra attributes

    since 1.4 Several tags in ivy xml files are extensible with what is called extra attributes. -The idea is very simple: if you need some more information to define your modules, you can add the attribute you want and you will then be able to access it as any other attribute in your patterns for example. +The idea is very simple: if you need some more information to define your modules, you can add the attribute you want and you will then be able to access it as any other attribute in your patterns. since 2.0 It's possible and recommended to use xml namespaces for your extra attributes. Using an Ivy extra namespace is the easiest way to add your own extra attributes. @@ -184,7 +183,7 @@ Then you must use the extra attribute when you declare a dependency on foo. Those extra attributes -will indeed be used as identifier for the module like the org the name and the revision: +will indeed be used as identifiers for the module like the org the name and the revision: @@ -198,50 +197,50 @@ If you don't want to use xml namespaces, it's possible but you will need to disable ivy file validation, since your files won't fulffill anymore the official ivy xsd. See the settings documentation to see how to disable validation.

    Checksums

    since 1.4 -Ivy allow to use checksums, also known as digester, to verify the correctness of a downloaded file. +Ivy allows the use of checksums, also known as digests, to verify the correctness of a downloaded file. -For the moment Ivy supports md5 and sha1 algorithm. +For the moment Ivy supports the md5 and sha1 algorithms. The configuration of using md5 and/or sha1 can be done globally or by dependency resolver. Globally, use the ivy.checksums variable to list the check to be done (only md5 and sha1 are supported). On each resolver you can use the checksums attribute to override the global setting. -The setting is a comma separated list of checksum algorithm to use. -During checking (at download time), the first checksum found is checked, and that's all. This means that if you have a "sha1, md5" setting, then if ivy finds a sha1 file, it will compare the downloaded file sha1 against this sha1, and if the comparison is ok, it will assume the file is ok. If no sha1 file is found, it will look for a md5 file. If none is found no checking is done. +The setting is a comma separated list of checksum algorithms to use. +During checking (at download time), the first checksum found is checked, and that's all. This means that if you have a "sha1, md5" setting, then if ivy finds a sha1 file, it will compare the downloaded file sha1 against this sha1, and if the comparison is ok, it will assume the file is ok. If no sha1 file is found, it will look for an md5 file. If none is found no checking is done. During publish, all listed checksum algorithms are computed and uploaded. By default checksum algorithms are "sha1, md5". -If you want to change this default, you can set the variable ivy.checksums. Hence to disable checksum validation you just have to set ivy.checksums to "". +If you want to change this default, you can set the variable ivy.checksums. Hence, to disable checksum validation you just have to set ivy.checksums to "".

    Events and Triggers

    since 1.4 When Ivy performs the dependency resolution and some other tasks, it fires events before and after the most important steps. You can listen to these events using Ivy API, or you can even register a trigger to perform a particular action when a particular event occur. -This is a particularly powerful and flexible feature which allow for example to perform a build of a dependency just before it is resolved, or follow what's happening during the dependency resolution process accuratly, and so on. +This is a particularly powerful and flexible feature which allows, for example, you to perform a build of a dependency just before it is resolved, or follow what's happening during the dependency resolution process accuratly, and so on. -For more details about event and triggers, see the triggers documentation page in the configuration section of this documentation. +For more details about events and triggers, see the triggers documentation page in the configuration section of this documentation.

    Circular Dependencies

    since 1.4 -Circular dependencies can be either direct or indirect. For instance, if A depends on A it's a circular dependency, and if A depends on B which itself depends on A, this is also a circular dependency. +Circular dependencies can be either direct or indirect. For instance, if A depends on A, it's a circular dependency, and if A depends on B which itself depends on A, this is also a circular dependency. Prior to Ivy 1.4 circular dependencies where causing a failure in Ivy. As of Ivy 1.4, the behaviour of Ivy when it finds a circular dependency is configurable through a circular dependency strategy. 3 built-in strategies are available: See the configuration page to see how to configure the circular dependency strategy you want to use.

    Cache and Change Management

    -Ivy heavily relies on local cache(s) to avoid accessing remote repositories too often, thus saving a low of network bandwidth and time. +Ivy heavily relies on local caching to avoid accessing remote repositories too often, thus saving a lot of network bandwidth and time.

    Cache types

    -Ivy cache is composed of two different parts: +An Ivy cache is composed of two different parts:

    Hire an expert

    -Build and dependency management is often considered with a too low level priority in the software development world. We often see build management implemented by developers when they have time. Even if this may seem like a time and money saving in the short term, it often turns out to be a very bad choice in the long term. Building software is not a simple task, when you want to ensure automatic, tested, fully reproducible builds, releases and installations. On the other hand, once a good build system fitting your very specific needs is setup, it can then only rely on a few people with a good understanding of what is going on, with a constant quality ensured. +Build and dependency management is often given too low a priority in the software development world. We often see build management implemented by developers when they have time. Even if this may seem like a time and money savings in the short term, it often turns out to be a very bad choice in the long term. Building software is not a simple task, when you want to ensure automatic, tested, fully reproducible builds, releases and installations. On the other hand, once a good build system fitting your very specific needs is setup, it can then only rely on a few people with a good understanding of what is going on, with a constant quality ensured. Therefore hiring a build and dependency expert to analyse and improve your build and release system is most of the time a very good choice.

    Feedback

    -These best practices are the reflect of our own experience, but we do not pretend to own the unique truth about dependency management or even Ivy use. +These best practices reflect our own experience, but we do not pretend to own the unique truth about dependency management or even Ivy use. So feel free to comment on this page to add your own experience feedback, suggestions or opinion. Index: settings.html =================================================================== --- settings.html (revision 910652) +++ settings.html (working copy) @@ -25,11 +25,11 @@ Index: index.html =================================================================== --- index.html (revision 910652) +++ index.html (working copy) @@ -38,7 +38,7 @@ Ivy has a lot of powerful [[features]], the most popular and useful being its flexibility, integration with ant, and its strong transitive dependencies management engine. -The transitive dependencies management is a feature which let you get dependencies of your dependencies, transitively. In order to address this problematic ivy needs to find metadata about your modules, usually in an ivy file. To find these metadata and your dependencies artifacts (usually jars), Ivy can be configured to use a lot of different repositories. +The transitive dependencies management is a feature which lets you get dependencies of your dependencies, transitively. In order to address this general problem, ivy needs to find metadata about your modules, usually in an ivy file. To find the metadata and your dependencies' artifacts (usually jars), Ivy can be configured to use a lot of different repositories.

    About this doc

    @@ -46,9 +46,9 @@
    This documentation has been migrated from the old Ivy web site hosted by Jayasoft, feel free to report any problem on the [[mailing-lists]]. -If you browse this documentation from your installation of Ivy, you can also check the online version for latest updates. +If you browse this documentation from your installation of Ivy, you can also check the online version for the latest updates. -You can also browse this documentation offline either by downloading the documentation distribution, or by checking out the doc directory from svn. This documentation uses xooki as documentation engine, so you can very easily [[get-involved edit it and submit patches]] when you browse it from source. +You can also browse this documentation offline either by downloading the documentation distribution, or by checking out the doc directory from svn. This documentation uses xooki as its documentation engine, so you can very easily [[get-involved edit it and submit patches]] when you browse it from source. A printer-friendly version of this whole documentation is also provided for your convenience. @@ -57,20 +57,20 @@ For earlier versions, we suggest downloading the documentation to browse the documentation corresponding to the version you use. The full history of Ivy versions with corresponding links for download is available in the history menu on the web site.

    Other places to go

    -Check Ivy [[features features]]. +Check out Ivy [[features features]]. Read our [[faq FAQ]]. Ask for help on our [[mailing-lists mailing lists]]. -Report bug or feature request in our [[issues issue tracking system]]. +Report a bug or feature request in our [[issues issue tracking system]]. Check [[links external tools and resources]].

    Overview

    -This documentation is decomposed in 3 main parts: +This documentation is composed of three main parts: