Allow rake tasks to use the REDMINE_ROOT environment also
This commit is contained in:
1 parent
6f42cda5ca
commit
f7c2816e13
1 file changed
+5
-2
@@ -8,8 +8,11 @@ Dir[File.expand_path(File.dirname(__FILE__)) + "/lib/tasks/**/*.rake"].sort.each
|
|||||||
|
|
||||||
# Modifided from the RSpec on Rails plugins
|
# Modifided from the RSpec on Rails plugins
|
||||||
PLUGIN_ROOT = File.expand_path(File.dirname(__FILE__))
|
PLUGIN_ROOT = File.expand_path(File.dirname(__FILE__))
|
||||||
REDMINE_APP = File.expand_path(File.dirname(__FILE__) + '/../../../app')
|
|
||||||
REDMINE_LIB = File.expand_path(File.dirname(__FILE__) + '/../../../lib')
|
# Allows loading of an environment config based on the environment
|
||||||
|
REDMINE_ROOT = ENV["REDMINE_ROOT"] || File.dirname(__FILE__) + "/../../../.."
|
||||||
|
REDMINE_APP = File.expand_path(REDMINE_ROOT + '/app')
|
||||||
|
REDMINE_LIB = File.expand_path(REDMINE_ROOT + '/lib')
|
||||||
|
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require 'rake/clean'
|
require 'rake/clean'
|
||||||
|
|||||||
Reference in new issue
Block a user