Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nested "replaceproperties" error

 
Dennis Putnam
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Can someone help me get this working. Thanks.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you want <expandproperties/>, not <replaceproperties/>.
 
Dennis Putnam
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it. I needed to add a propertyfile task after the copy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic