[Yanel-commits] rev 47048 - in public/yanel/trunk/src/build: .
targets
michi at wyona.com
michi at wyona.com
Thu Jan 14 11:11:42 CET 2010
Author: michi
Date: 2010-01-14 11:11:41 +0100 (Thu, 14 Jan 2010)
New Revision: 47048
Added:
public/yanel/trunk/src/build/realms2build_v2.xsl
Removed:
public/yanel/trunk/src/build/realms2build.xsl
Modified:
public/yanel/trunk/src/build/targets/realms.xml
Log:
comments fixed and version added
Deleted: public/yanel/trunk/src/build/realms2build.xsl
===================================================================
--- public/yanel/trunk/src/build/realms2build.xsl 2010-01-14 10:07:40 UTC (rev 47047)
+++ public/yanel/trunk/src/build/realms2build.xsl 2010-01-14 10:11:41 UTC (rev 47048)
@@ -1,43 +0,0 @@
-<?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"
- exclude-result-prefixes="yanel"
->
-
-<xsl:output method="xml" indent="yes"/>
-
-<xsl:param name="local-build-realms-file"/>
-
-<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="build-realms">
- <property name="yanel.source.home" location=".."/><!--XXX HACK-->
-
- <import file="${{yanel.source.home}}/src/build/realms/realms.build.xml"/>
-
- <path id="realms.path">
-<xsl:for-each select="/yanel:realms/yanel:realm">
- <xsl:variable name="absolute-directory-location">
- <xsl:choose>
- <xsl:when test="starts-with(yanel:config/@src, '/') or string-length(substring-before(yanel:config/@src, ':/'))='1'">
- <xsl:value-of select="yanel:config/@src"/>
- </xsl:when>
- <xsl:when test="starts-with(yanel:config/@src, '@REALMS_DIR@')">
- <xsl:value-of select="concat('${yanel.source.home}/src/realms/', substring-after(yanel:config/@src, '@REALMS_DIR@'))"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($local-build-realms-file, '/../', yanel:config/@src)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <pathelement location="{$absolute-directory-location}"/>
- <xsl:message>Found realm with id "<xsl:value-of select="@id"/>" located in <xsl:value-of select="$absolute-directory-location"/></xsl:message>
-</xsl:for-each>
- </path>
-</project>
-
-</xsl:template>
-
-</xsl:stylesheet>
Copied: public/yanel/trunk/src/build/realms2build_v2.xsl (from rev 47047, public/yanel/trunk/src/build/realms2build.xsl)
===================================================================
--- public/yanel/trunk/src/build/realms2build_v2.xsl (rev 0)
+++ public/yanel/trunk/src/build/realms2build_v2.xsl 2010-01-14 10:11:41 UTC (rev 47048)
@@ -0,0 +1,43 @@
+<?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"
+ exclude-result-prefixes="yanel"
+>
+
+<xsl:output method="xml" indent="yes"/>
+
+<xsl:param name="local-build-realms-file"/>
+
+<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="build-realms">
+ <property name="yanel.source.home" location=".."/><!--XXX HACK-->
+
+ <import file="${{yanel.source.home}}/src/build/realms/realms.build.xml"/>
+
+ <path id="realms.path">
+<xsl:for-each select="/yanel:realms/yanel:realm">
+ <xsl:variable name="absolute-directory-location">
+ <xsl:choose>
+ <xsl:when test="starts-with(yanel:config/@src, '/') or string-length(substring-before(yanel:config/@src, ':/'))='1'">
+ <xsl:value-of select="yanel:config/@src"/>
+ </xsl:when>
+ <xsl:when test="starts-with(yanel:config/@src, '@REALMS_DIR@')">
+ <xsl:value-of select="concat('${yanel.source.home}/src/realms/', substring-after(yanel:config/@src, '@REALMS_DIR@'))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="concat($local-build-realms-file, '/../', yanel:config/@src)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <pathelement location="{$absolute-directory-location}"/>
+ <xsl:message>Found realm with id "<xsl:value-of select="@id"/>" located in <xsl:value-of select="$absolute-directory-location"/></xsl:message>
+</xsl:for-each>
+ </path>
+</project>
+
+</xsl:template>
+
+</xsl:stylesheet>
Modified: public/yanel/trunk/src/build/targets/realms.xml
===================================================================
--- public/yanel/trunk/src/build/targets/realms.xml 2010-01-14 10:07:40 UTC (rev 47047)
+++ public/yanel/trunk/src/build/targets/realms.xml 2010-01-14 10:11:41 UTC (rev 47048)
@@ -36,8 +36,7 @@
</target>
<target name="generate-realms-build-from-default" description="Generate realms build from default config" depends="init" unless="local.realms.config.exists">
- <!-- Old way of building realms (TODO: remove it if the alternative way proves better):
- -->
+ <!-- Old way of building realms (TODO: remove it if the alternative way proves better): -->
<xslt in="${yanel.source.home}/conf/realms.xml" out="../../build/build-realms.xml" style="yanel2realms.xsl" force="false">
<param name="servlet.context.prefix" expression="${servlet.context.prefix}"/>
<param name="yanel.source.version" expression="${yanel.source.version}"/>
@@ -45,16 +44,14 @@
<param name="maven.url" expression="${maven.url}"/>
</xslt>
- <!-- Alternative way of building realms:
- -->
- <xslt in="${yanel.source.home}/conf/realms.xml" out="../../build/build-realms-v2.xml" style="realms2build.xsl" force="false">
+ <!-- Alternative way (NOT productive yet) of building realms: -->
+ <xslt in="${yanel.source.home}/conf/realms.xml" out="../../build/build-realms-v2.xml" style="realms2build_v2.xsl" force="false">
<param name="local-build-realms-file" expression="${local.config.home}/local.realms.xml"/>
</xslt>
</target>
<target name="generate-realms-build-from-local" description="Generate realms build from local config" depends="init" if="local.realms.config.exists">
- <!-- Old way of building realms (TODO: remove it if the alternative way proves better):
- -->
+ <!-- Old way of building realms (TODO: remove it if the alternative way proves better): -->
<xslt in="${local.config.home}/local.realms.xml" out="../../build/build-realms.xml" style="yanel2realms.xsl" force="true">
<param name="servlet.context.prefix" expression="${servlet.context.prefix}"/>
<param name="yanel.source.version" expression="${yanel.source.version}"/>
@@ -62,9 +59,8 @@
<param name="maven.url" expression="${maven.url}"/>
</xslt>
- <!-- Alternative way of building realms:
- -->
- <xslt in="${yanel.source.home}/conf/realms.xml" out="../../build/build-realms-v2.xml" style="realms2build.xsl" force="false">
+ <!-- Alternative way (NOT productive yet) of building realms: -->
+ <xslt in="${yanel.source.home}/conf/realms.xml" out="../../build/build-realms-v2.xml" style="realms2build_v2.xsl" force="false">
<param name="local-build-realms-file" expression="${local.config.home}/local.realms.xml"/>
</xslt>
</target>
More information about the Yanel-commits
mailing list