Sha256: a06c82e8e0e81f548a3c453c15a64ecb0f870afc08e78fbf073b4c285fbbbfd4

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

module Maven
  module Gwt
    class Layout

      def initialize( dir = '.' )
        @dir = dir
      end
      
      def java_root
        @java_root ||= File.join( @dir, 'src', 'main', 'java' )
      end
      
      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
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gwt-run-0.1.0 lib/maven/gwt/layout.rb~