You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by hi...@apache.org on 2011/02/22 15:56:09 UTC

svn commit: r1073371 [25/28] - in /incubator/easyant/core/trunk: ./ bin/ example/build-configurations/ example/build-configurations/src/main/java/org/apache/easyant/example/ example/build-configurations/src/test/java/org/apache/easyant/example/ example...

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc-plugin.xsl
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc-plugin.xsl?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc-plugin.xsl (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc-plugin.xsl Tue Feb 22 15:55:55 2011
@@ -16,276 +16,276 @@
    limitations under the License.
 -->
 
-	<!--
-		Generate xooki Plugin documentation from a ea:repreport xml file.
-	-->
+    <!--
+        Generate xooki Plugin documentation from a ea:repreport xml file.
+    -->
 <xsl:stylesheet version="1.0"
-	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ea="antlib:org.apache.easyant">
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ea="antlib:org.apache.easyant">
 
-	<!--
-		module organisation, provided from eadoc configuration parameters
-	-->
-	<xsl:param name="pluginOrganisation">org.apache.easyant.plugins</xsl:param>
-
-	<!--
-		xooki TOC level for the output HTML document. Default assumes TOC
-		structure like Documentation > Reference > Plugins (level 2)
-	-->
-	<xsl:param name="tocLevel">2</xsl:param>
-
-	<xsl:output method="html" indent="yes" omit-xml-declaration="yes"
-		doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
-
-	<!--
-		TODO: this model breaks if there is more than one revision element per
-		module.
-	-->
-	
-	<xsl:template match="/ivy-report/dependencies/module[1]/revision">
-		<xsl:variable name="pluginName" select="../@name" />
-		<xsl:variable name="pluginOrganisation" select="../@organisation"/>
-		<xsl:variable name="moduleVersion" select="@name" />
-		<xsl:variable name="moduleDescription" select="description" />
-		<xsl:comment>
-			Licensed to the Apache Software Foundation (ASF) under one
-			or more contributor license agreements. See the NOTICE file
-			distributed with this work for additional information
-			regarding copyright ownership. The ASF licenses this file
-			to you under the Apache License, Version 2.0 (the
-			"License"); you may not use this file except in compliance
-			with the License. You may obtain a copy of the License at
-
-			http://www.apache.org/licenses/LICENSE-2.0
-
-			Unless required by applicable law or agreed to in writing,
-			software distributed under the License is distributed on an
-			"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-			KIND, either express or implied. See the License for the
-			specific language governing permissions and limitations
-			under the License.
-		</xsl:comment>
-		<xsl:text>
-		</xsl:text>
-		<xsl:comment>
-			<xsl:value-of select="$pluginName" />
-			documentation autogenerated by EADoc
-		</xsl:comment>
-		<xsl:text>
-		</xsl:text>
-		<html>
-			<head>
-				<title>
-					EasyAnt Plugin <xsl:value-of select="$pluginName" /><xsl:text> </xsl:text><xsl:value-of select="concat('v', $moduleVersion)" />
-				</title>
-				<script type="text/javascript">
-					var xookiConfig = {level:<xsl:value-of select="$tocLevel" />};
-				</script>
-				<script type="text/javascript" src="../../xooki/xooki.js">
-					<xsl:text></xsl:text>
-				</script>
-			</head>
-			<body>
-				<textarea id="xooki-source">
-
-					<xsl:call-template name="outputHeader">
-						<xsl:with-param name="pluginName" select="$pluginName" />
-						<xsl:with-param name="pluginVersion" select="$moduleVersion" />
-					</xsl:call-template>
-
-					<xsl:if test="$moduleDescription">
-						<h2>Overview</h2>
-						<p>
-							<xsl:copy-of select="$moduleDescription"/> 
-						</p>
-					</xsl:if>
-
-					<div id="sample">
-						<h2>Example</h2>
-						You can use this plugin by adding the following code in your module.ivy (or module.ant) file
-						<code type="xml">
-							<ea:plugin>
-								<xsl:attribute name="organisation">
-									<xsl:value-of select="$pluginOrganisation"/>
-								</xsl:attribute>
-								<xsl:attribute name="module">
-									<xsl:value-of select="$pluginName"/>
-								</xsl:attribute>
-								<xsl:attribute name="rev">
-									<xsl:value-of select="$moduleVersion"/>
-								</xsl:attribute>
-								<xsl:attribute name="as">
-									<xsl:value-of select="$pluginName"/>
-								</xsl:attribute>
-							</ea:plugin>
-						</code>
-						<div id="note">
-							Note: By default targets provided by a plugin are prefixed by the plugin name (<xsl:value-of select="$pluginOrganisation"/>#<xsl:value-of select="$pluginName"/>).
-							Most of the time the plugin name is quite long so easyant allows you to define an alias for the project names. This alias can be used in place of the complete project name. 
-							You can define an alias for a plugin using 'as' attribute. 
-						</div>
-						<xsl:if test="$pluginOrganisation='org.apache.easyant.plugins'">
-							<div id="note">Note: The organisation argument in <b>ea:plugin</b> tag is optional. If not specified easyant will use the default one (org.apache.easyant.plugins).</div>					
-							Shorter form : 
-							<code type="xml">
-								<ea:build>
-									<xsl:attribute name="module">
-										<xsl:value-of select="$pluginName"/>
-									</xsl:attribute>
-									<xsl:attribute name="rev">
-										<xsl:value-of select="$moduleVersion"/>
-									</xsl:attribute>
-									<xsl:attribute name="as">
-										<xsl:value-of select="$pluginName"/>
-									</xsl:attribute>
-								</ea:build>
-							</code>
-						</xsl:if>
-					</div>
-					
-					<xsl:call-template name="outputBuildPhases" />
-					<xsl:call-template name="outputParameterTable" />
-				</textarea>
-				<script type="text/javascript">xooki.postProcess();</script>
-			</body>
-		</html>
-
-	</xsl:template>
-
-	<!-- Output plugin name and generate links to extended plugins -->
-	<xsl:template name="outputHeader">
-		<xsl:param name="pluginName" />
-		<xsl:param name="pluginVersion" />
-		<h1>
-			Plugin <xsl:value-of select="$pluginName" /><xsl:text> </xsl:text><xsl:value-of select="concat('v', $pluginVersion)" />
-		</h1>
-		<xsl:if test="easyant/imports/import[@organisation = $pluginOrganisation]">
-			<div class="parent-plugins">
-				extends
-				<xsl:for-each
-					select="easyant/imports/import[@organisation = $pluginOrganisation]">
-					<xsl:variable name="parentName" select="@name" />
-					<xsl:element name="a">
-						<xsl:attribute name="href"><xsl:value-of
-							select="concat($parentName, '.html')" /></xsl:attribute>
-						<xsl:value-of select="$parentName" />
-					</xsl:element>
-				</xsl:for-each>
-			</div>
-		</xsl:if>
-		<hr />
-	</xsl:template>
-
-	<!--
-		Generate an HTML table summarizing parameters used by the plugin
-	-->
-	<xsl:template name="outputParameterTable">
-		<xsl:if test="easyant/properties/property">
-			<h2>Parameters</h2>
-			<p>The following property values can be changed to tune the behavior of this plugin.
-				Required parameters must be defined upon import, or the build will fail.</p>
-			<table class="sortable" id="plugin-parameters">
-				<thead>
-					<tr  class="header-row">
-						<th>Parameter</th>
-						<th>Required?</th>
-						<th class="unsortable">Description</th>
-					</tr>
-				</thead>
-				<tbody>
-					<xsl:for-each select="easyant/properties/property">
-						<tr>
-							<td>
-								<xsl:value-of select="@name" />
-							</td>
-							<td>
-								<xsl:choose>
-									<xsl:when test="@required = 'true'">Yes</xsl:when>
-									<xsl:otherwise>No</xsl:otherwise>
-								</xsl:choose>
-							</td>
-							<td>
-								<xsl:if test="@description">
-									<xsl:value-of select="@description" /><br/>
-								</xsl:if>
-								<xsl:if test="@default">
-									<span class="bold">Default value: </span><span class="defaultValue"><xsl:value-of select="@default" /></span>
-								</xsl:if>
-							</td>
-						</tr>
-					</xsl:for-each>
-				</tbody>
-			</table>
-		</xsl:if>
-	</xsl:template>
-
-	<!--
-		Generate a list describing what the plugin does during each build
-		phase
-	-->
-	<xsl:template name="outputBuildPhases">
-		<xsl:variable name="targets" select="easyant/targets" />
-
-		<xsl:if test="easyant/phases/phase or $targets/target[@phase]">
-			<xsl:if test="easyant/phases/phase">
-				<h2>Build Phases</h2>
-			
-				<p>
-					This plugin defines the following <a href="../phases.html">new build phases</a> :
-				</p>
-				<table class="sortable" id="plugin-phases">
-					<thead>
-						<tr class="header-row">
-							<td>Phase</td>
-							<td class="unsortable">Description</td>
-						</tr>
-					</thead>
-					<tbody>
-						<xsl:for-each select="easyant/phases/phase">
-							<tr>
-								<td>
-									<xsl:value-of select="@name" />
-								</td>
-								<td>
-									<xsl:value-of select="@description" />
-								</td>
-							</tr>
-						</xsl:for-each>
-					</tbody>
-				</table>
-			</xsl:if>
-
-			<xsl:if test="$targets/target">
-				<h2>Targets</h2>
-				<p>This plugin contains the following targets:</p>
-				<table class="sortable" id="plugin-targets">
-					<thead>
-						<tr  class="header-row">
-							<th>Target</th>
-							<th class="unsortable">Description</th>
-							<th>Phase</th>
-						</tr>
-					</thead>
-					<tbody>
-						<xsl:for-each select="$targets/target">
-							<tr class="target-row">
-								<td class="target-name">
-									<xsl:value-of select="@name" />
-								</td>
-								<td>
-									<xsl:value-of select="@description" />
-								</td>
-								<td>
-									<xsl:value-of select="@phase" />
-								</td>
-							</tr>
-						</xsl:for-each>
-					</tbody>
-				</table>
-				<p>
-					Some targets are bound to existing <a href="../phases.html">build phase(s)</a>.
-				</p>
-			</xsl:if>
-		</xsl:if>
-	</xsl:template>
-	<xsl:template match="text()"/>
+    <!--
+        module organisation, provided from eadoc configuration parameters
+    -->
+    <xsl:param name="pluginOrganisation">org.apache.easyant.plugins</xsl:param>
+
+    <!--
+        xooki TOC level for the output HTML document. Default assumes TOC
+        structure like Documentation > Reference > Plugins (level 2)
+    -->
+    <xsl:param name="tocLevel">2</xsl:param>
+
+    <xsl:output method="html" indent="yes" omit-xml-declaration="yes"
+        doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
+
+    <!--
+        TODO: this model breaks if there is more than one revision element per
+        module.
+    -->
+    
+    <xsl:template match="/ivy-report/dependencies/module[1]/revision">
+        <xsl:variable name="pluginName" select="../@name" />
+        <xsl:variable name="pluginOrganisation" select="../@organisation"/>
+        <xsl:variable name="moduleVersion" select="@name" />
+        <xsl:variable name="moduleDescription" select="description" />
+        <xsl:comment>
+            Licensed to the Apache Software Foundation (ASF) under one
+            or more contributor license agreements. See the NOTICE file
+            distributed with this work for additional information
+            regarding copyright ownership. The ASF licenses this file
+            to you under the Apache License, Version 2.0 (the
+            "License"); you may not use this file except in compliance
+            with the License. You may obtain a copy of the License at
+
+            http://www.apache.org/licenses/LICENSE-2.0
+
+            Unless required by applicable law or agreed to in writing,
+            software distributed under the License is distributed on an
+            "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+            KIND, either express or implied. See the License for the
+            specific language governing permissions and limitations
+            under the License.
+        </xsl:comment>
+        <xsl:text>
+        </xsl:text>
+        <xsl:comment>
+            <xsl:value-of select="$pluginName" />
+            documentation autogenerated by EADoc
+        </xsl:comment>
+        <xsl:text>
+        </xsl:text>
+        <html>
+            <head>
+                <title>
+                    EasyAnt Plugin <xsl:value-of select="$pluginName" /><xsl:text> </xsl:text><xsl:value-of select="concat('v', $moduleVersion)" />
+                </title>
+                <script type="text/javascript">
+                    var xookiConfig = {level:<xsl:value-of select="$tocLevel" />};
+                </script>
+                <script type="text/javascript" src="../../xooki/xooki.js">
+                    <xsl:text></xsl:text>
+                </script>
+            </head>
+            <body>
+                <textarea id="xooki-source">
+
+                    <xsl:call-template name="outputHeader">
+                        <xsl:with-param name="pluginName" select="$pluginName" />
+                        <xsl:with-param name="pluginVersion" select="$moduleVersion" />
+                    </xsl:call-template>
+
+                    <xsl:if test="$moduleDescription">
+                        <h2>Overview</h2>
+                        <p>
+                            <xsl:copy-of select="$moduleDescription"/> 
+                        </p>
+                    </xsl:if>
+
+                    <div id="sample">
+                        <h2>Example</h2>
+                        You can use this plugin by adding the following code in your module.ivy (or module.ant) file
+                        <code type="xml">
+                            <ea:plugin>
+                                <xsl:attribute name="organisation">
+                                    <xsl:value-of select="$pluginOrganisation"/>
+                                </xsl:attribute>
+                                <xsl:attribute name="module">
+                                    <xsl:value-of select="$pluginName"/>
+                                </xsl:attribute>
+                                <xsl:attribute name="rev">
+                                    <xsl:value-of select="$moduleVersion"/>
+                                </xsl:attribute>
+                                <xsl:attribute name="as">
+                                    <xsl:value-of select="$pluginName"/>
+                                </xsl:attribute>
+                            </ea:plugin>
+                        </code>
+                        <div id="note">
+                            Note: By default targets provided by a plugin are prefixed by the plugin name (<xsl:value-of select="$pluginOrganisation"/>#<xsl:value-of select="$pluginName"/>).
+                            Most of the time the plugin name is quite long so easyant allows you to define an alias for the project names. This alias can be used in place of the complete project name. 
+                            You can define an alias for a plugin using 'as' attribute. 
+                        </div>
+                        <xsl:if test="$pluginOrganisation='org.apache.easyant.plugins'">
+                            <div id="note">Note: The organisation argument in <b>ea:plugin</b> tag is optional. If not specified easyant will use the default one (org.apache.easyant.plugins).</div>                   
+                            Shorter form : 
+                            <code type="xml">
+                                <ea:build>
+                                    <xsl:attribute name="module">
+                                        <xsl:value-of select="$pluginName"/>
+                                    </xsl:attribute>
+                                    <xsl:attribute name="rev">
+                                        <xsl:value-of select="$moduleVersion"/>
+                                    </xsl:attribute>
+                                    <xsl:attribute name="as">
+                                        <xsl:value-of select="$pluginName"/>
+                                    </xsl:attribute>
+                                </ea:build>
+                            </code>
+                        </xsl:if>
+                    </div>
+                    
+                    <xsl:call-template name="outputBuildPhases" />
+                    <xsl:call-template name="outputParameterTable" />
+                </textarea>
+                <script type="text/javascript">xooki.postProcess();</script>
+            </body>
+        </html>
+
+    </xsl:template>
+
+    <!-- Output plugin name and generate links to extended plugins -->
+    <xsl:template name="outputHeader">
+        <xsl:param name="pluginName" />
+        <xsl:param name="pluginVersion" />
+        <h1>
+            Plugin <xsl:value-of select="$pluginName" /><xsl:text> </xsl:text><xsl:value-of select="concat('v', $pluginVersion)" />
+        </h1>
+        <xsl:if test="easyant/imports/import[@organisation = $pluginOrganisation]">
+            <div class="parent-plugins">
+                extends
+                <xsl:for-each
+                    select="easyant/imports/import[@organisation = $pluginOrganisation]">
+                    <xsl:variable name="parentName" select="@name" />
+                    <xsl:element name="a">
+                        <xsl:attribute name="href"><xsl:value-of
+                            select="concat($parentName, '.html')" /></xsl:attribute>
+                        <xsl:value-of select="$parentName" />
+                    </xsl:element>
+                </xsl:for-each>
+            </div>
+        </xsl:if>
+        <hr />
+    </xsl:template>
+
+    <!--
+        Generate an HTML table summarizing parameters used by the plugin
+    -->
+    <xsl:template name="outputParameterTable">
+        <xsl:if test="easyant/properties/property">
+            <h2>Parameters</h2>
+            <p>The following property values can be changed to tune the behavior of this plugin.
+                Required parameters must be defined upon import, or the build will fail.</p>
+            <table class="sortable" id="plugin-parameters">
+                <thead>
+                    <tr  class="header-row">
+                        <th>Parameter</th>
+                        <th>Required?</th>
+                        <th class="unsortable">Description</th>
+                    </tr>
+                </thead>
+                <tbody>
+                    <xsl:for-each select="easyant/properties/property">
+                        <tr>
+                            <td>
+                                <xsl:value-of select="@name" />
+                            </td>
+                            <td>
+                                <xsl:choose>
+                                    <xsl:when test="@required = 'true'">Yes</xsl:when>
+                                    <xsl:otherwise>No</xsl:otherwise>
+                                </xsl:choose>
+                            </td>
+                            <td>
+                                <xsl:if test="@description">
+                                    <xsl:value-of select="@description" /><br/>
+                                </xsl:if>
+                                <xsl:if test="@default">
+                                    <span class="bold">Default value: </span><span class="defaultValue"><xsl:value-of select="@default" /></span>
+                                </xsl:if>
+                            </td>
+                        </tr>
+                    </xsl:for-each>
+                </tbody>
+            </table>
+        </xsl:if>
+    </xsl:template>
+
+    <!--
+        Generate a list describing what the plugin does during each build
+        phase
+    -->
+    <xsl:template name="outputBuildPhases">
+        <xsl:variable name="targets" select="easyant/targets" />
+
+        <xsl:if test="easyant/phases/phase or $targets/target[@phase]">
+            <xsl:if test="easyant/phases/phase">
+                <h2>Build Phases</h2>
+            
+                <p>
+                    This plugin defines the following <a href="../phases.html">new build phases</a> :
+                </p>
+                <table class="sortable" id="plugin-phases">
+                    <thead>
+                        <tr class="header-row">
+                            <td>Phase</td>
+                            <td class="unsortable">Description</td>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        <xsl:for-each select="easyant/phases/phase">
+                            <tr>
+                                <td>
+                                    <xsl:value-of select="@name" />
+                                </td>
+                                <td>
+                                    <xsl:value-of select="@description" />
+                                </td>
+                            </tr>
+                        </xsl:for-each>
+                    </tbody>
+                </table>
+            </xsl:if>
+
+            <xsl:if test="$targets/target">
+                <h2>Targets</h2>
+                <p>This plugin contains the following targets:</p>
+                <table class="sortable" id="plugin-targets">
+                    <thead>
+                        <tr  class="header-row">
+                            <th>Target</th>
+                            <th class="unsortable">Description</th>
+                            <th>Phase</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        <xsl:for-each select="$targets/target">
+                            <tr class="target-row">
+                                <td class="target-name">
+                                    <xsl:value-of select="@name" />
+                                </td>
+                                <td>
+                                    <xsl:value-of select="@description" />
+                                </td>
+                                <td>
+                                    <xsl:value-of select="@phase" />
+                                </td>
+                            </tr>
+                        </xsl:for-each>
+                    </tbody>
+                </table>
+                <p>
+                    Some targets are bound to existing <a href="../phases.html">build phase(s)</a>.
+                </p>
+            </xsl:if>
+        </xsl:if>
+    </xsl:template>
+    <xsl:template match="text()"/>
 </xsl:stylesheet>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ant?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ant (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ant Tue Feb 22 15:55:55 2011
@@ -16,40 +16,40 @@
    limitations under the License.
 -->
 <project name="org.apache.easyant.plugins#eadoc"
-	xmlns:ea="antlib:org.apache.easyant"
-	xmlns:ivy="antlib:org.apache.ivy.ant"
-	xmlns:ac="antlib:net.sf.antcontrib">
-	
-	<ea:core-version requiredrevision="[0.8,+]" />
-	
-	<target name=":init" description="Read and verify property configuration, load required task libraries" phase="validate">
-		<ea:parameter phase="validate" />
-		<ea:parameter phase="documentation" />
-
-		<ea:parameter property="eadoc.repository.name"
-			description="name of the repository to document" default="local"/>
-		<ea:parameter property="target.documentation.dir" default="${target}/documentation" 
-			description="directory where the documentation will be generated to" />
-		<ea:parameter property="eadoc.documentation.dir"
-			description="target directory for generated documentation" default="${target.documentation.dir}"/>
-		
-		<ea:parameter property="eadoc.module.org" 
-			description="org name for easyant modules" default="*" />
-		<ea:parameter property="eadoc.module.includes"
-			description="name pattern of modules to document" default="*"/>
-	
-		<ea:parameter property="eadoc.module.types"
-			description="List of module types to be documented" default="plugin,buildtype"/>
-		
-	</target>
-
-	<target name=":generate"
-			description="generate documentation for all EasyAnt plugins in the target repository" 
-			depends="validate" phase="process-documentation-resources">
-	
-		<!-- generate xooki TOC for each module type -->
-		<ac:for list="${eadoc.module.types}" param="current.type">
-			<sequential>
+    xmlns:ea="antlib:org.apache.easyant"
+    xmlns:ivy="antlib:org.apache.ivy.ant"
+    xmlns:ac="antlib:net.sf.antcontrib">
+    
+    <ea:core-version requiredrevision="[0.8,+]" />
+    
+    <target name=":init" description="Read and verify property configuration, load required task libraries" phase="validate">
+        <ea:parameter phase="validate" />
+        <ea:parameter phase="documentation" />
+
+        <ea:parameter property="eadoc.repository.name"
+            description="name of the repository to document" default="local"/>
+        <ea:parameter property="target.documentation.dir" default="${target}/documentation" 
+            description="directory where the documentation will be generated to" />
+        <ea:parameter property="eadoc.documentation.dir"
+            description="target directory for generated documentation" default="${target.documentation.dir}"/>
+        
+        <ea:parameter property="eadoc.module.org" 
+            description="org name for easyant modules" default="*" />
+        <ea:parameter property="eadoc.module.includes"
+            description="name pattern of modules to document" default="*"/>
+    
+        <ea:parameter property="eadoc.module.types"
+            description="List of module types to be documented" default="plugin,buildtype"/>
+        
+    </target>
+
+    <target name=":generate"
+            description="generate documentation for all EasyAnt plugins in the target repository" 
+            depends="validate" phase="process-documentation-resources">
+    
+        <!-- generate xooki TOC for each module type -->
+        <ac:for list="${eadoc.module.types}" param="current.type">
+            <sequential>
                 <echo>Generating @{current.type} docs</echo>
 
                 <ac:var name="current.menu" value="@{current.type}s"/>
@@ -68,11 +68,11 @@
 
                 <ea:endmenu context="${current.menu}"/>
 
-			</sequential>
-		</ac:for>
-		
-	</target>
-	
-	<target name="doit" depends=":generate" />
-	
+            </sequential>
+        </ac:for>
+        
+    </target>
+    
+    <target name="doit" depends=":generate" />
+    
 </project>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ivy?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ivy (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/eadoc/0.1/eadoc.ivy Tue Feb 22 15:55:55 2011
@@ -15,21 +15,21 @@
    limitations under the License.
 -->
 <ivy-module version="2.0"> 
-	<info organisation="org.apache.easyant.plugins"
-	       module="eadoc"
-	       status="milestone"
-	       revision="0.1">
-	       <description>
-	       EADoc generates <a href="http://xooki.sourceforge.net/">xooki</a> 
-	       documentation for EasyAnt modules (plugins and buildtypes).  
-	       The description for each module is culled from that module's Ivy descriptor.  
-	       Information about the module's phases and parameters is taken from the module's 
-	       Ant script.
-	       </description>
-	</info>
-	<publications>
-		<artifact type="ant" />
-		<artifact name="eadoc-plugin" type="xsl" />
-		<artifact name="eadoc-buildtype" type="xsl" />
-	</publications>
+    <info organisation="org.apache.easyant.plugins"
+           module="eadoc"
+           status="milestone"
+           revision="0.1">
+           <description>
+           EADoc generates <a href="http://xooki.sourceforge.net/">xooki</a> 
+           documentation for EasyAnt modules (plugins and buildtypes).  
+           The description for each module is culled from that module's Ivy descriptor.  
+           Information about the module's phases and parameters is taken from the module's 
+           Ant script.
+           </description>
+    </info>
+    <publications>
+        <artifact type="ant" />
+        <artifact name="eadoc-plugin" type="xsl" />
+        <artifact name="eadoc-buildtype" type="xsl" />
+    </publications>
 </ivy-module>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ant?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ant (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ant Tue Feb 22 15:55:55 2011
@@ -15,28 +15,28 @@
    limitations under the License.
 -->
 <project name="org.apache.easyant.plugins#easyant-plugin-publication"
-	xmlns:ivy="antlib:org.apache.ivy.ant"
-	xmlns:ac="antlib:net.sf.antcontrib"
-	xmlns:ea="antlib:org.apache.easyant">
-	
-	<ea:core-version requiredrevision="[0.8,+]" />
-	
-	<ea:import mrid="org.apache.easyant.plugins#ivy-publication;0.1"/>
-	
-	<target name=":init" phase="validate">
-		<ea:parameter phase="validate" />
-		<ea:parameter phase="test" />
-		<ea:parameter property="publish.plugin.before.test"
-				description="defines if easyant should publish the plugin before running test"/>
-	</target>
-		
-	<!--
-		publish in build scoped repository before test 
-	-->
-	<target name="-before-test" depends="validate" phase="test" if="publish.plugin.before.test">
-		<ea:configure-build-scoped-repository buildScopedRepositoryName="build" settingsRef="easyant.ivy.instance"/>
-		<ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" resolver="build"  forcedeliver="true" overwrite="true" settingsRef="easyant.ivy.instance" />
-	</target>
+    xmlns:ivy="antlib:org.apache.ivy.ant"
+    xmlns:ac="antlib:net.sf.antcontrib"
+    xmlns:ea="antlib:org.apache.easyant">
+    
+    <ea:core-version requiredrevision="[0.8,+]" />
+    
+    <ea:import mrid="org.apache.easyant.plugins#ivy-publication;0.1"/>
+    
+    <target name=":init" phase="validate">
+        <ea:parameter phase="validate" />
+        <ea:parameter phase="test" />
+        <ea:parameter property="publish.plugin.before.test"
+                description="defines if easyant should publish the plugin before running test"/>
+    </target>
+        
+    <!--
+        publish in build scoped repository before test 
+    -->
+    <target name="-before-test" depends="validate" phase="test" if="publish.plugin.before.test">
+        <ea:configure-build-scoped-repository buildScopedRepositoryName="build" settingsRef="easyant.ivy.instance"/>
+        <ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" resolver="build"  forcedeliver="true" overwrite="true" settingsRef="easyant.ivy.instance" />
+    </target>
 
-	<target name="doit" depends=":init" />
+    <target name="doit" depends=":init" />
 </project>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ivy?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ivy (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/easyant-plugin-publication/0.1/easyant-plugin-publication.ivy Tue Feb 22 15:55:55 2011
@@ -15,13 +15,13 @@
    limitations under the License.
 -->
 <ivy-module version="2.0"> 
-	<info organisation="org.apache.easyant.plugins"
-	       module="easyant-plugin-publication"
-	       status="milestone"
-	       revision="0.1">
-	       <description>This module provides publication features for easyant plugins.</description>
-	</info>
-	<publications>
-		<artifact type="ant" />
-	</publications>
+    <info organisation="org.apache.easyant.plugins"
+           module="easyant-plugin-publication"
+           status="milestone"
+           revision="0.1">
+           <description>This module provides publication features for easyant plugins.</description>
+    </info>
+    <publications>
+        <artifact type="ant" />
+    </publications>
 </ivy-module>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ant?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ant (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ant Tue Feb 22 15:55:55 2011
@@ -15,123 +15,123 @@
    limitations under the License.
 -->
 <project name="org.apache.easyant.plugins#ivy-provisioning" 
-	xmlns:ivy="antlib:org.apache.ivy.ant" 
-	xmlns:ac="antlib:net.sf.antcontrib"
-	xmlns:ea="antlib:org.apache.easyant">
-
-	<ea:core-version requiredrevision="[0.8,+]" />
-
-	<target name=":init" phase="validate">
-		<ea:parameter phase="validate" />
-		<ea:parameter phase="provision" />
-		<ea:parameter property="lib.main" default="${basedir}/lib/main" description="directory where main libraries are picked up" />
-		<ea:parameter property="lib.test" default="${basedir}/lib/test" description="directory where test libraries are picked up" />
-		<ea:parameter property="lib.provided" default="${basedir}/lib/provided" description="directory where provided libraries are picked up" />
-		<ea:parameter property="main.confs" default="default" description="confs used for main librairies" />
-		<ea:parameter property="test.confs" default="test" description="confs used for test librairies" />
-		<ea:parameter property="provided.confs" default="provided" description="confs used for provided librairies" />
-		<ea:parameter property="project.ivy.instance" default="project.ivy.instance" description="the ivy instance name for your project" />
-		<ea:parameter property="project.ivy.file" required="true" description="the name of the file containing dependencies of your project" />
-		<ea:parameter property="retrieve.dependencies" default="false" description="defines if dependencies should be retrieve dependencies in the lib directory"/>
-	
-		<ea:parameter property="retrieve.pattern.lib.main" default="${lib.main}/[artifact]-[revision].[ext]" description="retrieve pattern for main artifacts" />
-		<ea:parameter property="retrieve.pattern.lib.test" default="${lib.test}/[artifact]-[revision].[ext]" description="retrieve pattern for test artifacts" />
-		<ea:parameter property="retrieve.pattern.lib.provided" default="${lib.provided}/[artifact]-[revision].[ext]" description="retrieve pattern for provided artifacts" />
-			
-		<ea:parameter property="sync.lib.dir" default="true" description="a boolean that define if lib dir should be synchronized or not"/>
-
-		<!-- is project ivy settings configured ? -->
-		<ea:parameter property="project.ivy.settings.file" description="the ivysettings file used by your project" />
-		<ea:parameter property="project.ivy.settings.url" description="the ivysettings url used by your project" />
-		
-		<condition property="is.project.ivy.settings.configured">
-			<isreference refid="${project.ivy.instance}"/>
-		</condition>
-		<fail unless="is.project.ivy.settings.configured" message="project ivy instance is not configured, at least one of the following property must be set : project.ivy.settings.file, project.ivy.settings.url"/>
-		<!-- define empty *.lib.fileset that will be override by configuration classpath -->
-		<fileset id="lib.main.fileset" dir="${lib.main}" erroronmissingdir="false"/>
-		<fileset id="lib.test.fileset" dir="${lib.test}" erroronmissingdir="false"/>
-		<fileset id="lib.provided.fileset" dir="${lib.provided}" erroronmissingdir="false"/>
-		
-		<path id="project.lib.main.classpath"/>
-		<path id="project.lib.test.classpath"/>
-		<path id="project.lib.provided.classpath"/>
-	</target>
-
-	<!-- ================================= 
-	          target: resolve              
-	         ================================= -->
-	<target name="-resolve" depends="validate">
-		<ivy:resolve file="${project.ivy.file}" settingsRef="${project.ivy.instance}" />
-		<condition property="project.contains.main.confs">
-			<matches string="${ivy.configurations}" pattern="${main.confs}"/>
-		</condition>
-		<condition property="project.contains.test.confs">
-			<matches string="${ivy.configurations}" pattern="${test.confs}"/>
-		</condition>
-		<condition property="project.contains.provided.confs">
-			<matches string="${ivy.configurations}" pattern="${provided.confs}"/>
-		</condition>
-	</target>
-	
-	<target name=":resolve" depends="-resolve,-resolve-main-confs,-resolve-test-confs,-resolve-provided-confs" description="resolve and retrieve dependencies with ivy" unless="skip.resolve" phase="provision"/>
-			
-			
-	<target name="-resolve-main-confs" if="project.contains.main.confs">
-		<ivy:cachepath pathid="cache.main.classpath" conf="${main.confs}" settingsRef="${project.ivy.instance}"/>
-		<ea:path pathid="compile.main.classpath" overwrite="append-if-not-exist">
-					<path refid="cache.main.classpath"/>
-		</ea:path>
-		<ac:if>
-			<istrue value="${retrieve.dependencies}"/>
-			<ac:then>
-				<mkdir dir="${lib.main}" />
-				<ivy:retrieve pattern="${retrieve.pattern.lib.main}" settingsRef="${project.ivy.instance}" conf="${main.confs}" sync="${sync.lib.dir}"/>
-				<ea:path pathid="project.lib.main.classpath" overwrite="append">
-					<fileset dir="${lib.main}" includes="*.jar" erroronmissingdir="false"/>
-				</ea:path>
-			</ac:then>
-		</ac:if>
-	</target>
-
-	<target name="-resolve-test-confs" if="project.contains.test.confs">
-		<ivy:cachepath pathid="cache.test.classpath" conf="${test.confs}" settingsRef="${project.ivy.instance}"/>
-		<ea:path pathid="compile.test.classpath" overwrite="append-if-not-exist">
-					<path refid="cache.test.classpath"/>
-		</ea:path>
-		<ac:if>
-			<istrue value="${retrieve.dependencies}"/>
-			<ac:then>
-				<mkdir dir="${lib.test}"/>
-				<!-- resolve test dependencies -->
-				<ivy:retrieve pattern="${retrieve.pattern.lib.test}" settingsRef="${project.ivy.instance}" conf="${test.confs}" sync="${sync.lib.dir}"/>
-				<ea:path pathid="project.lib.test.classpath" overwrite="append">
-                	<fileset dir="${lib.test}" includes="*.jar" erroronmissingdir="false"/>
+    xmlns:ivy="antlib:org.apache.ivy.ant" 
+    xmlns:ac="antlib:net.sf.antcontrib"
+    xmlns:ea="antlib:org.apache.easyant">
+
+    <ea:core-version requiredrevision="[0.8,+]" />
+
+    <target name=":init" phase="validate">
+        <ea:parameter phase="validate" />
+        <ea:parameter phase="provision" />
+        <ea:parameter property="lib.main" default="${basedir}/lib/main" description="directory where main libraries are picked up" />
+        <ea:parameter property="lib.test" default="${basedir}/lib/test" description="directory where test libraries are picked up" />
+        <ea:parameter property="lib.provided" default="${basedir}/lib/provided" description="directory where provided libraries are picked up" />
+        <ea:parameter property="main.confs" default="default" description="confs used for main librairies" />
+        <ea:parameter property="test.confs" default="test" description="confs used for test librairies" />
+        <ea:parameter property="provided.confs" default="provided" description="confs used for provided librairies" />
+        <ea:parameter property="project.ivy.instance" default="project.ivy.instance" description="the ivy instance name for your project" />
+        <ea:parameter property="project.ivy.file" required="true" description="the name of the file containing dependencies of your project" />
+        <ea:parameter property="retrieve.dependencies" default="false" description="defines if dependencies should be retrieve dependencies in the lib directory"/>
+    
+        <ea:parameter property="retrieve.pattern.lib.main" default="${lib.main}/[artifact]-[revision].[ext]" description="retrieve pattern for main artifacts" />
+        <ea:parameter property="retrieve.pattern.lib.test" default="${lib.test}/[artifact]-[revision].[ext]" description="retrieve pattern for test artifacts" />
+        <ea:parameter property="retrieve.pattern.lib.provided" default="${lib.provided}/[artifact]-[revision].[ext]" description="retrieve pattern for provided artifacts" />
+            
+        <ea:parameter property="sync.lib.dir" default="true" description="a boolean that define if lib dir should be synchronized or not"/>
+
+        <!-- is project ivy settings configured ? -->
+        <ea:parameter property="project.ivy.settings.file" description="the ivysettings file used by your project" />
+        <ea:parameter property="project.ivy.settings.url" description="the ivysettings url used by your project" />
+        
+        <condition property="is.project.ivy.settings.configured">
+            <isreference refid="${project.ivy.instance}"/>
+        </condition>
+        <fail unless="is.project.ivy.settings.configured" message="project ivy instance is not configured, at least one of the following property must be set : project.ivy.settings.file, project.ivy.settings.url"/>
+        <!-- define empty *.lib.fileset that will be override by configuration classpath -->
+        <fileset id="lib.main.fileset" dir="${lib.main}" erroronmissingdir="false"/>
+        <fileset id="lib.test.fileset" dir="${lib.test}" erroronmissingdir="false"/>
+        <fileset id="lib.provided.fileset" dir="${lib.provided}" erroronmissingdir="false"/>
+        
+        <path id="project.lib.main.classpath"/>
+        <path id="project.lib.test.classpath"/>
+        <path id="project.lib.provided.classpath"/>
+    </target>
+
+    <!-- ================================= 
+              target: resolve              
+             ================================= -->
+    <target name="-resolve" depends="validate">
+        <ivy:resolve file="${project.ivy.file}" settingsRef="${project.ivy.instance}" />
+        <condition property="project.contains.main.confs">
+            <matches string="${ivy.configurations}" pattern="${main.confs}"/>
+        </condition>
+        <condition property="project.contains.test.confs">
+            <matches string="${ivy.configurations}" pattern="${test.confs}"/>
+        </condition>
+        <condition property="project.contains.provided.confs">
+            <matches string="${ivy.configurations}" pattern="${provided.confs}"/>
+        </condition>
+    </target>
+    
+    <target name=":resolve" depends="-resolve,-resolve-main-confs,-resolve-test-confs,-resolve-provided-confs" description="resolve and retrieve dependencies with ivy" unless="skip.resolve" phase="provision"/>
+            
+            
+    <target name="-resolve-main-confs" if="project.contains.main.confs">
+        <ivy:cachepath pathid="cache.main.classpath" conf="${main.confs}" settingsRef="${project.ivy.instance}"/>
+        <ea:path pathid="compile.main.classpath" overwrite="append-if-not-exist">
+                    <path refid="cache.main.classpath"/>
+        </ea:path>
+        <ac:if>
+            <istrue value="${retrieve.dependencies}"/>
+            <ac:then>
+                <mkdir dir="${lib.main}" />
+                <ivy:retrieve pattern="${retrieve.pattern.lib.main}" settingsRef="${project.ivy.instance}" conf="${main.confs}" sync="${sync.lib.dir}"/>
+                <ea:path pathid="project.lib.main.classpath" overwrite="append">
+                    <fileset dir="${lib.main}" includes="*.jar" erroronmissingdir="false"/>
                 </ea:path>
-			</ac:then>
-		</ac:if>
-	</target>
-	
-	<target name="-resolve-provided-confs" if="project.contains.provided.confs">
-		<ivy:cachepath pathid="cache.provided.classpath" conf="${provided.confs}" settingsRef="${project.ivy.instance}"/>
-		<ea:path pathid="compile.main.classpath" overwrite="append-if-not-exist">
-			<path refid="cache.provided.classpath"/>
-		</ea:path>
-
-
-		<ac:if>
-			<istrue value="${retrieve.dependencies}"/>
-			<ac:then>
-				<mkdir dir="${lib.provided}"/>
-				<!-- resolve provided dependencies -->
-				<ivy:retrieve pattern="${retrieve.pattern.lib.provided}" settingsRef="${project.ivy.instance}" conf="${provided.confs}" sync="${sync.lib.dir}"/>
-				<ea:path pathid="project.lib.provided.classpath" overwrite="append">
-                	<fileset dir="${lib.provided}" includes="*.jar" erroronmissingdir="false"/>
+            </ac:then>
+        </ac:if>
+    </target>
+
+    <target name="-resolve-test-confs" if="project.contains.test.confs">
+        <ivy:cachepath pathid="cache.test.classpath" conf="${test.confs}" settingsRef="${project.ivy.instance}"/>
+        <ea:path pathid="compile.test.classpath" overwrite="append-if-not-exist">
+                    <path refid="cache.test.classpath"/>
+        </ea:path>
+        <ac:if>
+            <istrue value="${retrieve.dependencies}"/>
+            <ac:then>
+                <mkdir dir="${lib.test}"/>
+                <!-- resolve test dependencies -->
+                <ivy:retrieve pattern="${retrieve.pattern.lib.test}" settingsRef="${project.ivy.instance}" conf="${test.confs}" sync="${sync.lib.dir}"/>
+                <ea:path pathid="project.lib.test.classpath" overwrite="append">
+                    <fileset dir="${lib.test}" includes="*.jar" erroronmissingdir="false"/>
                 </ea:path>
-			</ac:then>
-		</ac:if>
-	</target>
-		
+            </ac:then>
+        </ac:if>
+    </target>
+    
+    <target name="-resolve-provided-confs" if="project.contains.provided.confs">
+        <ivy:cachepath pathid="cache.provided.classpath" conf="${provided.confs}" settingsRef="${project.ivy.instance}"/>
+        <ea:path pathid="compile.main.classpath" overwrite="append-if-not-exist">
+            <path refid="cache.provided.classpath"/>
+        </ea:path>
+
+
+        <ac:if>
+            <istrue value="${retrieve.dependencies}"/>
+            <ac:then>
+                <mkdir dir="${lib.provided}"/>
+                <!-- resolve provided dependencies -->
+                <ivy:retrieve pattern="${retrieve.pattern.lib.provided}" settingsRef="${project.ivy.instance}" conf="${provided.confs}" sync="${sync.lib.dir}"/>
+                <ea:path pathid="project.lib.provided.classpath" overwrite="append">
+                    <fileset dir="${lib.provided}" includes="*.jar" erroronmissingdir="false"/>
+                </ea:path>
+            </ac:then>
+        </ac:if>
+    </target>
+        
 
 
 </project>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ivy?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ivy (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-provisioning/0.1/ivy-provisioning.ivy Tue Feb 22 15:55:55 2011
@@ -15,12 +15,12 @@
    limitations under the License.
 -->
 <ivy-module version="2.0"> 
-	<info organisation="org.apache.easyant.plugins"
-	       module="ivy-provisioning"
-	       status="milestone"
-	       revision="0.1"
-	/>
-	<publications>
-		<artifact type="ant" />
-	</publications>
+    <info organisation="org.apache.easyant.plugins"
+           module="ivy-provisioning"
+           status="milestone"
+           revision="0.1"
+    />
+    <publications>
+        <artifact type="ant" />
+    </publications>
 </ivy-module>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ant?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ant (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ant Tue Feb 22 15:55:55 2011
@@ -15,131 +15,131 @@
    limitations under the License.
 -->
 <project name="org.apache.easyant.plugins#ivy-publication"
-	xmlns:ivy="antlib:org.apache.ivy.ant"
-	xmlns:ac="antlib:net.sf.antcontrib"
-	xmlns:ea="antlib:org.apache.easyant">
-	
-	<ea:core-version requiredrevision="[0.8,+]" />
-	
-	<target name=":init" phase="validate">
-		<ea:parameter phase="validate" />
-		<ea:parameter phase="publish-local" />
-		<ea:parameter phase="publish-shared"/>
-		<ea:parameter phase="release" />
-		<ea:parameter phase="generate-local-version"/>
-		<ea:parameter phase="generate-shared-version"/>
-		<ea:parameter phase="generate-release-version"/>
-
-		<ea:parameter property="release.resolver" default="shared" 
-				description="the name of the resolver use for release publication"/>
-		<ea:parameter property="shared.resolver" default="shared" 
-				description="the name of the shared resolver"/>
-		<ea:parameter property="local.resolver" default="local" 
-				description="the name of the local resolver"/>
-
-		<ea:parameter property="project.ivy.instance" default="project.ivy.instance" 
-				description="ivy instance name"/>
-		<ea:parameter property="project.ivy.file" required="true" 
-				description="ivy file (use to resolve dependencies for the project)"/>
-		<ea:parameter property="publish.overwrite" default="false"
-				description="specify if publish should overwrite existing artifacts or not"/>
-		
-		<ea:parameter property="ivy.haltonmissing" 
-				description="defines if ivy must halt when artifact is missing" default="true"/>
-		<!-- is project ivy settings configured ? -->
-		<ea:parameter property="project.ivy.settings.file" description="the ivysettings file used by your project" />
-		<ea:parameter property="project.ivy.settings.url" description="the ivysettings url used by your project" />
-		
-		<ea:parameter property="fail.publication.if.no.revision" default="true" description="fail build if current module has no revision in 'info' tag of the module.ivy"/>
-		<condition property="is.project.ivy.settings.configured">
-				<isreference refid="${project.ivy.instance}"/>
-		</condition>
-		<fail unless="is.project.ivy.settings.configured" message="project ivy instance is not configured, at least one of the following property must be set : project.ivy.settings.file, project.ivy.settings.url"/>
-
-	</target>
-	
-	<macrodef name="check-version-number">
-		<sequential>
-			<property name="pub.no.revision.message" value="It seems that you did not specify the revision number of your project, we strongly recommend you to set it through the 'info' tag in your module ivy before any publication"/>
-			<ac:if>
-				<contains string="${ivy.revision}" substring="working@"/>
-				<ac:then>
-					<ac:if>
-						<istrue value="${fail.publication.if.no.revision}"/>
-						<ac:then>
-							<fail message="${pub.no.revision.message}"/>
-						</ac:then>
-						<ac:else>
-							<echo message="Warning : ${pub.no.revision.message}" level="warning"/>
-						</ac:else>
-					</ac:if>
-				</ac:then>
-			</ac:if>
-		</sequential>
-	</macrodef>
-	
-	<!-- ================================= 
+    xmlns:ivy="antlib:org.apache.ivy.ant"
+    xmlns:ac="antlib:net.sf.antcontrib"
+    xmlns:ea="antlib:org.apache.easyant">
+    
+    <ea:core-version requiredrevision="[0.8,+]" />
+    
+    <target name=":init" phase="validate">
+        <ea:parameter phase="validate" />
+        <ea:parameter phase="publish-local" />
+        <ea:parameter phase="publish-shared"/>
+        <ea:parameter phase="release" />
+        <ea:parameter phase="generate-local-version"/>
+        <ea:parameter phase="generate-shared-version"/>
+        <ea:parameter phase="generate-release-version"/>
+
+        <ea:parameter property="release.resolver" default="shared" 
+                description="the name of the resolver use for release publication"/>
+        <ea:parameter property="shared.resolver" default="shared" 
+                description="the name of the shared resolver"/>
+        <ea:parameter property="local.resolver" default="local" 
+                description="the name of the local resolver"/>
+
+        <ea:parameter property="project.ivy.instance" default="project.ivy.instance" 
+                description="ivy instance name"/>
+        <ea:parameter property="project.ivy.file" required="true" 
+                description="ivy file (use to resolve dependencies for the project)"/>
+        <ea:parameter property="publish.overwrite" default="false"
+                description="specify if publish should overwrite existing artifacts or not"/>
+        
+        <ea:parameter property="ivy.haltonmissing" 
+                description="defines if ivy must halt when artifact is missing" default="true"/>
+        <!-- is project ivy settings configured ? -->
+        <ea:parameter property="project.ivy.settings.file" description="the ivysettings file used by your project" />
+        <ea:parameter property="project.ivy.settings.url" description="the ivysettings url used by your project" />
+        
+        <ea:parameter property="fail.publication.if.no.revision" default="true" description="fail build if current module has no revision in 'info' tag of the module.ivy"/>
+        <condition property="is.project.ivy.settings.configured">
+                <isreference refid="${project.ivy.instance}"/>
+        </condition>
+        <fail unless="is.project.ivy.settings.configured" message="project ivy instance is not configured, at least one of the following property must be set : project.ivy.settings.file, project.ivy.settings.url"/>
+
+    </target>
+    
+    <macrodef name="check-version-number">
+        <sequential>
+            <property name="pub.no.revision.message" value="It seems that you did not specify the revision number of your project, we strongly recommend you to set it through the 'info' tag in your module ivy before any publication"/>
+            <ac:if>
+                <contains string="${ivy.revision}" substring="working@"/>
+                <ac:then>
+                    <ac:if>
+                        <istrue value="${fail.publication.if.no.revision}"/>
+                        <ac:then>
+                            <fail message="${pub.no.revision.message}"/>
+                        </ac:then>
+                        <ac:else>
+                            <echo message="Warning : ${pub.no.revision.message}" level="warning"/>
+                        </ac:else>
+                    </ac:if>
+                </ac:then>
+            </ac:if>
+        </sequential>
+    </macrodef>
+    
+    <!-- ================================= 
           target: release              
          ================================= -->
-	<target name=":release" phase="release" depends="generate-release-version,verify">
-		<ea:checkresolver resolver="release.resolver" settingsRef="${project.ivy.instance}" description="name of the repository used to publish releases"/>
-		<check-version-number/>
-		<ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" 
-			resolver="${release.resolver}" 
-			pubrevision="${version}" 
-			status="release" 
-			settingsRef="${project.ivy.instance}"
-			overwrite="${publish.overwrite}"
-			haltonmissing="${ivy.haltonmissing}" 
-			update="true"/>
-		<echo message="project ${module.name} released with version ${version}" />
-	</target>
+    <target name=":release" phase="release" depends="generate-release-version,verify">
+        <ea:checkresolver resolver="release.resolver" settingsRef="${project.ivy.instance}" description="name of the repository used to publish releases"/>
+        <check-version-number/>
+        <ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" 
+            resolver="${release.resolver}" 
+            pubrevision="${version}" 
+            status="release" 
+            settingsRef="${project.ivy.instance}"
+            overwrite="${publish.overwrite}"
+            haltonmissing="${ivy.haltonmissing}" 
+            update="true"/>
+        <echo message="project ${module.name} released with version ${version}" />
+    </target>
 
-	<!-- ================================= 
+    <!-- ================================= 
           target: publish-shared              
          ================================= -->
-	<target name=":publish-shared" phase="publish-shared" depends="generate-shared-version,package">
-		<ea:checkresolver resolver="shared.resolver" settingsRef="${project.ivy.instance}" description="name of the repository used to publish shared integration versions (snapshots)"/>
-		<check-version-number/>
-		<tstamp>
-			<format property="now" pattern="yyyyMMddHHmmss" />
-		</tstamp>
-		<ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" 
-			resolver="${shared.resolver}" 
-			forcedeliver="true" 
-			pubdate="${now}" 
-			pubrevision="${version}" 
-			status="integration"
-			overwrite="${publish.overwrite}"
-			settingsRef="${project.ivy.instance}" 
-			haltonmissing="${ivy.haltonmissing}"/>
-		<echo message="project ${module.name} published with version ${version}" />
-	</target>
+    <target name=":publish-shared" phase="publish-shared" depends="generate-shared-version,package">
+        <ea:checkresolver resolver="shared.resolver" settingsRef="${project.ivy.instance}" description="name of the repository used to publish shared integration versions (snapshots)"/>
+        <check-version-number/>
+        <tstamp>
+            <format property="now" pattern="yyyyMMddHHmmss" />
+        </tstamp>
+        <ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" 
+            resolver="${shared.resolver}" 
+            forcedeliver="true" 
+            pubdate="${now}" 
+            pubrevision="${version}" 
+            status="integration"
+            overwrite="${publish.overwrite}"
+            settingsRef="${project.ivy.instance}" 
+            haltonmissing="${ivy.haltonmissing}"/>
+        <echo message="project ${module.name} published with version ${version}" />
+    </target>
 
-	
-	<!-- ================================= 
+    
+    <!-- ================================= 
           target: publish-local              
          ================================= -->
-	<target name=":publish-local" phase="publish-local" depends="generate-local-version,package">
-		<check-version-number/>
-		<ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" 
-			resolver="${local.resolver}" 
-			pubrevision="${version}" 
-			pubdate="${now}" 
-			status="integration" 
-			forcedeliver="true" 
-			overwrite="${publish.overwrite}"
-			settingsRef="${project.ivy.instance}" 
-			haltonmissing="${ivy.haltonmissing}"/>
-		<echo message="project ${module.name} published locally with version ${version}" />
-	</target>
+    <target name=":publish-local" phase="publish-local" depends="generate-local-version,package">
+        <check-version-number/>
+        <ivy:publish artifactspattern="${target.artifacts}/[artifact](-[classifier]).[ext]" 
+            resolver="${local.resolver}" 
+            pubrevision="${version}" 
+            pubdate="${now}" 
+            status="integration" 
+            forcedeliver="true" 
+            overwrite="${publish.overwrite}"
+            settingsRef="${project.ivy.instance}" 
+            haltonmissing="${ivy.haltonmissing}"/>
+        <echo message="project ${module.name} published locally with version ${version}" />
+    </target>
 
-	<!-- ================================= 
+    <!-- ================================= 
           target: clean-local              
          ================================= -->
-	<target name=":clean-local" description="cleans the local repository">
-		<delete dir="${ivy.local.default.root}" />
-	</target>
+    <target name=":clean-local" description="cleans the local repository">
+        <delete dir="${ivy.local.default.root}" />
+    </target>
 
-	<target name="doit" depends=":publish-local" />
+    <target name="doit" depends=":publish-local" />
 </project>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ivy?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ivy (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-publication/0.1/ivy-publication.ivy Tue Feb 22 15:55:55 2011
@@ -15,13 +15,13 @@
    limitations under the License.
 -->
 <ivy-module version="2.0"> 
-	<info organisation="org.apache.easyant.plugins"
-	       module="ivy-publication"
-	       status="milestone"
-	       revision="0.1">
-	       <description>This module publication features (to share projects with your team).</description>
-	</info>
-	<publications>
-		<artifact type="ant" />
-	</publications>
+    <info organisation="org.apache.easyant.plugins"
+           module="ivy-publication"
+           status="milestone"
+           revision="0.1">
+           <description>This module publication features (to share projects with your team).</description>
+    </info>
+    <publications>
+        <artifact type="ant" />
+    </publications>
 </ivy-module>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ant?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ant (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ant Tue Feb 22 15:55:55 2011
@@ -16,133 +16,133 @@
 -->
 <project name="org.apache.easyant.plugins#ivy-repo-management" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:ea="antlib:org.apache.easyant">
 
-	<ea:core-version requiredrevision="[0.8,+]" />
-	
-	<target name=":init" phase="validate">
-		<ea:parameter phase="validate" />
-		<ea:parameter property="project.ivy.instance" default="project.ivy.instance" description="the ivy instance name for your project" />
-		<ea:parameter property="default.from.resolver" default="public" description="the repository name where the artifact will be picked up" />
-		<ea:parameter property="default.to.resolver" default="local" description="the repository name where the artifact will be installed" />
-		<ea:parameter property="install.override" default="false" description="specify if the install targets should override an artifact on a repository if it already exists" />
-		<ea:parameter property="install.ivy.template" default="${org.apache.easyant.plugins#ivy-repo-management.ivy.xml.tpl.file}" description="specify a template ivy file used when you call install-artifact" />
-		<ea:parameter property="install.temp.directory" default="${target}/install" description="specify a temporary directory used to make replacement in the template ivy file" />
-		<ea:parameter property="install.status" default="integration" description="specify the status of the artifact that will be installed with the install-artifact target" />
-		<ea:parameter property="install.interactive.mode" default="true" description="specify if easyant should ask questions instead of using -Dproperties" />
-		<condition property="install.is.interactive">
-			<istrue value="${install.interactive.mode}"/>
-		</condition>
-		
-		<!-- is project ivy settings configured ? -->
-		<ea:parameter property="project.ivy.settings.file" description="the ivysettings file used by your project" />
-		<ea:parameter property="project.ivy.settings.url" description="the ivysettings url used by your project" />
-		
-		<condition property="is.project.ivy.settings.configured">
-			<isreference refid="${project.ivy.instance}"/>
-		</condition>
-		<fail unless="is.project.ivy.settings.configured" message="project ivy instance is not configured, at least one of the following property must be set : project.ivy.settings.file, project.ivy.settings.url"/>
-
-	
-	</target>
-	
-	<!--
-		This target is just here to intialize default value if install.interactive.mode is not set
-	-->
-	<target name="-check-interactive-mode" unless="install.is.interactive">
-		<property name="from.resolver" value="${default.from.resolver}"/>
-		<property name="to.resolver" value="${default.to.resolver}"/>
-	</target>
-
-	<!-- ================================= 
-		          target: copy-artifact              
-		         ================================= -->
-	<target name="-check-copy-artifact" depends="-check-interactive-mode" if="install.is.interactive">
-		<input message="Please enter the module name:" addproperty="module" />
-		<input message="Please enter the organasization name :" addproperty="org" />
-		<input message="Please enter the revision number :" addproperty="rev" />
-		<input message="Please enter the repository name where the artifact will be picked up :" addproperty="from.resolver" defaultvalue="${default.from.resolver}" />
-		<input message="Please enter the repository name where the artifact will be installed :" addproperty="to.resolver" defaultvalue="${default.to.resolver}" />
-	</target>
-	
-	<target name=":copy-artifact" depends="validate,-check-copy-artifact" description="copy an artifact from an external repository in our repository">
-		<property name="mess" value="Usage: copy-artifact{line.separator}
-				easyant copy-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber${line.separator}
-				Exemple:${line.separator} 		
-				easyant copy-artifact -Dorg=apache -Dmodule=commons-lang -Drev=1.0${line.separator}
-				${line.separator}
-				Docs:${line.separator} 		
-				org=Organization name (cf groupId in Maven)${line.separator} 		
-				module= Module name (cf artifactId in Maven)${line.separator} 		
-				rev= Revision number${line.separator}" />
-		<fail unless="org">org property is not defined${line.separator}${mess}</fail>
-		<fail unless="module">module property is not defined${line.separator}${mess}</fail>
-		<fail unless="rev">revision property is not defined${line.separator}${mess}</fail>
-		<ea:checkresolver resolver="from.resolver" settingsRef="${project.ivy.instance}" description="the repository name where the artifact will be picked up"/>
-		<ea:checkresolver resolver="to.resolver" settingsRef="${project.ivy.instance}" description="the repository name where the artifact will be installed"/>
-		<ivy:install settingsRef="${project.ivy.instance}" organisation="${org}" module="${module}" revision="${rev}" from="${from.resolver}" to="${to.resolver}" transitive="true" overwrite="${install.override}" />
-	</target>
-
-	<!-- ================================= 
-					          target: install-artifact
-					         ================================= -->
-	<target name="-check-install-artifact" depends="-check-interactive-mode" if="install.is.interactive">
-		<input message="Please enter the module name:" addproperty="module" />
-		<input message="Please enter the organasization name :" addproperty="org" />
-		<input message="Please enter the revision number :" addproperty="rev" />
-		<input message="Please enter a path to the artifact :" addproperty="artifact" />
-		<input message="Please enter the repository name where the artifact will be installed :" addproperty="to.resolver" defaultvalue="${default.to.resolver}" />
-	</target>
-
-	<target name=":install-artifact" depends="validate,-check-install-artifact" description="install a new artifact in your repository">
-		<property name="mess" value="Usage: install-artifact${line.separator}
-							easyant install-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber -Dartifact=myFile${line.separator}
-							Exemple:${line.separator} 		
-							easyant install-artifact -Dorg=apache -Dmodule=commons-lang -Drev=1.0 -Dartifact=commons-lang.jar${line.separator}
-							${line.separator}
-							Docs:${line.separator} 		
-							org=Organization name (cf groupId in Maven)${line.separator} 		
-							module= Module name (cf artifactId in Maven)${line.separator} 		
-							rev= Revision number${line.separator} 		
-							artifact=File to import in the repository${line.separator}
-							You can also override to.resolver property to define on which repository you will publish your file 
-						" />
-		<fail unless="org">org property is not defined${line.separator}${mess}</fail>
-		<fail unless="module">module property is not defined${line.separator}${mess}</fail>
-		<fail unless="rev">revision property is not defined${line.separator}${mess}</fail>
-
-		<fail unless="artifact">artifact property is not defined${line.separator}${mess}</fail>
-		<available file="${artifact}" property="artifact.available"/>
-		<fail unless="artifact.available">unable to find artifact at ${artifact}${line.separator}${mess}</fail>
-		<ea:checkresolver resolver="to.resolver" settingsRef="${project.ivy.instance}" description="the repository name where the artifact will be installed"/>
-		
-		<basename file="${artifact}" property="artifact.to.install.file" />
-
-		<echo message="Creating ivy temp directory in ${install.temp.directory}" />
-		<mkdir dir="${install.temp.directory}" />
-
-		<echo message="Copying ${artifact} in  the ivy temp directory" />
-		<copy file="${artifact}" tofile="${install.temp.directory}/${artifact.to.install.file}" overwrite="true" />
-
-		<echo message="Generating ivy file for ${artifact}" />
-		<filterset id="artifact.filter">
-			<filter token="organisation" value="${org}" />
-			<filter token="module" value="${module}" />
-			<filter token="revision" value="${rev}" />
-		</filterset>
-		<copy file="${install.ivy.template}" tofile="${install.temp.directory}/${artifact.to.install.file}.xml" overwrite="true">
-			<filterset refid="artifact.filter" />
-		</copy>
-
-		<echo message="Publishing artifact in ${to.resolver} repository" />
-		<ivy:publish artifactspattern="${install.temp.directory}/${artifact.to.install.file}" organisation="${org}" module="${module}" revision="${rev}" srcivypattern="${install.temp.directory}/${artifact.to.install.file}.xml" resolver="${to.resolver}" pubrevision="${rev}" status="${install.status}" settingsRef="${project.ivy.instance}" overwrite="${install.override}" />
-
-		<echo message="Cleaning ${install.temp.directory}" />
-		<delete>
-			<fileset dir="${install.temp.directory}" includes="*" />
-		</delete>
+    <ea:core-version requiredrevision="[0.8,+]" />
+    
+    <target name=":init" phase="validate">
+        <ea:parameter phase="validate" />
+        <ea:parameter property="project.ivy.instance" default="project.ivy.instance" description="the ivy instance name for your project" />
+        <ea:parameter property="default.from.resolver" default="public" description="the repository name where the artifact will be picked up" />
+        <ea:parameter property="default.to.resolver" default="local" description="the repository name where the artifact will be installed" />
+        <ea:parameter property="install.override" default="false" description="specify if the install targets should override an artifact on a repository if it already exists" />
+        <ea:parameter property="install.ivy.template" default="${org.apache.easyant.plugins#ivy-repo-management.ivy.xml.tpl.file}" description="specify a template ivy file used when you call install-artifact" />
+        <ea:parameter property="install.temp.directory" default="${target}/install" description="specify a temporary directory used to make replacement in the template ivy file" />
+        <ea:parameter property="install.status" default="integration" description="specify the status of the artifact that will be installed with the install-artifact target" />
+        <ea:parameter property="install.interactive.mode" default="true" description="specify if easyant should ask questions instead of using -Dproperties" />
+        <condition property="install.is.interactive">
+            <istrue value="${install.interactive.mode}"/>
+        </condition>
+        
+        <!-- is project ivy settings configured ? -->
+        <ea:parameter property="project.ivy.settings.file" description="the ivysettings file used by your project" />
+        <ea:parameter property="project.ivy.settings.url" description="the ivysettings url used by your project" />
+        
+        <condition property="is.project.ivy.settings.configured">
+            <isreference refid="${project.ivy.instance}"/>
+        </condition>
+        <fail unless="is.project.ivy.settings.configured" message="project ivy instance is not configured, at least one of the following property must be set : project.ivy.settings.file, project.ivy.settings.url"/>
+
+    
+    </target>
+    
+    <!--
+        This target is just here to intialize default value if install.interactive.mode is not set
+    -->
+    <target name="-check-interactive-mode" unless="install.is.interactive">
+        <property name="from.resolver" value="${default.from.resolver}"/>
+        <property name="to.resolver" value="${default.to.resolver}"/>
+    </target>
+
+    <!-- ================================= 
+                  target: copy-artifact              
+                 ================================= -->
+    <target name="-check-copy-artifact" depends="-check-interactive-mode" if="install.is.interactive">
+        <input message="Please enter the module name:" addproperty="module" />
+        <input message="Please enter the organasization name :" addproperty="org" />
+        <input message="Please enter the revision number :" addproperty="rev" />
+        <input message="Please enter the repository name where the artifact will be picked up :" addproperty="from.resolver" defaultvalue="${default.from.resolver}" />
+        <input message="Please enter the repository name where the artifact will be installed :" addproperty="to.resolver" defaultvalue="${default.to.resolver}" />
+    </target>
+    
+    <target name=":copy-artifact" depends="validate,-check-copy-artifact" description="copy an artifact from an external repository in our repository">
+        <property name="mess" value="Usage: copy-artifact{line.separator}
+                easyant copy-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber${line.separator}
+                Exemple:${line.separator}       
+                easyant copy-artifact -Dorg=apache -Dmodule=commons-lang -Drev=1.0${line.separator}
+                ${line.separator}
+                Docs:${line.separator}      
+                org=Organization name (cf groupId in Maven)${line.separator}        
+                module= Module name (cf artifactId in Maven)${line.separator}       
+                rev= Revision number${line.separator}" />
+        <fail unless="org">org property is not defined${line.separator}${mess}</fail>
+        <fail unless="module">module property is not defined${line.separator}${mess}</fail>
+        <fail unless="rev">revision property is not defined${line.separator}${mess}</fail>
+        <ea:checkresolver resolver="from.resolver" settingsRef="${project.ivy.instance}" description="the repository name where the artifact will be picked up"/>
+        <ea:checkresolver resolver="to.resolver" settingsRef="${project.ivy.instance}" description="the repository name where the artifact will be installed"/>
+        <ivy:install settingsRef="${project.ivy.instance}" organisation="${org}" module="${module}" revision="${rev}" from="${from.resolver}" to="${to.resolver}" transitive="true" overwrite="${install.override}" />
+    </target>
+
+    <!-- ================================= 
+                              target: install-artifact
+                             ================================= -->
+    <target name="-check-install-artifact" depends="-check-interactive-mode" if="install.is.interactive">
+        <input message="Please enter the module name:" addproperty="module" />
+        <input message="Please enter the organasization name :" addproperty="org" />
+        <input message="Please enter the revision number :" addproperty="rev" />
+        <input message="Please enter a path to the artifact :" addproperty="artifact" />
+        <input message="Please enter the repository name where the artifact will be installed :" addproperty="to.resolver" defaultvalue="${default.to.resolver}" />
+    </target>
+
+    <target name=":install-artifact" depends="validate,-check-install-artifact" description="install a new artifact in your repository">
+        <property name="mess" value="Usage: install-artifact${line.separator}
+                            easyant install-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber -Dartifact=myFile${line.separator}
+                            Exemple:${line.separator}       
+                            easyant install-artifact -Dorg=apache -Dmodule=commons-lang -Drev=1.0 -Dartifact=commons-lang.jar${line.separator}
+                            ${line.separator}
+                            Docs:${line.separator}      
+                            org=Organization name (cf groupId in Maven)${line.separator}        
+                            module= Module name (cf artifactId in Maven)${line.separator}       
+                            rev= Revision number${line.separator}       
+                            artifact=File to import in the repository${line.separator}
+                            You can also override to.resolver property to define on which repository you will publish your file 
+                        " />
+        <fail unless="org">org property is not defined${line.separator}${mess}</fail>
+        <fail unless="module">module property is not defined${line.separator}${mess}</fail>
+        <fail unless="rev">revision property is not defined${line.separator}${mess}</fail>
+
+        <fail unless="artifact">artifact property is not defined${line.separator}${mess}</fail>
+        <available file="${artifact}" property="artifact.available"/>
+        <fail unless="artifact.available">unable to find artifact at ${artifact}${line.separator}${mess}</fail>
+        <ea:checkresolver resolver="to.resolver" settingsRef="${project.ivy.instance}" description="the repository name where the artifact will be installed"/>
+        
+        <basename file="${artifact}" property="artifact.to.install.file" />
+
+        <echo message="Creating ivy temp directory in ${install.temp.directory}" />
+        <mkdir dir="${install.temp.directory}" />
+
+        <echo message="Copying ${artifact} in  the ivy temp directory" />
+        <copy file="${artifact}" tofile="${install.temp.directory}/${artifact.to.install.file}" overwrite="true" />
+
+        <echo message="Generating ivy file for ${artifact}" />
+        <filterset id="artifact.filter">
+            <filter token="organisation" value="${org}" />
+            <filter token="module" value="${module}" />
+            <filter token="revision" value="${rev}" />
+        </filterset>
+        <copy file="${install.ivy.template}" tofile="${install.temp.directory}/${artifact.to.install.file}.xml" overwrite="true">
+            <filterset refid="artifact.filter" />
+        </copy>
+
+        <echo message="Publishing artifact in ${to.resolver} repository" />
+        <ivy:publish artifactspattern="${install.temp.directory}/${artifact.to.install.file}" organisation="${org}" module="${module}" revision="${rev}" srcivypattern="${install.temp.directory}/${artifact.to.install.file}.xml" resolver="${to.resolver}" pubrevision="${rev}" status="${install.status}" settingsRef="${project.ivy.instance}" overwrite="${install.override}" />
+
+        <echo message="Cleaning ${install.temp.directory}" />
+        <delete>
+            <fileset dir="${install.temp.directory}" includes="*" />
+        </delete>
 
-		<echo message="${artifact.to.install.file} succefully installed in your ${to.resolver} repository" />
-	</target>
+        <echo message="${artifact.to.install.file} succefully installed in your ${to.resolver} repository" />
+    </target>
 
 
-	<target name="doit" depends=":init" />
+    <target name="doit" depends=":init" />
 </project>

Modified: incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ivy?rev=1073371&r1=1073370&r2=1073371&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ivy (original)
+++ incubator/easyant/core/trunk/src/main/resources/org/apache/easyant/core/repository/modules/org.apache.easyant.plugins/ivy-repo-management/0.1/ivy-repo-management.ivy Tue Feb 22 15:55:55 2011
@@ -15,35 +15,35 @@
    limitations under the License.
 -->
 <ivy-module version="2.0"> 
-	<info organisation="org.apache.easyant.plugins"
-	       module="ivy-repo-management"
-	       status="milestone"
-	       revision="0.1">
-	       <description>
-	       <p>
-		       This module provides features to install artifacts on a given repository.<br/>
-		       This module can be used in interactive (ie. let easyant ask questions) or directly from the command line by settings -Dproperty.<br/>
-		       By default interactive mode is enabled.<br/>
-		       If you prefer you can directly set the property on the command line.<br/>
-		   </p>
-	       <p>
-		       Example: 
-		       <div class="code">
-		       		easyant install-ext-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber
-		       </div>
-		       Example2:
-		       <div class="code">
-		       		easyant install-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber -Dartifact=myFile
-		       </div>
-	       </p>
-	       <p>
-	       		If one of the property is not set, easyant will ask you the question if interactive mode is set to "true".
-	       		If you want to disable interactive mode you should set "install.interactive.mode" property to "false".
-	       </p>
-	       </description>
-	</info>
-	<publications>
-		<artifact type="ant" />
-		<artifact name="ivy.xml" type="tpl"/>
-	</publications>
+    <info organisation="org.apache.easyant.plugins"
+           module="ivy-repo-management"
+           status="milestone"
+           revision="0.1">
+           <description>
+           <p>
+               This module provides features to install artifacts on a given repository.<br/>
+               This module can be used in interactive (ie. let easyant ask questions) or directly from the command line by settings -Dproperty.<br/>
+               By default interactive mode is enabled.<br/>
+               If you prefer you can directly set the property on the command line.<br/>
+           </p>
+           <p>
+               Example: 
+               <div class="code">
+                    easyant install-ext-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber
+               </div>
+               Example2:
+               <div class="code">
+                    easyant install-artifact -Dorg=myOrgName -Dmodule=myModuleName -Drev=myRevisionNumber -Dartifact=myFile
+               </div>
+           </p>
+           <p>
+                If one of the property is not set, easyant will ask you the question if interactive mode is set to "true".
+                If you want to disable interactive mode you should set "install.interactive.mode" property to "false".
+           </p>
+           </description>
+    </info>
+    <publications>
+        <artifact type="ant" />
+        <artifact name="ivy.xml" type="tpl"/>
+    </publications>
 </ivy-module>