Re: 2.8.2 -> 2.8.4: antBuilderOutput.log deleted on ant task completion?
"Marc W." <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your response, Jeffrey. In experimenting with the saveLogDir attribute, it appears it may be more of a workaround for me, for the following reasons: * It requires the directory to exist before the build is kicked off (check is part of AntBuilder's validate() method), so I can't save it directly to the project's build's artifacts folder (which is determined based on the cctimestamp). I think this check should be done later in the cycle, probably just before the actual saving. * It saves the log in XML form, and so I would have to further translate to make it human-readable. In fact, its contents are the same as what you'd find in the resulting XML log file (it merely saves a separate copy of just the /cruisecontrol/build portion). * It names the log, "log.xml", so I'd have to use a directory path unique to the project to avoid potential collisions with other builder threads. * For some reason, I cannot use the project working directory (my antWorkingDir) for saveLogDir, for it seems to be deleted (I haven't investigated this too much, but it simply works if I use a different directory). Looking at code changes between 2.8.2 and 2.8.4, I can't figure out what change would cause the antBuilderOutput.log to disappear, perhaps in BuildOutputManager.java? If you can see how I might be able to preserve the antBuilderOutput.log (I'm even comfortable making a source code change to my instance if that would be required), I would be most appreciative. Thank you, -Marc On Wed, Dec 1, 2010 at 12:30, Jeffrey Fredrick <[email protected]>wrote: > > I think if you use the saveLogDir attribute and set it to the artifact > directory then the log will be saved: > > http://cruisecontrol.sourceforge.net/main/configxml.html#ant > > I haven't checked the source to confirm this, but that's what I get from > looking at the documentation. > > Jtf > > > On Wed, Dec 1, 2010 at 12:03 AM, Marc W. <[email protected]> wrote: > >> Under 2.8.2, I was happily gathering the leftover antBuilderOutput.log >> (raw text of the Ant output) after an <ant> or <antpublisher> step to save >> in the build's artifact folder so that one could see exactly what occurred. >> >> However, upon upgrading to 2.8.4 (and replacing the "showAntOutput" >> attribute with "liveOutput"), I find that the antBuilderOutput.log is >> getting deleted after the build. I can't for the life of me figure out a >> configuration set to preserve them. As a result, my <artifactpublisher> >> can't find the log to save in my artifacts folder, and developers >> investigating a failed build are wondering where the Ant log went. >> >> I've managed to add a tab to essentially report the XPath query, >> "cruisecontrol/build//message[@priority!='debug']" text() output, but while >> this can report Ant output from the <ant> task, I can't use this approach to >> report on the Ant output from an <antpublisher> step (which is just as >> important). >> >> Any advice? Thanks for your help, >> -Marc >> > > > -- > CITCON > Continuous Integration and Testing Conference > http://www.citconf.com/ > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user