Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-487

"in" property of AntBuilder causes error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-JSR-5
    • parser
    • None
    • WinXP jdk 1.4.2

    Description

      When using the "in" property of the XSLT task to set the XML document you want to style it fails to compile with the error:

      "could not use 'in' at 133:12; not valid as an identifier in this context"

      I assume because the compiler thinks you are trying to do a for(c in collection) type construct with "in" being a keyword.

      Just to clarify this is the code that is failing:

      ant.xslt(in:"${src}/myxml.xml",out:"mydoc.htm"force:true, style:"${local}/stylesheets/structure.xsl") {
      outputproperty(name:"method", value:"html")
      }

      I have got it working by doing normal Ant programming (ie. ant.project.createTask("xslt")), but this is not as practical

      PS This was not a problem in beta 4

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: