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

Provide ant task to retrieve information from published ivy modules

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2
    • 2.0-RC1
    • Ant
    • None
    • Using ivy from ant.

    Description

      I was looking for a way to retrieve some of the information that is included in an ivy.xml file for a published module when using ant.

      The findrevision task allows you to retrieve the latest revision for a given module, but doesn't expose any of the other information that is available about the module.

      The info task allows you to get at the information in an ivy.xml file but only works on local files, it doesn't allow you to retrieve the same information from a published module.

      I had a quick look at the corresponding source code for these tasks (org.apache.ivy.ant.IvyInfo and org.apache.ivy.ant.IvyFindRevision) and it appears relatively easy to merge them so that the info task can run against either a local file or a repository module specified by the organisation, module and revision pattern (in the same way as with the findrevision task).

      Doing this would provide better functionality and make the findrevision task obsolete.

      I will try implementing this now myself and provide a patch if I am successful

      Attachments

        1. IvyInfoDoc.patch
          4 kB
          David Maplesden
        2. IvyInfoRepositoryTest.java
          4 kB
          David Maplesden
        3. IvyInfo.patch
          7 kB
          David Maplesden

        Activity

          People

            xavier Xavier Hanin
            dmaplesden David Maplesden
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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