Skip to content

Instantly share code, notes, and snippets.

@astachelek
Created September 9, 2011 21:56
Show Gist options
  • Save astachelek/1207440 to your computer and use it in GitHub Desktop.
Save astachelek/1207440 to your computer and use it in GitHub Desktop.
Include the FTP server configuration into the Grails Spring context
import grails.util.*
beans = {
switch(Environment.current) {
case Environment.TEST:
importBeans('file:grails-app/conf/spring/test-ftp.xml')
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment