Commit 71781931 authored by Drain's avatar Drain

[Opale2Optim] Fixed absolute paths bug in get_ressources.ant

parent eced64ae
......@@ -7,7 +7,7 @@
xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:op="utc.fr:ics/opale3">
<xsl:variable name="ProjectFileName" select="opale_to_hdoc"/>
<xsl:variable name="ProjectFileName" select="'opale_to_hdoc'"/>
<xsl:template match="sc:item">
<project name='Opale2Hdoc' default="main">
......@@ -20,7 +20,7 @@
<xsl:template match="sp:res[@sc:refUri]">
<xsl:variable name="link" select="@sc:refUri"></xsl:variable>
<xsl:variable name="name" select="tokenize($link, '/')[last()]"></xsl:variable>
<xsl:variable name="link2" select="substring-after($link, concat($ProjectFileName, '/'))"></xsl:variable>
<xsl:variable name="link2" select="tokenize($link, concat($ProjectFileName, '/'))[last()]"></xsl:variable>
<copy file="{$link2}/{$name}" todir="output/hdoc/re"/>
</xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment