Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-8728

Support not (!) operator for profile selection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.1 M2
    • Fix Version/s: 3.2 M1
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true

      Description

      It would be really helpful if the profile attribute could take names of profiles that all has to be active.

      For instance:

      <beans profile="production,datacenter_us">
          ...
      </beans>
      <beans profile="production,datacenter_eu">
          ...
      </beans>
      

      As for syntax there would need to be a notation that can express both OR and AND, possibly using | and ,

      Like:

      <beans profile="staging|production">
          ...
      </beans>
      

      Even better would be if the syntax was in line with other expressions such as SpEL.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cbeams Chris Beams
              Reporter:
              tmattsson Tobias Mattsson
              Last updater:
              Spring Issuemaster
              Votes:
              7 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 25 weeks, 1 day ago

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 2.5h
                  2.5h