From notifications-return-12988-apmail-ant-notifications-archive=ant.apache.org@ant.apache.org Thu Jul 08 10:05:19 2010 Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 51426 invoked from network); 8 Jul 2010 10:05:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 10:05:13 -0000 Received: (qmail 89655 invoked by uid 500); 8 Jul 2010 10:05:13 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 89541 invoked by uid 500); 8 Jul 2010 10:05:12 -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 88402 invoked by uid 99); 8 Jul 2010 10:05:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 10:05:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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, 08 Jul 2010 10:03:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7C5EF2388C27; Thu, 8 Jul 2010 10:00:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r961685 [42/45] - in /ant/ivy/site/target/history/2.2.0-rc1: ./ configuration/ configuration/caches/ configuration/macrodef/ configuration/namespace/ dev/ images/ ivyfile/ js/ resolver/ samples/ settings/ settings/caches/ settings/macrodef/... Date: Thu, 08 Jul 2010 10:00:27 -0000 To: notifications@ant.apache.org From: maartenc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100708100130.7C5EF2388C27@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: ant/ivy/site/target/history/2.2.0-rc1/use/install.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/use/install.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/use/install.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/use/install.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,167 @@ + + + + + + + + +install | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

install

+
Installs a module and all its dependencies in a resolver. since 1.3 + +The module to install should be available in a resolver, and will be installed in another resolver which should support publish.

This is particularly useful for users who only have a private repository, and want to benefit from public repositories from time to time. In this case, when a module is missing in the private repository, a call to install let download the module from a public repository not usually used for dependency resolution, and install it and its dependencies in the private repository.

For more details about this task and its usage see the build repository tutorial
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
fromthe name of the resolver in which the module must be foundYes
tothe name of the resolver in which the module must be installedYes
organisationthe name of the organisation of the module to installYes
modulethe name of the module to installYes
branchthe branch of the module to install since 2.0No, defaults to default branch with exact matcher, '*' with any other matcher
revisionthe revision of the module to installYes
typethe type(s) of artefact(s) to install. You can give multiple values separated by commasNo, defaults to '*' meaning all types
validatetrue to force ivy files validation against ivy.xsd, false to force no validationNo. Defaults to default ivy value (as configured in configuration file)
overwritetrue to override modules already present in the destination resolver, false otherwiseNo, defaults to false
transitivetrue to install the module and all its transitive dependencies, false to install only the moduleNo, defaults to false
matcherthe name of the matcher to use to find the modules to installNo, defaults to exact
settingsRefA reference to the ivy settings that must be used by this task (since 2.0)No, 'ivy.instance' is taken by default.
haltonfailuretrue to fail build on unresolved dependencies since 2.0No, defaults to true
+

Examples

+
+<ivy:install organisation="apache" module="commons-lang" revision="2.0" from="ivyrep" to="myfsresolver"/>
+
+Installs the module commons-lang from apache in revision 2.0 in the resolver myfsresolver. The module is found in the resolver named 'ivyrep'.

+
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/use/install.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ant/ivy/site/target/history/2.2.0-rc1/use/listmodules.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/use/listmodules.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/use/listmodules.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/use/listmodules.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,160 @@ + + + + + + + + +listmodules | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

listmodules

+
since 1.4 +Finds the list of modules in the repository matching some criteria and set a corresponding list of properties in ant.

The criteria is set by given patterns matching the organisation, name branch and revision of the modules to find.

To know if a module matches the criteria ivy will use the configured pattern matcher.

Attributes

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
organisationthe pattern matching the organisation of the modules to listYes
modulethe pattern matching the name of the modules to listYes
branchthe pattern matching the branch of the modules to listNo, defaults to '*'
revisionthe pattern matching the revision of the modules to listYes
matcherthe name of the pattern matcher to use for matching the modules fieldsNo. Defaults to exactOrRegexp.
propertythe pattern of the property to set when a module is foundYes
valueThe pattern of the value to set when a module is foundYes
settingsRefA reference to the ivy settings that must be used by this task (since 2.0)No, 'ivy.instance' is taken by default.
resolverThe name of the resolver to use for searching the modules (since 2.2.0)No, all available resolvers will be used by default.
+

Examples

+
+<ivy:listmodules organisation="apache" module="ivy" revision="*" property="ivy.[revision]" value="found"/>
+
+will find all revisions of the module ivy in the org apache, and create one property for each revision found, the name of the property depending on the revision, the value being always 'found'


+ +
+<ivy:listmodules organisation="*" module="ivy*" revision="1.0" matcher="glob" property="modules.[module]" value="[organisation]"/>
+
+use the glob matcher to find all modules which name starts with ivy with revision 1.0, and sets for each a property with module name found and organisation for value.
Example:
modules.ivy=apache
modules.ivyde=apache
modules.ivytools=ivytools

+
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/use/listmodules.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ant/ivy/site/target/history/2.2.0-rc1/use/makepom.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/use/makepom.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/use/makepom.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/use/makepom.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,157 @@ + + + + + + + + +makepom | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

makepom

+
since 2.0 +The makepom task allows to convert an ivy file to a pom file.

An example of use is to publish an Ivy managed module to a maven 2 repository.

Note that all Ivy features are not supported by maven poms, so the converted pom may not resolve to the exact same dependencies as the original ivy file.

Attributes

