Howdy List,
I'm trying to modify the cruisecontrol.jsl file to include <system/>
information. According to the CC docs this element is contained by the
root cruisecontrol element. I'm not familiar with JSL or XSL and that's
the problem. I would welcome any help be it pointing to examples or
explaining how I can add this information. The reason I need to do this
is because we use maven to regenerate our cruisecontrol config file on a
nightly basis. I have to remember to manually add the <system />
information because it keeps disappearing.
For those familiar with the cruisecontrol.jsl file I added my <system/>
information just below <jsl:template match="cruisecontrol" trim="false">
which resulted in the <system/> information being put in the file
outside of the cruisecontrol root.
The information I'd like to add is fairly static:
<system>
<configuration>
<threads count="2" />
</configuration>
</system>
I think I want to add a maven.cruisecontrol.threads.count property and
change the information to:
<system>
<configuration>
<threads count="${maven.cruisecontrol.threads.count}" />
</configuration>
</system>
But it really only matters when the thread count is greater then 1, so I
think I'll have to add the following:
<j:if test="${maven.cruisecontrol.threads.count > 1}">
<system>
<configuration>
<threads count="${maven.cruisecontrol.threads.count}" />
</configuration>
</system>
</j:if>
Or something like that...
Thanks, and sorry for the long winded email.
Mel Riffe