You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Riffe, Melvin" <MR...@upstate.com> on 2005/04/06 15:42:17 UTC
Modifying cruisecontrol.jsl file...
I should have posted my question to the Developer's list instead of the
User's list. Oops!
-----Original Message-----
From: Riffe, Melvin [mailto:MRiffe@upstate.com]
Sent: Tuesday, April 05, 2005 4:00 PM
To: Maven Users List
Subject: Modifying cruisecontrol.jsl file...
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org