Re: Adding the ANT target name to CC's notification e-mail
Jeffrey Fredrick <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
I think what you want to do should be pretty easy. Just create a custom class that extends the HTMLEmailPublisher and then override createSubject(XMLLogHelper), which is defined in EmailPublisher. You can call super.createSubject(XMLLogHelper) to get the current value and then prepend the target, which I think you should be able to get XMLLogHelper.getCruiseControlInfoProperty(String name). Does that make sense? Jtf On Tue, Oct 19, 2010 at 12:51 PM, Chip Whitmer <[email protected]> wrote: > We have a project named “mpi” with several different ANT targets > available. The default target is “deploy”, but we occasionally use CC’s JMX > Console -> buildWithTarget to execute a different target. > > > > When any of these targets completes, we get the same e-mail notification > that says: “mpi Build Successful” or “mpi Build Failed”. The problem is > that we can’t tell from the e-mail message which target is being reported > on. > > > > How would I modify this message to include the ANT target in the subject > line? I would like the subject to be something like “mpi:deploy Build > Successful” or “mpi:compile Build Failed” > > > > Thanks, > > *Chip Whitmer | Content Team Lead* > > *Service Repair Solutions, Inc. — Revolutionizing the Delivery of Service > and Repair™* > > 747 East Timpanogos Parkway | Building M | Orem, Utah 84097 > > Phone: (801) 437-5809 | Fax: (801) 437-5899 | Skype: chip.whitmer > > http://www.servicerepairsolutions.com > > > -- 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