Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 47800 invoked from network); 8 Jul 2010 10:02:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 10:02:26 -0000 Received: (qmail 86600 invoked by uid 500); 8 Jul 2010 10:02:26 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 86438 invoked by uid 500); 8 Jul 2010 10:02:26 -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 86255 invoked by uid 99); 8 Jul 2010 10:02:24 -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:02:24 +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:02:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 807FA2388C7B; Thu, 8 Jul 2010 10:00:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r961685 [28/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: <20100708100051.807FA2388C7B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: ant/ivy/site/target/history/2.2.0-rc1/settings/namespace.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/settings/namespace.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/settings/namespace.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/settings/namespace.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,163 @@ + + + + + + + +namespace | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

namespace

+
Tag: namespace

Defines a new namespace. A namespace is identified by a name, which is used to reference the namespace in the resolvers using the namespace. + +Namespaces overview is given in the namespaces documentation.

A namespace mainly consists of a list of rules, each rule defining a translation between system namespace and the defined namespace, and vice versa.

There are two main possibilities for using these rules. By default, a namespace iterate through the rules, and when it finds one that translate the given name, it returns the translated name. But the namespace can be configured to do use the list as a translator chain: in this case, all rules are applied in order, the result of the first rule translation being passed to the second, and so on.

Attributes

+ + + + + + + + + + +
AttributeDescriptionRequired
namethe namespace nameYes
chainrulestrue to indicate that namespaces rules should be chained, false otherwiseNo, defaults to false
+

Child elements

+ + + + + + + + +
ElementDescriptionCardinality
ruledefines a new namespace rule0..n
+

Example

+
+<namespace name="test">
<rule>
<fromsystem>
<src org="systemorg"/>
<dest org="A"/>
</fromsystem>
<tosystem>
<src org="A"/>
<dest org="systemorg"/>
</tosystem>
</rule>
</namespace> +
+ +
+<namespace name="test">
<rule>
<fromsystem>
<src org="systemorg2" module="system\-(.+)"/>
<dest org="B" module="$m1"/>
</fromsystem>
<tosystem>
<src org="B" module=".+"/>
<dest org="systemorg2" module="system-$m0"/>
</tosystem>
</rule>
</namespace> +
+ +
+<namespace name="test" chainrules="true">
<rule>
<fromsystem>
<src org="systemorg"/>
<dest org="A"/>
</fromsystem>
<tosystem>
<src org="A"/>
<dest org="systemorg"/>
</tosystem>
</rule>
<rule>
<fromsystem>
<src module="systemmod"/>
<dest module="A"/>
</fromsystem>
<tosystem>
<src module="A"/>
<dest module="systemmod"/>
</tosystem>
</rule>
<rule>
<fromsystem>
<src module="systemmod2"/>
<dest module="B"/>
</fromsystem>
<tosystem>
<src module="B"/>
<dest module="systemmod2"/>
</tosystem>
</rule>
</namespace> +
+ + +
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/settings/namespace.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/dest.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/dest.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/dest.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/dest.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,146 @@ + + + + + + + +dest | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

dest

+
Tag: dest

Defines the translation part of a translation rule. If a name has matched a corresponding src, it will be translated using this dest part. + +The new names can contain references to groups of the matched name, using a slightly modified regexp syntax. Indeed, referenced groups can be part of either the organisation, module or revision part of the original name. So, to reference the groups, you just have to add a letter identifying the part in which the group should be selected: o for organisation, m for module, and r for revision.

For instance, $o0 matches the whole matched organisation, and $m0 the whole matched module name. $o1 matches the first group of the matched organisation.

For details about regexp and groups, see the Pattern class documentation in the jdk.

Attributes

+ + + + + + + + + + + + +
AttributeDescriptionRequired
orgthe new organisation nameNo, defaults to $o0
modulethe new module nameNo, defaults to $m0
revthe new revisionNo, defaults to $r0
+

Examples

+
+    <fromsystem>
<src org="systemorg2" module="system\-(.+)"/>
<dest org="B" module="$m1"/>
</fromsystem> +
+Matches modules from systemorg2 which have a name beginning with system followed by a minus and anything else, and translate it to organisation B and module the part following
system-
of the original name.

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

fromsystem / tosystem

+
Tag: fromsystem / tosystem

Defines a one way translation rule, i.e. a translation from system namespace to the defined namespace or vice versa. +

Child elements

+ + + + + + + + + + +
ElementDescriptionCardinality
srcdefines a source name which can be accepted1..n
destdefines the translation to apply when a name is accepted by an src pattern1
+ + +
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/fromtosystem.html ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/rule.html URL: http://svn.apache.org/viewvc/ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/rule.html?rev=961685&view=auto ============================================================================== --- ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/rule.html (added) +++ ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/rule.html Thu Jul 8 10:00:21 2010 @@ -0,0 +1,140 @@ + + + + + + + +rule | Apache Ivy + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + + + + +
+
+ +

rule

+
Tag: rule

Defines a new namespace rule. A rule defines a translation between system namespace and the defined namespace, and vice versa. + +See namespace doc for details.

Child elements

+ + + + + + + + + + +
ElementDescriptionCardinality
fromsystemdefines the translation to apply from system namespace to the defined namespace1
tosystemdefines the translation to apply from the defined namespace to system namespace1
+ +
+
+ + + + + + + + + + + + +
+ + Propchange: ant/ivy/site/target/history/2.2.0-rc1/settings/namespace/rule.html ------------------------------------------------------------------------------ svn:mime-type = text/plain