| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
- xmlns:p5up5b="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/upgrade_procesy5_bocian.xsd"
- xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
- <xsl:template match="target[@p5up5b:task_type='sql']" mode="p5dg:p5ant.include.structure.ant.build.target">
- <p5dg:p5ant.include.structure.ant.build.target>
- <xsl:attribute name="p5dg:basedir" select="p5up5b:getproperty(root(),@p5up5b:prefix,'SYSTEM.repository')"/>
- <xsl:attribute name="p5dg:name" select="@p5up5b:task_name"/>
- <xsl:attribute name="p5ant:uuid" select="generate-id()"/>
-
- <!-- <xsl:attribute name="p5build_SE.procesy5_config.default_db.server.host" select="p5up5b:getproperty(root(),@p5up5b:prefix,'procesy5_config.default_db.server.host')"/>
- <xsl:attribute name="p5build_SE.procesy5_config.default_db.server.pass" select="p5up5b:getproperty(root(),@p5up5b:prefix,'procesy5_config.default_db.server.pass')"/>
- <xsl:attribute name="p5build_SE.procesy5_config.default_db.server.port" select="p5up5b:getproperty(root(),@p5up5b:prefix,'procesy5_config.default_db.server.port')"/>
- <xsl:attribute name="p5build_SE.procesy5_config.default_db.server.user" select="p5up5b:getproperty(root(),@p5up5b:prefix,'procesy5_config.default_db.server.user')"/>
- -->
- <!--<xsl:copy-of select="@*"/>-->
- <target name="{@p5up5b:task_name}">
- <xsl:variable name="exec">
- <exec dir="{p5up5b:getproperty(root(),@p5up5b:prefix,'SYSTEM.repository')}"
- output="{current-group()[@p5up5b:task_name.param='output']/@value}"
- >
- <xsl:attribute name="executable">${mysql}</xsl:attribute>
- <arg>
- <xsl:attribute name="line">
- <xsl:text>${mysql} -u </xsl:text><xsl:value-of select="p5up5b:getproperty(root(),@p5up5b:prefix,'procesy5_config.default_db.server.user')"/>
- <xsl:text> -p </xsl:text><xsl:value-of select="p5up5b:getproperty(root(),@p5up5b:prefix,'procesy5_config.default_db.server.pass')"/>
- <xsl:text> "</xsl:text><xsl:value-of select="@value"/><xsl:text>"</xsl:text>
- </xsl:attribute>
- </arg>
- </exec>
- </xsl:variable>
- <xsl:apply-templates mode="p5up5b:sort" select="$exec"/>
- </target>
- </p5dg:p5ant.include.structure.ant.build.target>
- </xsl:template>
-
- <!-- <xsl:template match="target[@p5up5b:task_name.param='username' and @p5up5b:task_name.param.attr='' ]" mode="p5dg:p5ant.include.structure.ant.build.target.sql.exec">
- <arg value=" -u{@value} " p5up5b:sort="1"/>
- </xsl:template>
- <xsl:template match="target[@p5up5b:task_name.param='username' and @p5up5b:task_name.param.attr='pass' ]" mode="p5dg:p5ant.include.structure.ant.build.target.sql.exec">
- <arg value=" -p{@value} " p5up5b:sort="2"/>
- </xsl:template>
- <xsl:template match="target[@p5up5b:task_name.param='database']" mode="p5dg:p5ant.include.structure.ant.build.target.sql.exec">
- <arg value=" {@value} " p5up5b:sort="3"/>
- </xsl:template>
- <xsl:template match="target[@p5up5b:task_name.param='tables']" mode="p5dg:p5ant.include.structure.ant.build.target.sql.exec">
- <arg value=" {@value} " p5up5b:sort="4"/>
- </xsl:template>-->
- <!--<xsl:template match="target[@p5up5b:task_name.param='output']" mode="p5dg:p5ant.include.structure.ant.build.target.sql.exec">
- <arg value="> {@value}" p5up5b:sort="5"/>
- </xsl:template>-->
- <xsl:template match="*" mode="p5dg:p5ant.include.structure.ant.build.target.sql.exec">
- <xsl:comment>#56 bypassed </xsl:comment>
- </xsl:template>
-
- </xsl:stylesheet>
|