Uploaded image for project: 'IvyDE (Retired)'
  1. IvyDE (Retired)
  2. IVYDE-66

Recognize more source and javadoc artifacts names

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0.alpha1
    • classpath container
    • None

    Description

      IvyDE doesn't recognise source artifacts with a different name than the binary artifact.

      E.g., If I have a JAR called commons-cli-1.1.jar and it's source called commons-cli-src-1.1.zip, an Ivy configuration with the following will resolve and the sources are downloaded (can be confirmed by the Ivy report as well as checking the cache) but will NOT attach sources in Eclipse:
      <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default">
      <artifact name="commons-cli" type="jar"/>
      <artifact name="commons-cli-src" type="source" ext="zip" conf="COMPILE" />
      </dependency>

      Ivy settings are:
      <filesystem name="externalLibraries">
      <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/>
      <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/>
      </filesystem>

      The only way to make this work is to change Ivy settings to:

      <filesystem name="externalLibraries">
      <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/>
      <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-src.[ext]"/>
      <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/>
      <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision]-src.[ext]"/>
      </filesystem>

      And rename
      commons-cli-src-1.1.zip
      To
      commons-cli-1.1-src.zip

      And finally change the Ivy configuration to:
      <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default">
      <artifact name="commons-cli" type="jar"/>
      <artifact name="commons-cli" type="source" ext="zip" conf="COMPILE" />
      </dependency>

      Attachments

        1. IVYDE-66-r616804.patch
          3 kB
          Nicolas Lalevée
        2. IVYDE-66-r616804.patch
          3 kB
          Nicolas Lalevée
        3. IVYDE-66-r617511.patch
          16 kB
          Nicolas Lalevée

        Issue Links

          Activity

            People

              xavier Xavier Hanin
              gerard.fernandes Gerard Fernandes
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: