You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by ni...@apache.org on 2004/07/29 06:51:09 UTC
svn commit: rev 30907 - in incubator/depot/trunk/update/src/antlet: . resources
Author: nickchalko
Date: Wed Jul 28 23:51:08 2004
New Revision: 30907
Modified:
incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl
incubator/depot/trunk/update/src/antlet/xbuild.xml
Log:
Renamed the ant get file.
Modified: incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl
==============================================================================
--- incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl (original)
+++ incubator/depot/trunk/update/src/antlet/resources/cachedset2antget.xsl Wed Jul 28 23:51:08 2004
@@ -16,12 +16,13 @@
limitations under the License.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:param name="projectName"/>
+
<xsl:output indent="yes"/>
<xsl:strip-space elements="project target mkdir"/>
<xsl:template match="/" xml:space="default">
<xsl:comment>$Id: $</xsl:comment>
- <xsl:comment>This is a autogenerated file designed to be checked in to Source Control</xsl:comment>
+ <xsl:comment>This is a autogenerated file designed to be checked in to
+ Source Control</xsl:comment>
<project name="" default="get-all">
<property name="depot.home">
<xsl:attribute name="value">
@@ -55,6 +56,12 @@
</xsl:for-each>
</fileset>
<target name="get-all">
+ <xsl:attribute name="depends">get-<xsl:value-of select="/cachedartifactset/@id"/>
+ </xsl:attribute>
+ </target>
+ <target>
+ <xsl:attribute name="name">get-<xsl:value-of select="/cachedartifactset/@id"/>
+ </xsl:attribute>
<xsl:attribute name="depends">
<xsl:for-each select="/cachedartifactset/artifact">
<xsl:text>get-</xsl:text>
Modified: incubator/depot/trunk/update/src/antlet/xbuild.xml
==============================================================================
--- incubator/depot/trunk/update/src/antlet/xbuild.xml (original)
+++ incubator/depot/trunk/update/src/antlet/xbuild.xml Wed Jul 28 23:51:08 2004
@@ -34,14 +34,26 @@
<cachedsetexport refid="${project.name}.dependent.jars" toFile="${build.dir}/${project.name}.cached.set.xml" />
</target>
- <target name="export-ant-get" depends="export-project-set">
- <style basedir="${basedir}"
- out="${basedir}/build-ant-get.xml"
- in="${build.dir}/${project.name}.cached.set.xml"
- style="${depot-update.antlet.dir}/resources/cachedset2antget.xsl">
- <param name="projectName" expression="${project.name}" />
- </style>
+
+ <!-- = = = = = = = = = = = = = = = = =
+ macrodef: export-ant-get
+ = = = = = = = = = = = = = = = = = -->
+ <macrodef name="export-ant-get">
+ <attribute name="cache-id" default="${project.name}" />
+ <sequential>
+ <style basedir="${basedir}"
+ out="${basedir}/build-get-@{cache-id}-jars.xml"
+ in="${build.dir}/@{cache-id}.cached.set.xml"
+ style="${depot-update.antlet.dir}/resources/cachedset2antget.xsl">
+ </style>
+ </sequential>
+ </macrodef>
+
+
+ <target name="export-ant-get" depends="export-project-set">
+ <export-ant-get cache-id="${project.name}" />
</target>
+
</project>