Permalink
Browse files

v 0.3.8

- spostata la cartella dei file yml in webapp
- aggiunto al war il file logging.properties per tomcat
  • Loading branch information...
1 parent e5ba3ba commit b6178dd435caddb2ae3071796e405c39bb1638a9 @pfoletto committed Feb 14, 2012
View
@@ -1,8 +1,8 @@
#Grails Metadata file
-#Fri Jan 27 12:35:03 CET 2012
+#Tue Feb 14 14:25:48 CET 2012
app.grails.version=2.0.0
app.name=GEvents
app.servlet.version=2.5
-app.version=0.3.7
+app.version=0.3.8
plugins.searchable=0.6.3
-plugins.spring-security-core=1.2.7.1
+plugins.spring-security-core=1.2.7.1
@@ -184,7 +184,7 @@ class BootStrap {
def numContinents = Continent.count()
if (numContinents.value != 7){
Continent.executeUpdate("delete Continent c ")
- InputStream input = new FileInputStream(new File("resources/initialData/Continent.yml"));
+ InputStream input = new FileInputStream(new File(org.codehaus.groovy.grails.web.context.ServletContextHolder.servletContext.getRealPath("fixtures/Continent.yml")));
Yaml yaml = new Yaml();
Object data = yaml.load(input);
data.each{
@@ -198,11 +198,10 @@ class BootStrap {
def numCountries = Country.count()
if (numCountries.value != 87){
Country.executeUpdate("delete Country c ")
- InputStream input = new FileInputStream(new File("resources/initialData/Country.yml"));
+ InputStream input = new FileInputStream(new File(org.codehaus.groovy.grails.web.context.ServletContextHolder.servletContext.getRealPath("fixtures/Country.yml")));
Yaml yaml = new Yaml();
Object data = yaml.load(input);
data.each{
- println it.isoCode + it.continent
def country = new Country(isoCode: it.isoCode,
languageIsoCode: it.languageIsoCode,
languageVariant: it.languageVariant,
@@ -6,6 +6,8 @@ grails.project.target.level = 1.6
grails.project.source.level = 1.6
//grails.project.war.file = "target/${appName}-${appVersion}.war"
+grails.war.resources = { stagingDir, args ->
+copy(file: "grails-app/conf/logging.properties", tofile: "${stagingDir}/WEB-INF/classes/logging.properties")
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
@@ -78,6 +78,11 @@ log4j = {
//appenders {
// console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
//}
+ appenders {
+ rollingFile name: "myAppender",
+ maxFileSize: 1024,
+ file: "~/tmp/logs/GEvents.log"
+ }
error 'org.codehaus.groovy.grails.web.servlet', // controllers
'org.codehaus.groovy.grails.web.pages', // GSP
@@ -92,7 +97,7 @@ log4j = {
'net.sf.ehcache.hibernate'
}
-// Added by the Spring Security Core plugin:
-grails.plugins.springsecurity.userLookup.userDomainClassName = 'com.spark.SecUser'
-grails.plugins.springsecurity.userLookup.authorityJoinClassName = 'com.spark.SecUserSecRole'
-grails.plugins.springsecurity.authority.className = 'com.spark.SecRole'
+// Added by the Spring Security Core plugin:
+grails.plugins.springsecurity.userLookup.userDomainClassName = 'com.spark.SecUser'
+grails.plugins.springsecurity.userLookup.authorityJoinClassName = 'com.spark.SecUserSecRole'
+grails.plugins.springsecurity.authority.className = 'com.spark.SecRole'
@@ -0,0 +1,2 @@
+org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
+org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler
@@ -0,0 +1,14 @@
+- &Continent-NorthAmerica
+ name: "North America"
+- &Continent-SouthAmerica
+ name: "South America"
+- &Continent-Antarctica
+ name: "Antarctica"
+- &Continent-Africa
+ name: "Africa"
+- &Continent-Europe
+ name: "Europe"
+- &Continent-Asia
+ name: "Asia"
+- &Continent-Australia
+ name: "Australia"
Oops, something went wrong.

0 comments on commit b6178dd

Please sign in to comment.