Hi! I'm using ccnet preprocessor to build some custom configurations on my
actual setup. In my company we have a couple of default queues (one for CI
project and one for Build Projects). So I've defined 2 functions to handle
the use of this in my ccnet configuration. I post a simplify version of
those:
<cb:define name="BDDefaultQueue">
<cb:ifndef name="initBD">
<queue name="BD" duplicates="UseFirst" lockqueues="CI" />
<cb:define initBD="1"/>
</cb:ifndef>
</cb:define>
<cb:define name="ProjectInclude">
<cb:scope prjSystemName="$(SystemName)"
prjName="$(ProjectName)"
prjSystemBasePath="$(ccProjectsBasePath)\$(SystemName)"
prjBasePath="$(ccProjectsBasePath)\$(SystemName)\Projects\$(ProjectName)">
<cb:ifndef name="queue">
<cb:define queue="$(ProjectName)"/>
</cb:ifndef>
<cb:else>
<cb:if expr="'$(queue)'=='BD'">
<cb:BDDefaultQueue/>
</cb:if>
</cb:else>
<cb:ifndef name="queuePriority">
<cb:define queuePriority="0"/>
</cb:ifndef>
<project name="$(prjName)" queue="$(queue)"
queuePriority="$(queuePriority)" >
<cb:include href="$(prjBasePath)\project.config"
xmlns:cb="urn:ccnet.config.builder"/>
</project>
</cb:scope>
</cb:define>
My idea is to use initBD as a flag to avoid duplicate definitions, but this
doesn't work. Every time BDDefaultQueue is fired (for every ProjectInclude)
ifndef
expression is true. This means initBD is not work as global definition. Why
I don't declare BD queue once in the config file? Because we have different
servers working with this base preprocessor configuration; some uses this
default queue, some other no.
There is any way to achieve this approach of avoid duplicate queue
configurations using "global" definitions?
Thanks in advance for your answers!
--
Sebastian
--
---
You received this message because you are subscribed to the Google Groups
"ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.