1 Reply Latest reply: Jul 31, 2012 10:07 AM by Michał Warecki RSS

    Howto inverse the boolean value of a configuration file property ?

    Vincent Mahe Newbie

      Hello everyone,

       

      I have a bundle with an associated .cfg file containing a boolean property : enable.authentication=true

       

      Is it possible to use the inverse value of this property in order to configure a given property of a bean ?

       

      Something like :

      <property name="ignoreActions" value="not(${enable.authentication})" />

       

      This would prevent me from having 2 properties instead of one in my config file.

       

      ???

       

      Thanks

       

      Regards

       

      Vincent