cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From egl...@apache.org
Subject svn commit: r772695 - in /cxf/dosgi/trunk/distribution/multi-bundle: pom.xml src/main/xsl/equinox_distro_config.xslt src/main/xsl/felix_distro_config.xslt
Date Thu, 07 May 2009 16:23:08 GMT
Author: eglynn
Date: Thu May  7 16:23:08 2009
New Revision: 772695

URL: http://svn.apache.org/viewvc?rev=772695&view=rev
Log:
[dOSGi] Parameterizing version in distro xslt files

Modified:
    cxf/dosgi/trunk/distribution/multi-bundle/pom.xml
    cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/equinox_distro_config.xslt
    cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/felix_distro_config.xslt

Modified: cxf/dosgi/trunk/distribution/multi-bundle/pom.xml
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/distribution/multi-bundle/pom.xml?rev=772695&r1=772694&r2=772695&view=diff
==============================================================================
--- cxf/dosgi/trunk/distribution/multi-bundle/pom.xml (original)
+++ cxf/dosgi/trunk/distribution/multi-bundle/pom.xml Thu May  7 16:23:08 2009
@@ -277,13 +277,17 @@
                 </path>
                 <pathconvert targetos="unix" property="current.dir" refid="current.dir.path"
/>
                 
-                <xslt processor="trax" in="target/classes/distro_bundles.xml" out="target/distribution_configs/felix.config.properties.append"
style="src/main/xsl/felix_distro_config.xslt" />
+                <xslt processor="trax" in="target/classes/distro_bundles.xml" out="target/distribution_configs/felix.config.properties.append"
style="src/main/xsl/felix_distro_config.xslt">
+                    <param name="Version" expression="${dosgi.version}" />
+                </xslt>
                 
                 <xslt processor="trax" in="target/classes/distro_bundles.xml" out="target/felix.config.properties.append"
style="src/main/xsl/felix_buildsystem_config.xslt">
                       <param name="TargetDir" expression="${current.dir}/target/" />
                 </xslt>
                 
-                <xslt processor="trax" in="target/classes/distro_bundles.xml" out="target/distribution_configs/equinox.config.ini.append"
style="src/main/xsl/equinox_distro_config.xslt" />
+                <xslt processor="trax" in="target/classes/distro_bundles.xml" out="target/distribution_configs/equinox.config.ini.append"
style="src/main/xsl/equinox_distro_config.xslt">
+                    <param name="Version" expression="${dosgi.version}" />
+                </xslt>
                 
                 <xslt processor="trax" in="target/classes/distro_bundles.xml" out="target/equinox.config.ini.append"
style="src/main/xsl/equinox_buildsystem_config.xslt">
                       <param name="TargetDir" expression="${current.dir}/target/" />

Modified: cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/equinox_distro_config.xslt
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/equinox_distro_config.xslt?rev=772695&r1=772694&r2=772695&view=diff
==============================================================================
--- cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/equinox_distro_config.xslt (original)
+++ cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/equinox_distro_config.xslt Thu
May  7 16:23:08 2009
@@ -1,11 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
+  <xsl:param name="Version"/>
+  <xsl:variable name = "Basename">.dir/apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/</xsl:variable>
   <xsl:template match="/">
 org.ops4j.pax.web.session.timeout=30
 
 osgi.bundles=org.eclipse.osgi.services@start, \
-<xsl:for-each select="//bundles/bundle">../apache-cxf-dosgi-ri-1.1-SNAPSHOT/dosgi_bundles/<xsl:value-of
select="substring-after(text(), '.dir/apache-cxf-dosgi-ri-1.1-SNAPSHOT/dosgi_bundles/')"/><xsl:value-of
select="string('@start, ')"/></xsl:for-each>
+<xsl:for-each select="//bundles/bundle">../apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/<xsl:value-of
select="substring-after(text(), $Basename)"/><xsl:value-of select="string('@start, ')"/></xsl:for-each>
   </xsl:template>
 </xsl:transform>
 

Modified: cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/felix_distro_config.xslt
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/felix_distro_config.xslt?rev=772695&r1=772694&r2=772695&view=diff
==============================================================================
--- cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/felix_distro_config.xslt (original)
+++ cxf/dosgi/trunk/distribution/multi-bundle/src/main/xsl/felix_distro_config.xslt Thu May
 7 16:23:08 2009
@@ -1,13 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
+  <xsl:param name="Version"/>
+  <xsl:variable name = "Basename">.dir/apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/</xsl:variable>
   <xsl:template match="/">
 org.ops4j.pax.web.session.timeout=30
 org.osgi.framework.startlevel=<xsl:value-of select="count(//bundles/felix_deps) + count(//bundles/bundle)
+ 2"/>
 felix.auto.start.2=http://www.apache.org/dist/felix/org.osgi.compendium-1.2.0.jar
     <xsl:for-each select="//bundles/bundle">
       <xsl:variable name="i" select="position() + count(//bundles/felix_deps) + 2"/>
-felix.auto.start.<xsl:value-of select="$i"/>=file:apache-cxf-dosgi-ri-1.1-SNAPSHOT/dosgi_bundles/<xsl:value-of
select="substring-after(text(), '.dir/apache-cxf-dosgi-ri-1.1-SNAPSHOT/dosgi_bundles/')"/>
+felix.auto.start.<xsl:value-of select="$i"/>=file:apache-cxf-dosgi-ri-<xsl:value-of
select="$Version"/>/dosgi_bundles/<xsl:value-of select="substring-after(text(), $Basename)"/>
     </xsl:for-each>
   </xsl:template>
 </xsl:transform>



Mime
View raw message