This is actually an old thread that I need to resurrect. However, the original thread had evolved to a point where it no longer really related to the original topic so I hope no one gets upset that I am starting a new one. Anyway, I am trying to increment a serial number for my build and on advice wound up trying to use "buildnumber". Here is my current xml:
The error I get is:
newmakejar.xml:31: filterchain doesn't support the nested "replaceproperties" element.
Thanks. That got rid of the error and the jar file now builds. However, the serial number is not being incremented. I obviously am still missing a piece of the puzzle.
Dennis Putnam
Ranch Hand
Joined: Feb 03, 2012
Posts: 208
posted
0
I think I figured out what is happening but not how to fix it. If I understand correctly, buildnumber simply sets the variable ${build.number}. The question becomes how to get that into my resource file. Do i put that variable name directly into the file or do I still need to do some kind of substitution in the build XML?
Dennis Putnam
Ranch Hand
Joined: Feb 03, 2012
Posts: 208
posted
0
I got it. I needed to add a propertyfile task after the copy.