Re: Unable to use cctimestamp property under log or merge context
Jeffrey Fredrick <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Parag, There are three context for properties in CruiseControl: 1. Configuration time properties that are used in config.xml 2. Build time properties that are passed to the builders 3. Properties in the log file that can be retrieved by plugins that handle the log file The cctimestamp is not available at configuration time, so can't be used in the first context, which is probably what you were trying to do. The example using it with a publisher ( http://cruisecontrol.sourceforge.net/main/configxml.html#cmsynergybaselinepublisher) isn't a general example. It relies on code in the CMSynergyBaselinePublisher's base class to extract the cctimestamp value from the log file and then do the property substitution on the baseline name. So you can do what you want, but it would involve making the MergeLogger property aware. This is possible because the BuildLogger interface has the primary method: public void log(Element buildLog), which means the log is there to extract the properties from. So you could accomplish what you want either by patching MergeLogger -- a patch I think we'd accept -- or by creating your own custom knock off of MergeLogger and putting the special case for cctimesamp in there. That second route would be quicker for you, but wouldn't it be cool to contribute to the project? :) Jtf On Mon, Oct 11, 2010 at 9:26 AM, Parag Doke <[email protected]<parag.doke%[email protected]> > wrote: > Hello All. > I wanted to ask under what contexts is the "cctimestamp" property > available? > I was looking at this page: > http://cruisecontrol.sourceforge.net/main/configxml.html > 1) It mentions that cctimestamp is passed to builders under the "schedule" > context. > <http://cruisecontrol.sourceforge.net/main/configxml.html>2) It has an > example where the cctimestamp property is also used under the "publishers" > context. > > I was trying to use the same property under the log/merge context, but it > looks like this isn't available. > My builder is ant and it generates some logs files under a new folder each > time it is run (I use cctimestamp within my ant build.xml). How do I use the > log/merge configuration to only look at the location created based on > cctimestamp ? > > Thanks in advance, > -- > Parag Doke > Save paper, save trees. Do not print emails/documents unless absolutely > necessary. > -- CITCON Continuous Integration and Testing Conference http://www.citconf.com/ ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user