Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14476

esdl2ecl issues "import $.share" twice for every expesdl xml entry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: ESP
    • Labels:
      None

      Description

      esdl2ecl.xslt is now issuing an import statement even thought the target ecl file is not guaranteed to have a $.share to import. Furthermore, the import seems to be associated with the header template, which is output'ed twice.

      Example:
      /*** Not to be hand edited (changes will be lost on re-generation) ***/
      /*** ECL Interface generated by esdl2ecl version 1.0 from IoTService.xml. ***/
      /===================================================/

      import $.share;

      export IoTService := MODULE

      export t_GHMagneticField := record
      string y

      {xpath('y')}

      ;
      string x

      {xpath('x')}

      ;
      end;
      ...
      end;

      /*** Not to be hand edited (changes will be lost on re-generation) ***/
      /*** ECL Interface generated by esdl2ecl version 1.0 from IoTService.xml. ***/
      /===================================================/

      import $.share;

        Attachments

          Activity

            People

            • Assignee:
              rpastrana Rodrigo Pastrana
              Reporter:
              rpastrana Rodrigo Pastrana
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: