• Home
  • Raw
  • Download

Lines Matching +full:dependency +full:- +full:check

4 		extension-element-prefixes="redirect">		
5 <!-- Reproducing Bugzilla 3489 -->
6 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
7 <xsl:strip-space elements="*"/>
8 <xsl:param name="output-dir"/>
11 <xsl:apply-templates/>
19 <xsl:value-of select="concat(/workspace/@cvsdir, '/')"/>
22 <xsl:value-of select="cvs/@module"/>
25 <xsl:value-of select="@srcdir"/>
30 <xsl:value-of select="concat('Creating Gump buildfile for ', @name)"/>
33 <redirect:write file="{$outputdir}/{@name}-gumpbuild.xml">
36 <!-- initialize time stamp and replace it in the html page -->
41 <replace file="{$outputdir}/status.xml" token="TAG-{@name}-TIME" value="${{TIMESTAMP}}"/>
44 <!--style in="{$basedir}/status.xml"
47 style="{$basedir}/source-index-style.xsl">
49 </style-->
52 <!-- check for all dependencies -->
53 <target name="dependency-check">
54 <xsl:apply-templates select="depend" mode="dependency-check"/>
57 <!-- generate the dependency failure targets -->
58 <xsl:apply-templates select="depend" mode="failed-dependency"/>
60 <!-- generate the main target that does everything -->
61 <target name="gumpify" depends="init,dependency-check" unless="dependency-failure">
66 <!--<antcall target="cvsupdate"/>-->
71 <replace file="{$outputdir}/status.xml" token="TAG-{@name}-CVS-TIME" value="${{TIMESTAMP}}"/>
73 <antcall target="status-pages"/>
77 <xsl:apply-templates select="cvs">
78 <xsl:with-param name="target" select="'cvscheckout'"/>
79 <xsl:with-param name="command" select="'-z3 checkout -P'"/>
80 </xsl:apply-templates>
82 <xsl:apply-templates select="cvs">
83 <xsl:with-param name="target" select="'cvsupdate'"/>
84 <xsl:with-param name="command" select="'-z3 update -P -d -A'"/>
85 </xsl:apply-templates>
87 <!-- build targets -->
89 <xsl:apply-templates select="ant | script"/>
92 <!-- called if the build went fine it sets the status to SUCCESS in the html file -->
93 <target name="status-pages">
94 <replace file="{$outputdir}/status.xml" token="TAG-{@name}-STATUS" value="SUCCESS"/>
95 …<!-- <style in="" out="{/workspace/@basedir}/{@name}.html" style="" destdir="{/workspace/@basedir}…
102 <!-- ===========================================================================================
104 =========================================================================================== -->
106 <!-- Ant build file directory -->
108 <xsl:value-of select="concat(/workspace/@basedir, '/', ../@srcdir)"/>
110 <xsl:value-of select="concat('/', @basedir)"/>
114 <!-- copy project files -->
115 <!--copy todir="{/workspace/@basedir}/{../@srcdir}">
117 </copy-->
119 <!-- execute the target needed to build the project -->
121 output="{/workspace/@outputdir}/{../@name}-buildresult.txt"
124 <!-- transmit the worspace's properties -->
125 <xsl:for-each select="/workspace/property">
126 <arg value="-D{@name}={@value}"/>
127 </xsl:for-each>
129 <!-- a buildfile might be specified otherwise Ant will use its default -->
131 <arg line="-buildfile {$build.dir}/{@buildfile}"/>
133 …g line="-listener org.apache.tools.ant.XmlLogger -Dant.home={/workspace/@basedir}/dtools/ant -DXml…
135 <!-- specific target name to perform the build -->
139 <xsl:apply-templates select="property"/>
141 <!-- Do the classpath thing here -->
143 <xsl:for-each select="../depend | ../option">
145 <xsl:for-each select="/workspace/project[@name=$name]/jar">
147 </xsl:for-each>
148 </xsl:for-each>
155 <!-- ===========================================================================================
157 =========================================================================================== -->
163 output="{/workspace/@outputdir}/{../@name}-buildresult.txt"/>
167 <!-- ===========================================================================================
169 =========================================================================================== -->
178 <xsl:value-of select="$cvsmodule.present"/>
183 <xsl:value-of select="$cvsmodule.present"/>
186 …<replace file="{/workspace/@outputdir}/status.xml" token="TAG-{../@name}-CVS-TIME" value="${TIMEST…
189 <xsl:value-of select="/workspace/cvs-repository/tree[@name=$repo]/@root"/>
191 <xsl:value-of select="concat('/', @dir)"/>
195 <xsl:value-of select="/workspace/@cvsdir"/>
200 <xsl:value-of select="@module"/>
203 <xsl:value-of select="../@name"/>
209 <xsl:value-of select="@tag"/>
213 <xsl:value-of select="concat(/workspace/@outputdir, '/', ../@name, '-cvsresult.txt')"/>
216 …<replace file="{/workspace/@outputdir}/status.xml" token="TAG-{../@name}-CVS-STATUS" value="SUCCES…
221 <!-- ===========================================================================================
222 Check for a dependency availability and immediately call its
223 dependency-check related target.
224 =========================================================================================== -->
225 <xsl:template match="/workspace/project/depend" mode="dependency-check">
228 <available file="{$dependfilename}" property="dependency.{$project}.present"/>
229 <antcall target="{$project}-dependency"/>
233 <!-- ===========================================================================================
234 Target called only if the related property is not set (ie the dependency
237 =========================================================================================== -->
238 <xsl:template match="/workspace/project/depend" mode="failed-dependency">
239 <xsl:variable name="failed-project" select="@project"/>
240 <target name="{$failed-project}-dependency" unless="dependency.{$failed-project}.present">
241 <echo message="PREREQ Failure: Project depends on {$failed-project}"/>
242 <available file="{/workspace/@outputdir}/{../@name}.FAILED" property="dependency-failure"/>
243 …le="{/workspace/@outputdir}/status.xml" token="TAG-{../@name}-STATUS" value="Prereq Failure: {$fai…
244 <fail message="PREREQ Failure: Dependency on {$failed-project} could not be satisfied."/>
252 <xsl:text>-D</xsl:text>
253 <xsl:value-of select="@name"/>
257 <xsl:value-of select="@value"/>
266 … <xsl:value-of select="/workspace/project[@name=$projname]/*[name()=$refname and @id=$propid]"/>
269 <xsl:value-of select="/workspace/project[@name=$name]/*[name()=$refname]"/>
279 <!--
288 * http://www.apache.org/licenses/LICENSE-2.0
295 -->