132 |
# |
# |
133 |
def load_plugins |
def load_plugins |
134 |
@properties["config/plugin_path"].split(";").each do |path| |
@properties["config/plugin_path"].split(";").each do |path| |
135 |
Dir.foreach(path) do |dir| |
Dir.foreach(path) do |file| |
136 |
if dir!=".." and dir!="." and File.stat("#{path}/#{dir}").directory? |
if file!=".." and file!="." and File.stat("#{path}/#{file}").directory? |
137 |
filespec = "#{path}/#{dir}/plugin.xml" |
filespec = "#{path}/#{file}/plugin.xml" |
138 |
next unless File.exist?(filespec) |
next unless File.exist?(filespec) |
139 |
plugin = FreeBASE::Plugin.new(self, filespec) |
FreeBASE::Plugin.new(self, filespec) |
140 |
|
elsif file[-4..-1]==".xml" and !File.stat("#{path}/#{file}").directory? |
141 |
|
filespec = "#{path}/#{file}" |
142 |
|
FreeBASE::Plugin.new(self, filespec) |
143 |
end |
end |
144 |
end |
end |
145 |
end |
end |