source: trunk/scripts/_Events.groovy

Last change on this file was 1938, checked in by t.w.abma@…, 9 years ago
  • added comment
  • Property svn:keywords set to Author Date LastChangedBy Revision
File size: 914 bytes
Line 
1/**
2 * Event script
3 *
4 * This script will be run when starting the application and allows you to attach specifiek events
5 *
6 * @author  t.w.abma@umcutrecht.nl (Tjeerd Abma)
7 * @since       20110622
8 * @package
9 *
10 * Revision information:
11 * @version $Rev: 1938 $
12 * @author $Author: work@osx.eu $
13 * @date $Date: 2011-06-23 12:59:26 +0000 (do, 23 jun 2011) $
14*/
15
16
17
18eventCompileEnd = {
19   // Fix for addToWriters()-method failing, seems that when the default.properties containing the configured users
20   // cannot be read, the addToWriters()-method tries to add "null" users, which fails.
21   // Added this ant script which moves the default.properties to the correct classpath. Seems to work now.
22   // Might be a bug in Grails (at least till 1.3.7)?
23
24   ant.echo (message: "Moving default configuration file (default.properties) ..." )
25   ant.copy(file:"${basedir}/grails-app/conf/default.properties", todir:classesDirPath)
26   ant.echo (message: "Default configuration file moved.")
27}
Note: See TracBrowser for help on using the repository browser.