/[freeride]/freeride/freebase/plugin.rb
ViewVC logotype

Diff of /freeride/freebase/plugin.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by richkilmer, Wed Feb 6 03:24:38 2002 UTC revision 1.2 by richkilmer, Tue Feb 12 03:43:56 2002 UTC
# Line 23  module FreeBASE Line 23  module FreeBASE
23    #    #
24    class Plugin    class Plugin
25            
26      attr_reader :name, :version, :require_file, :startup_module      attr_reader :name, :version, :require_file, :startup_module, :resource_path
27            
28      #transition definitions      #transition definitions
29      FAILURE_TRANSITIONS =      FAILURE_TRANSITIONS =
# Line 280  module FreeBASE Line 280  module FreeBASE
280            
281      def parse_xml      def parse_xml
282        file = File.new(@plugin_file)        file = File.new(@plugin_file)
283        xml =REXML::Document.new file        xml = REXML::Document.new file
284        file.close        file.close
285        @name = xml.root.attributes["name"]        @name = xml.root.attributes["name"]
286        @version = xml.root.attributes["version"]        @version = xml.root.attributes["version"]
287        @autoload = xml.root.attributes["autoload"]=="true" ? true : false        @autoload = xml.root.attributes["autoload"]=="true" ? true : false
288        @require_file = xml.root.elements["require"].text        @require_file = xml.root.elements["require"].text
289        @startup_module = xml.root.elements["module"].text        @startup_module = xml.root.elements["module"].text
290          if xml.root.elements["resourcePath"]
291            @resource_path = xml.root.elements["resourcePath"].text
292          end
293        if xml.root.elements["properties"]        if xml.root.elements["properties"]
294          @properties_file = xml.root.elements["properties"].text          @properties_file = xml.root.elements["properties"].text
295        end        end

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26