[jira] [Commented] (TORQUE-361) Groovy can't resolve import from ddl scripts

"Max Philipp Wriedt (Jira)" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/TORQUE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708573#comment-17708573 ] 

Max Philipp Wriedt commented on TORQUE-361:
-------------------------------------------

I have just realized, that you put that code inside the subversion.
I finally got to test it and can confirm it works fine in my use case.
 
the gradle plugin is still in development and requires some refactoring regarding the configuration, so I consider it "early alpha".
I will continue working on it soon.

> Groovy can't resolve import from ddl scripts
> --------------------------------------------
>
>                 Key: TORQUE-361
>                 URL: https://issues.apache.org/jira/browse/TORQUE-361
>             Project: Torque
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 5.0, 5.1
>            Reporter: Max Philipp Wriedt
>            Priority: Major
>              Labels: groovy
>
> 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)
> {code:java}
> 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
>    ^{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.