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

report Ant-task doesn't call init() on the internal XSLTProcess

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.4-RC1
    • Component/s: Ant
    • Labels:
      None

      Description

      The report task doesn't call the init() method on the internal XSLTProcess instance.
      This results in an unitialized XMLCatalog and could cause failures in custom stylesheets.

      The fix is as follows (sorry but I cannot create a patch right now):

      Add "xslt.init();" to the genreport and gengraph methods.

      For instance:

      XSLTProcess xslt = new XSLTProcess();
      xslt.setTaskName(getTaskName());
      xslt.setProject(getProject());
      xslt.setBasedir(cache);
      xslt.init(); // ADD THIS

        Activity

        Hide
        maartenc Maarten Coene added a comment -

        Fixed

        Show
        maartenc Maarten Coene added a comment - Fixed

          People

          • Assignee:
            maartenc Maarten Coene
            Reporter:
            maartenc Maarten Coene
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development