0 Replies Latest reply on May 22, 2008 9:00 PM by Eric Jain

    How to interpolate properties with SystemPropertiesService?

    Eric Jain Newbie

      I'm setting a bunch of system properties like so:

       <mbean code="org.jboss.varia.property.SystemPropertiesService"
       name="jboss.util:type=Service,name=SystemProperties">
       <attribute name="URLList">conf/x.properties,conf/y.properties</attribute>
       </mbean>
      


      Within those property files I'd ideally like to be able to reference previously set properties, e.g.

      foo.dir=${jboss.server.home.dir}/foo
      bar.dir=${foo.dir}/bar
      ...
      


      Any ideas if this is possible somehow? The SystemPropertiesService API docs do mention something about interpolating properties, but that's not in the setURLList method but in setProperties, which takes a Properties object directly rather than a list of files...