Skip to content

A Quick AlphaLabelIncrementer

On the CruiseControl users mailing list Adam asked for a simple label incrementer that would work with a single character in a series (“a”, “b”, “c”, etc.). Simple enough, but not worth adding to the project, so here it is, test (first) and code.

(Suggestions for better sites for sharing code snippets?)

7 Comments

  1. Jtf wrote:

    I should mention that http://pastie.org/ gave me Internal Server errors when I tried to use it.

    Thursday, July 10, 2008 at 5:33 pm | Permalink
  2. Bret wrote:

    I’ve used pastie. We also have a page on our confluence wiki where people upload code.

    Friday, July 11, 2008 at 7:32 am | Permalink
  3. Jtf wrote:

    Pastie seems to have recovered today, so here’s the test and the code.

    Friday, July 11, 2008 at 10:35 am | Permalink
  4. Jtf wrote:

    PasteBin version of test and code.

    Saturday, July 12, 2008 at 9:50 am | Permalink
  5. muskaddem wrote:

    For cc versions after 2.8, how custom label incrementer plugins can be registered? Before 2.8, it can be registered with plugin element used in config file like below.

    But this usage not registers the plugin for cc version 2.8.2.

    Wednesday, February 4, 2009 at 12:41 pm | Permalink
  6. Jtf wrote:

    You should be able to register it just like any other plugin. Previously you needed to register LabelIncrementer under the name labelincrementer but this is no longer the case. So you should be able to do something like:

    <plugin name=”alphaincrementer” class=”com.jeffreyfredrick.cc.AlphaLabelIncrementer” />

    and then use it in your project with:

    <alphaincrementer />

    Wednesday, February 4, 2009 at 1:16 pm | Permalink
  7. muskaddem wrote:

    Thanks for your reply. This is the tricky point that i have missed.

    Thursday, February 5, 2009 at 12:59 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*