Tag:
include
Includes another ivysettings file as if it were part of this one.
since 1.3
The included ivysettings file has to be a complete well formed ivysettings file, i.e. it does have to include the
tag.
Attributes
Attribute
Description
Required
url
a URL to the ivysettings file to include
Yes, unless file is specified
file
a path to the ivysettings file to include
Yes, unless url is specified
Examples
with ivysettings-default.xml:
The included ivysettings defines a resolver named default, which is an ivyrep resolver, with its root configured as being the value of myrepository variable. This variable is given the value path/to/rep in the included file, but because the attribute overwrite is set to false, it will not override the value given in the main ivysettings including this one, so the value used for myrepository will be path/to/my/real/rep.
with ivysettings-macro.xml being the ivysettings example given on the [[settings/macrodef macrodef documentation page]]. This let reusing macro resolver easy.