bigbluebutton-Github/bigbluebutton-web/grails-app/conf/BuildConfig.groovy
2013-01-18 18:24:35 -05:00

36 lines
1.7 KiB
Groovy
Executable File

/**
* BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
*
* Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation; either version 3.0 of the License, or (at your option) any later
* version.
*
* BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
*
*/
// This closure is to enable logging in production.
// This closure is passed the location of the staging directory that
// is zipped up to make the WAR file, and the command line arguments.
// Here we copy over oug log4j.properties file while the web.xml is
// overridden from what's in src/templates/war/web.xml.
// (ralam, jan 7, 2010)
grails.war.resources = {stagingDir, args ->
//println '*** Copying our custom web.xml and log4j.properties as workaround for logging problem. ***'
//println '*** Copying our custom web.xml as workaround for logging problem. ***'
//copy(file: "grails-app/conf/custom-web.xml", tofile: "${stagingDir}/WEB-INF/web.xml")
println '*** Copying our custom log4j.properties as workaround for logging problem. ***'
copy(file: "grails-app/conf/log4j.properties", tofile: "${stagingDir}/WEB-INF/classes/log4j.properties")
}