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

Template working with JSR-6 not working with RC-1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-RC-1
    • None
    • Groovlet / GSP
    • None

    Description

      This template:
      @echo off

      REM --------------------------------------------------------------------
      REM Script for invoking dps deployed preinstall scripts on all servers
      REM --------------------------------------------------------------------

      SET PATH=%PATH%;%PRO_ROOT%
      bin

      start /w wscript.exe %PRO_ROOT%\\bin
      userin.vbs
      call ~userin.bat
      del %PRO_ROOT%\\bin
      ~userin.bat
      SET USERNAME=%user%
      SET PASSWORD=%pass%

      plink -pw %PASSWORD% %USERNAME%@${domain.admSrv.servername}.${domain.admSrv.dnsdomainname} "cmd /c

      ${global.rootdir}\\${env.name}\\${env.domain}\\wld\\current\\${domain.admSrv.instancename}
      preinstall.cmd"

      <% domain.clusters.each { name, cluster | cluster.servers.each { servername, server | %>
      plink -pw %PASSWORD% %USERNAME%@${server.servername}.${server.dnsdomainname} "cmd /c

      ${global.rootdir}\\${env.name}\\${env.domain}\\wld\\current\\${server.instancename}
      preinstall.cmd"
      <% } }%>

      gets error

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 18: unexpected token: , @ line 18, column 43.
      1 error

      and this is the line <% domain.clusters.each { name, cluster | cluster.servers.each { servername, server | %>
      What wrong here? Worked with jsr-6

      Attachments

        Activity

          People

            tug John Wilson
            vrelits Jesper Vrelits
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: