Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-RC2
    • Component/s: Core
    • Labels:
      None

      Description

      In modules having a lot of configurations, sometimes it would be nice to be able to define a group of configurations based on their attributes (including extra attributes). The proposed syntax is *[att=value]

      For instance, one could define an extra attribute named 'axis' on the configuration, and then refer to all configurations where 'axis' is 'platform' with *[axis=platform].

      Here is an example of Ivy file using this notation:

      <ivy-module version="1.0" xmlns:e="http://ant.apache.org/ivy/extra">
      	<info organisation="org5"
      	       module="mod5.1"
      	       revision="4.5"
      	       status="integration"
      	       publication="20090501110000"
      	/>
      	<configurations>
      		<conf name="A" />
      		<conf name="B" />
      		
      		<conf name="windows" e:axis="platform" />
      		<conf name="linux" e:axis="platform"/>
      	</configurations>
      	<publications>
      		<artifact name="art51A" type="jar" conf="A,*[axis=platform]"/>
      		<artifact name="art51B" type="jar" conf="B,*[axis=platform]"/>
      		<artifact name="art51B" type="dll" conf="B,windows"/>
      		<artifact name="art51B" type="so" conf="B,linux"/>
      	</publications>
      	<dependencies>
      		<dependency org="org1" name="mod1.2" rev="2.0" conf="B,*[axis=platform]->default"/>
      	</dependencies>
      </ivy-module>
      

      In this ivy file, *[axis=platform] is equivalent to windows,linux

        Attachments

          Activity

            People

            • Assignee:
              xavier Xavier Hanin
              Reporter:
              xavier Xavier Hanin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: