igorrosenberg / grails-plugin-uml-class-diagram

Generate UML diagrams from your Grails app source code.
Apache License 2.0
7 stars 4 forks source link

offline: grails uml-class-diagram #19

Open igorrosenberg opened 9 years ago

igorrosenberg commented 9 years ago

The offline script

grails uml-class-diagram

should store the layers (controller/services) and domains images in the output folder 'target/'

Is the code below of any use?

    includeTargets << grailsScript("_GrailsBootstrap")
    loadApp()
    for (grailsClass in grailsApp.allClasses) { println grailsClass }

    configureApp()
    Connection c = appCtx.getBean('dataSource').getConnection()
igorrosenberg commented 9 years ago

Ideally, the script builds a Config Command object (script parameters and/or config options), based on default options, optionnaly overloaded in Config.groovy