launcher/launcher_init.rb
Rama master · réplica de lectura del repositorio original.
require 'java'
require 'rubygems'
require 'config/config-distribution'
def init
base = (ENV['ASPACE_LAUNCHER_BASE'] || File.expand_path(File.join(File.dirname(__FILE__), "..")))
java.lang.System.set_property("ASPACE_LAUNCHER_BASE", base)
AppConfig.reload
if !AppConfig.changed?(:data_directory)
# If the user hasn't specified a directory, write to data/
#
# Set this as a system property to ensure it propagates to the webapps too.
java.lang.System.set_property("aspace.config.data_directory",
File.realpath(File.join(File.dirname(__FILE__), "..", "data")))
AppConfig.reload
end
end
init