Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-319

references in resolvers are not resolved 'in-time' with macrodef

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4.1
    • Core
    • None

    Description

      The following snippet of configuration does not work. Apparently the chain is looking for reference before they are declared in case of macrodef
      Workaround being to actually redeclare the resolver in the chain

      problem in config file: unknown resolver release: resolver should be defined before being referenced
      
          <macrodef name="myresolver">
              <attribute name="name"/>
              <filesystem name="@{name}" m2compatible="true" checkconsistency="true" checkmodified="true" allownomd="false">
                  <artifact pattern="/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]" />
                  <ivy pattern="/[organisation]/[module]/[revision]/ivy.xml"/>
              </filesystem>        
          </macrodef>
      
      <resolvers>
         <myresolver name="shared"/>
         <chain name="mychain">
            <resolver ref="shared"/>
         </chain>
      </resolver>
      

      Attachments

        Activity

          People

            xavier Xavier Hanin
            sbailliez Stephane Bailliez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: