• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Nested "replaceproperties" error

 
Ranch Hand
Posts: 377
  • 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.
 
author
Posts: 5856
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: 377
  • 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: 377
  • 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: 377
  • 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
Boost this thread!