Guest User

Untitled

a guest
Jan 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class BootStrap {
  2.  
  3. def grailsApplication
  4.  
  5. def init = { servletContext ->
  6.  
  7. def classLoader = grailsApplication.classLoader
  8. def script = classLoader.loadClass("SimpleAktion").newInstance()
  9. script.run()
  10.  
  11.  
  12. def shell = new GroovyShell(classLoader)
  13. script = shell.parse(new File("./src/groovy/SimpleAktion.groovy"))
  14. script.run()
  15.  
  16.  
  17. }
  18. def destroy = {
  19. }
  20. }
Add Comment
Please, Sign In to add comment