Fail for missing resource files / scripts.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1692 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
hanna 2009-09-22 21:31:01 +00:00
parent eebe2978a1
commit 3928751bf5
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@
<xsl:with-param name="file" select="$file.name" />
</xsl:call-template>
</xsl:variable>
<available property="is.{$short.name}.present" file="{$file.name}"/>
<fail message="File {$file.name} not found" unless="is.{$short.name}.present" />
<delete file="{concat($target.dir,'/',$short.name)}" />
<symlink link="{concat($target.dir,'/',$short.name)}" resource="{$full.path}" overwrite="true" />
</xsl:template>