]>
Commit | Line | Data |
---|---|---|
b0de11ed MW |
1 | <?xml version="1.0" encoding="utf-8"?> |
2 | ||
3 | <!-- | |
4 | Name: include/push.xml | |
5 | Purpose: Declarations for the push build slave | |
6 | Author: Mike Wetherell | |
7 | RCS-ID: $Id$ | |
8 | Copyright: (c) 2007 Mike Wetherell | |
9 | Licence: wxWidgets licence | |
10 | --> | |
11 | ||
12 | <bot xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
13 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
14 | ||
15 | <xi:include href="defs.xml"/> | |
16 | ||
17 | <!-- | |
18 | Usage: <show log="filename" [ name="title" ]/> | |
19 | ||
20 | A build step displayed as 'title' in the waterfall display, the output | |
21 | comes from 'filename.log' in the uploaded log tarball, and the exit code | |
22 | comes from 'filename.err'. | |
23 | ||
24 | If the name attibute is omitted, it defaults to the filename. | |
25 | --> | |
26 | <xsl:template name="show"> | |
27 | <xsl:param name="content"/> | |
28 | <xsl:param name="log"/> | |
29 | <xsl:param name="name" select="$log"/> | |
30 | <shellcommand> | |
31 | <defaults content="{$content}"> | |
32 | <name><xsl:value-of select="$name"/></name> | |
33 | <description><xsl:value-of select="$name"/></description> | |
34 | <descriptionDone><xsl:value-of select="$name"/></descriptionDone> | |
35 | <command><xsl:value-of select="$log"/></command> | |
36 | </defaults> | |
37 | <xsl:copy-of select="$content"/> | |
38 | </shellcommand> | |
39 | </xsl:template> | |
40 | ||
41 | </bot> |