class Maven::Gwt::Layout

Public Class Methods

new( dir = '.' ) click to toggle source
# File lib/maven/gwt/layout.rb, line 25
def initialize( dir = '.' )
  @dir = dir
end

Public Instance Methods

find_gwt_xml( path = java_root ) click to toggle source
# File lib/maven/gwt/layout.rb, line 37
def find_gwt_xml( path = java_root )
  Dir[ File.join( path, "*" ) ].each do |path|
    if File.directory?( path )
      result = find_gwt_xml( path )
      return result if result
    elsif File.file?( path )
      return path if (path =~ /.gwt.xml$/) && ! (path =~ /Development.gwt.xml$/)
    end
  end
  nil
end
java_root() click to toggle source
# File lib/maven/gwt/layout.rb, line 29
def java_root
  @java_root ||= File.join( @dir, 'src', 'main', 'java' )
end
public_dir() click to toggle source
# File lib/maven/gwt/layout.rb, line 33
def public_dir
  @public_dir ||= File.join( @dir, 'public' )
end