[Yanel-commits] rev 24673 - public/yanel/trunk/src/build

michi at wyona.com michi at wyona.com
Sat May 26 01:21:48 CEST 2007


Author: michi
Date: 2007-05-26 01:21:47 +0200 (Sat, 26 May 2007)
New Revision: 24673

Added:
   public/yanel/trunk/src/build/yanel2realms.xsl
Log:
XSLT for generating build realms ant file

Added: public/yanel/trunk/src/build/yanel2realms.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2realms.xsl	                        (rev 0)
+++ public/yanel/trunk/src/build/yanel2realms.xsl	2007-05-25 23:21:47 UTC (rev 24673)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:yanel="http://www.wyona.org/yanel/1.0"
+>
+
+<xsl:output method="xml" indent="yes"/>
+
+<xsl:param name="servlet.context.prefix" select="'NULL_servlet_context_prefix'"/>
+<xsl:param name="yanel.source.version" select="'NULL_yanel_source_version'"/>
+
+<xsl:template match="/">
+
+<xsl:comment> NOTE: This file has been generated automatically from conf/realms.xml resp. conf/local/local.realms.xml! </xsl:comment>
+<project name="realms" default="init">
+
+  <target name="init">
+    <echo>Init ...</echo>
+    <dirname property="build.dir" file="${{ant.file}}"/>
+  </target>
+
+  <target name="build-realms" description="Build realms" depends="init">
+<xsl:for-each select="/yanel:realms/yanel:realm">
+    <echo>Build realm with id "<xsl:value-of select="@id"/>"</echo>
+<!--
+      <xsl:choose>
+        <xsl:when test="starts-with(@src, '/') or string-length(substring-before(@src, ':/'))='1'">
+    <ant inheritAll="false" antfile="{@src}/build.xml" target="compile">
+      <property name="yanel.source.version" value="{$yanel.source.version}"/>
+    </ant>
+        </xsl:when>
+        <xsl:otherwise>
+    <ant inheritAll="false" antfile="${{build.dir}}/{@src}/build.xml" target="compile">
+      <property name="yanel.source.version" value="{$yanel.source.version}"/>
+    </ant>
+        </xsl:otherwise>
+      </xsl:choose>
+-->
+</xsl:for-each>
+  </target>
+
+</project>
+
+</xsl:template>
+
+</xsl:stylesheet>




More information about the Yanel-commits mailing list