+ + + + + + + + + + + +
AttributeDescriptionRequired
ivyfilethe source ivy file to convertYes
pomfilethe destination pom file to writeYes
settingsRefA reference to the ivy settings that must be used by this taskNo, 'ivy.instance' is taken by default.
+

Child elements

+ + + + + + + + + +
ElementDescriptionCardinality
mappingdescribes the mapping from an Ivy module configuration to a Maven POM scope.
These elements takes two attributes:
  • conf
  • the configuration to map
  • scope
  • the scope to which it should be mapped
0..n
+ +

Examples

+
+<ivy:makepom ivyfile="${basedir}/path/to/ivy.xml" pomfile="${basedir}/path/to/module.pom">
<mapping conf="default" scope="compile"/>
<mapping conf="runtime" scope="runtime"/>
</ivy:makepom> +
+Converts ${basedir}/path/to/ivy.xml to a pom and writes the result to ${basedir}/path/to/module.pom. The configuration 'default' in the parsed ivy file will be mapped to the scope 'compile', the configuration 'runtime' will be mapped to 'runtime', and other configurations will be considered optional.

+
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/use/makepom.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ant/ivy/site/target/history/2.2.0-rc1/use/postresolvetask.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/use/postresolvetask.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/use/postresolvetask.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/use/postresolvetask.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,177 @@ + + + + + + + + +post resolve tasks | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

post resolve tasks

+
Several tasks in Ivy are considered as post resolve task and share a common behaviour and settings accordingly.

These tasks are: + + +All these tasks will trigger automatically a resolve if: +
    +
  • none has already been called in the current build with the attribute keep set to true (see below)
  • +
  • organisation and module are not set
  • +
+ +Since Ivy 1.4, there are two ways to run a resolve: with an ivy file, or with the inline mode.
When you call resolve with an ivy file, the default for it is to keep the resolved data for use by the subsequent post resolve tasks. When you run an inline resolve, the default is not to keep the data. You can override this behaviour by setting the keep attribute as you like.

If you want to to reuse the resolved data obtained through a call to resolve in another build (i.e. not the current one), then you have to set the organisation and module attributes. This work only if the cache was not cleaned since your last resolve call. This does not work with inline calls, which must be performed in the same build.


The attributes listed are then mostly used only if a resolve is triggered automatically.

Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
confa comma separated list of the configurations to retrieve or '*'.
Since 2.0 you can also use '*(public)' or '*(private)'. Note that '*' is interpreted as '*(public)' when inline is true.
No. Defaults to the configurations resolved by the last resolve call, or '*' if no resolve was explicitly called
inlinetrue to use inline mode, false to resolve an ivy file (since 1.4)No. defaults false
organisationthe organisation of the module to retrieve. This usually doesn't need to be set since it defaults to the last resolved one, except for inline mode where it is required.Yes in inline mode, otherwise no, it then defaults to last resolved module name
modulethe name of the module to retrieve. This usually doesn't need to be set since it defaults to the last resolved one, except for inline mode where it is required.Yes in inline mode, otherwise no, it then defaults to last resolved module name
revisionthe revision constraint of the module to retrieve. Used only in inline mode. since 1.4No. Defaults to latest.integration
branchthe name of the branch to resolve in inline mode (since 2.1)Defaults to no branch in inline mode, nothing in standard mode.
changingindicates that the module may change when resolving in inline mode. See cache and change management for details. Ignored when resolving in standard mode. (since 2.2.0)No. Defaults to false.
transitivetrue to resolve dependencies transitively, false otherwise since 1.4No. Defaults to true
resolveModethe resolve mode to use when an automatic resolve is triggered (since 2.1)No. defaults to using the resolve mode set in the settings
keeptrue to keep the results of the automatic resolve in memory, false to discard them. When this is false, the standard ivy properties won't be set and other postresolve-tasks (like retrieve and cachepath) won't be able to resuse the results of this resolve!No. defaults to false for an inline resolve and to true in any other case
haltonfailuretrue to halt the build on ivy failure, false to continueNo. Defaults to true
validatetrue to force ivy files validation against ivy.xsd, false to force no validationNo. Defaults to default ivy value (as configured in configuration file)
refreshtrue to force Ivy to resolve dynamic revision in this resolve process, false to use cached resolved revision since 2.1No. defaults to false
filethe file to resolve if a resolve is necessary since 2.0No. Defaults to the previous resolved Ivy file or to ${ivy.dep.file}
settingsRefA reference to the ivy settings that must be used by this task (since 2.0)No, 'ivy.instance' is taken by default.
resolveIdThe id which was used for a previous resolve, or the resolveId if a new resolve is performed (since 2.0)No, defaults to '[org]-[module]'.
logthe log setting to use during the resolve process. (since 2.0)
+Available options are: +
  • default
  • the default log settings, where all usual messages are output to the console +
  • download-only
  • disable all usual messages but download ones. A resolve with everything in cache won't output any message. +
  • quiet
  • disable all usual messages, making the whole resolve process quiet unless errors occur +
No, defaults to 'default'.
+

Examples

+
+<ivy:cachepath organisation="emma" module="emma" revision="2.0.4217" inline="true" conf="ant" pathid="emma.classpath"/>
<taskdef resource="emma_ant.properties" classpathref="emma.classpath" /> +
+Resolves the emma module in version 2.0.4217, constructs an ant path with the corresponding artifacts, and then define the emma tasks using this path.

+
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/use/postresolvetask.html ------------------------------------------------------------------------------ svn:mime-type = text/plain