Class: Buildr::Layout::Default

Inherits:
Buildr::Layout show all
Defined in:
lib/buildr/core/project.rb

Overview

Default layout has the following properties:

  • :source maps to the ‘src’ directory.

  • Anything under :source maps verbatim (e.g. :source, :main becomes ‘src/main’)

  • :target maps to the ‘target’ directory.

  • :target, :main maps to the ‘target’ directory as well.

  • Anything under :target, :main maps verbatim (e.g. :target, :main, :classes becomes ‘target/classes’)

  • Anything else under :target also maps verbatim (e.g. :target, :test becomes ‘target/test’)

Instance Method Summary collapse

Methods inherited from Buildr::Layout

#[], #[]=, #expand, #initialize_copy

Constructor Details

#initializeDefault

Returns a new instance of Default.



96
97
98
99
100
# File 'lib/buildr/core/project.rb', line 96

def initialize
  super
  self[:source] = 'src'
  self[:target, :main] = 'target'
end