To use version information:
qualifier.replacement.*=generator:lastRevision
generator.lastRevision.format=r{0,number,00000}
... will use last revision. Eg creates: com.example.myplugin_1.0.0.r1234 for revision 1234.To use build date:
qualifier.replacement.*=generator:buildTimestamp generator.buildTimestamp.format='I'yyyyMMdd'-'HHmm... uses a timestamp with some constant text ('I', '-'). Eg creates com.example.myplugin_1.0.0.I20110920-1408
Thanks for posting this. Just what I needed, though a few more examples would help.
ReplyDelete