Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-361

Groovy can't resolve import from ddl scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0, 5.1
    • 5.2
    • Generator

    Description

      The GroovyShell invoked at GroovyScriptOutlet.java:42 doesn't get a classpath, if i try to start it from a gradle instance. (the generator is invoked inside a kotlin.class)

      Error executing template torque.sql.ddl.database
      org.apache.torque.generator.GeneratorException: Error executing template torque.sql.ddl.database
      Caused by: org.apache.torque.generator.GeneratorException: Error executing groovy script torque.sql.ddl.database
      Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Script1.groovy: 17: unable to resolve class org.apache.torque.generator.template.groovy.TorqueGenGroovy
       @ line 17, column 1.
         import org.apache.torque.generator.template.groovy.TorqueGenGroovy
         ^

      Attachments

        Activity

          People

            gk Georg Kallidis
            mwriedt Max Philipp Wriedt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: