- Documentation (2.5.2)
- Release Notes
- Tutorials
- Reference
- Introduction
- System Properties
- Settings Files
- Ivy Files
- Ant Tasks
- artifactproperty
- artifactreport
- buildlist
- buildnumber
- buildobr
- cachefileset
- cachepath
- checkdepsupdate
- cleancache
- configure
- convertmanifest
- convertpom
- deliver
- dependencytree
- findrevision
- fixdeps
- info
- install
- listmodules
- makepom
- post resolve tasks
- publish
- report
- repreport
- resolve
- resources
- retrieve
- settings
- var
- Using standalone
- OSGi
- Developer doc
Text Conventions
Very often some concepts discussed in Ivy here, and especially those involving modules and dependencies, require to be discussed by text (e-mail, textual doc, console, …), and so benefit from convention in this area.
The conventions have been adopted with Ivy 2.0 are the following:
what | pattern | example |
---|---|---|
a module without revision |
|
|
a module with revision |
|
|
a module with (some) configurations |
|
|
a module with revision and (some) configurations |
|
|
a module’s artifact |
|
|
a module’s artifact with revision |
|
|
Another usual text representation used is to represent dependencies using a dash followed by greater than sign: ->
To group a set of set of modules, we recommend using curly braces {
}
.
With these conventions, it’s easy to give a concise and detailed overview of a set of modules and their dependencies.
For instance:
#A;2-> { #B;[1.0,1.5] #C;[2.0,2.5] }
#B;1.4->#D;1.5
#B;1.5->#D;2.0
#C;2.5->#D;[1.0,1.6]
In full words here is how it could be written:
module A revision 2 depends on module B with the version constraint [1.0,1.5], and on module C with the version constraint [2.0,2.5].
module B revision 1.4 depends on module D revision 1.5.
module B revision 1.5 depends on module D revision 2.0.
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.
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.
Here is the recommended characters set for each attribute:
organisation
-
a-z
A-Z
0-9
-
/
.
_
+
=
module
-
a-z
A-Z
0-9
-
/
.
_
+
=
branch
-
a-z
A-Z
0-9
-
/
.
_
+
=
revision
-
a-z
A-Z
0-9
-
/
.
_
+
=
,
[
]
{
}
(
)
:
@
artifact
-
a-z
A-Z
0-9
-
/
.
_
+
=
extension
-
a-z
A-Z
0-9
-
/
.
_
+
=
type
-
a-z
A-Z
0-9
-
/
.
_
+
=