1

Is it possible to duplicate the value (without having to copy and paste) of a property? Is there anyway to mark it such that I could reuse the value of foo for the property baz?

foo=bar
baz=bar

We have common pieces of information which can appear on many pages. It'd be nice to be able to create one property with the common information, and then use this value in another property to help us keep DRY.

Scott
  • 9,458
  • 7
  • 54
  • 81

1 Answers1

4

Directly - no. If you pass the properties through a post-processor - yes. For example spring's <context:property-placeholder-configurer /> parses ${placeholder} syntax and replaces it with the proper value.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
  • Exactly what I was looking for. Looks like I'll need to extend out the velocity tool which pulls these out in our UI. – Scott Sep 08 '11 at 15:19