This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.deluan.gaelyk; | |
import org.springframework.beans.BeansException; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.ApplicationContextAware; | |
/** | |
* Wrapper to always return a reference to the Spring Application Context from | |
* within non-Spring enabled beans. Unlike Spring MVC's WebApplicationContextUtils | |
* we do not need a reference to the Servlet context for this. All we need is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beans = { | |
log4jConfigurer(org.springframework.beans.factory.config.MethodInvokingFactoryBean) { | |
targetClass = "org.springframework.util.Log4jConfigurer" | |
targetMethod = "initLogging" | |
arguments = ["classpath:myapp/log4j.properties"] | |
} | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Startup script for Hudson | |
# | |
# chkconfig: - 84 16 | |
# description: Hudson CI server | |
# Source function library. | |
#. /etc/rc.d/init.d/functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: Deluan (http://techbeats.deluan.com) | |
# Check if GRAILS_HOME is set | |
if [ -z "$GRAILS_HOME" -o ! -d "$GRAILS_HOME" ]; then | |
echo "Error: GRAILS_HOME not set" | |
exit 2 | |
fi | |
# Extract the base path from GRAILS_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2010 Deluan Cotts (grails@deluan.com.br) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2010 Deluan Cotts (grails@deluan.com.br) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
NewerOlder