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

ivy.dep.file property unavailable before first <ivy:resolve> call, despite <ivy:settings> being called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-1
    • 2.0-RC1
    • Ant
    • None
    • Windows

    Description

      The following test script:
      <ivy:settings/>
      <echo message="ivy.dep.file = ${ivy.dep.file}"/>
      <ivy:resolve/>
      <echo message="ivy.dep.file = ${ivy.dep.file}"/>

      Produces this output:
      [echo] ivy.dep.file = ${ivy.dep.file}
      [ivy:resolve] :: Ivy 2.0.0-beta2-local-20080108025749 - 20080108025749 :: http://ant.apache.org/ivy/ ::
      :: loading settings :: file = C:\svn\ARCH-TOOL\ivy\hss-ivysettings.xml
      [ivy:resolve] :: resolving dependencies :: hss#ef.srv;working@EDW-DV-GStOnge
      [ivy:resolve] confs: [compile, war, schema, spec-pdf, spec-html, javadocs]
      [ivy:resolve] :: resolution report :: resolve 172ms :: artifacts dl 0ms
      [echo] ivy.dep.file = ivy.xml

      Interestingly, the deprecated <ivy:configure> works properly:
      <ivy:configure/>
      <echo message="ivy.dep.file = ${ivy.dep.file}"/>
      <ivy:resolve/>
      <echo message="ivy.dep.file = ${ivy.dep.file}"/>

      Produces output:
      [ivy:configure] ivy:configure is deprecated, please use the data type ivy:settings instead
      [echo] ivy.dep.file = ivy.xml
      no settings file found, using default...
      [ivy:resolve] :: Ivy 2.0.0-beta2-local-20080108025749 - 20080108025749 :: http://ant.apache.org/ivy/ ::
      :: loading settings :: url = jar:file:/C:/svn/ARCH-TOOL/ivy/apache.ivy_2.0.0.beta2_20080108025749.jar!/org/apache/ivy/core/settings/ivysettings.xml
      [ivy:resolve] :: resolving dependencies :: hss#ef.srv;working@EDW-DV-GStOnge
      [ivy:resolve] confs: [compile, war, schema, spec-pdf, spec-html, javadocs]
      [ivy:resolve] :: resolution report :: resolve 125ms :: artifacts dl 0ms
      [echo] ivy.dep.file = ivy.xml

      I encountered this problem when trying to use the ivy.dep.file property as a default value in macros.

      Attachments

        Activity

          People

            maartenc Maarten Coene
            gregsaint Greg St.Onge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: