Class: Source::War::Factory
Constant Summary
Base::Factory::GLOB_REGEXP
Instance Attribute Summary
#directory
#options
Instance Method Summary
collapse
#files_provider
included
Constructor Details
#initialize(warfile, options = {}) ⇒ Factory
Returns a new instance of Factory.
34
35
36
37
38
|
# File 'lib/gpm/source/war.rb', line 34
def initialize(warfile, options={})
@warfile = File.expand_path(warfile)
@effective_pom_file_reader = effective_pom_file_reader_class.new(@warfile, options)
super(File.dirname(@warfile),options)
end
|
Instance Method Details
44
45
46
|
# File 'lib/gpm/source/war.rb', line 44
def create
Maven.new(files_provider,options,@effective_pom_file_reader)
end
|
#effective_pom_file_reader_class ⇒ Object
40
41
42
|
# File 'lib/gpm/source/war.rb', line 40
def effective_pom_file_reader_class
PomFromWarFileReader
end
|
#files_providers ⇒ Object
48
49
50
|
# File 'lib/gpm/source/war.rb', line 48
def files_providers
super + [FilesFromDirectoryProvider.new(directory, [File.basename(@warfile)])]
end
|