File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
groovy/org/codehaus/groovy/grails/plugins Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ grails.enable.native2ascii = true
3434// set per-environment serverURL stem for creating absolute links
3535environments {
3636 production {
37- grails. serverURL = " http://www.yourexcitingapplication .com"
37+ grails. serverURL = " http://www.changeme .com"
3838 }
3939}
4040
Original file line number Diff line number Diff line change @@ -70,8 +70,11 @@ class LoggingGrailsPlugin {
7070 if (log4jConfig) {
7171 def props = log4jConfig. toProperties(' log4j' )
7272 log. info " Updating Log4j configuration.."
73- new File (" ./web-app/WEB-INF/classes/log4j.properties" ). withOutputStream {out ->
74- props. store(out, " Grails' Log4j Configuration" )
73+ def resourcesDir = System . getProperty(GrailsApplication . PROJECT_RESOURCES_DIR )
74+ if (resourcesDir) {
75+ new File (" $resourcesDir /log4j.properties" ). withOutputStream {out ->
76+ props. store(out, " Grails' Log4j Configuration" )
77+ }
7578 }
7679 }
7780 }
You can’t perform that action at this time.
0 commit comments