Class: Rubylet::GlassfishDescriptorBuilder

Inherits:
Builder::XmlMarkup
  • Object
show all
Extended by:
BuilderAliasTag
Includes:
BuilderDefaults
Defined in:
lib/rubylet/glassfish_descriptor_builder.rb

Instance Method Summary collapse

Methods included from BuilderAliasTag

alias_tag

Constructor Details

#initialize(opts = {}) ⇒ GlassfishDescriptorBuilder



15
16
17
18
19
20
21
# File 'lib/rubylet/glassfish_descriptor_builder.rb', line 15

def initialize(opts = {})
  super(opts)
  @alt_root_count = 0
  declare!(:DOCTYPE, :'glassfish-web-app', :PUBLIC,
           '-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN',
           'http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd')
end

Instance Method Details

#alternate_doc_root!(from, dir) ⇒ Object



23
24
25
26
27
# File 'lib/rubylet/glassfish_descriptor_builder.rb', line 23

def alternate_doc_root!(from, dir)
  @alt_root_count += 1
  property(:name => "alternatedocroot_#{@alt_root_count}",
           :value => "from=#{from} dir=#{dir}")
end