Luke Stephens wrote:
> 
> If I try to use:
> 
> class HibernateSchemaGenTask extends DefaultTask {
>       schemaExport = new org.hibernate.tool.hbm2ddl.SchemaExport()
> }
> 

You need to define a method that will actually perform the action of the
task:
class GreetingTask extends DefaultTask {
    @TaskAction
    def greet() {
        println 'hello from GreetingTask'
    }
}


See
<http://www.gradle.org/current/docs/userguide/userguide_single.html#N1461F>
for more information.

-----
--
Regards, Johan
--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Gonna-Try-This-Again-Hibernate-Classpath-and-SchemaGen-tp4661005p4661498.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to