lib/buildr_plus/features/gwt.rb
#
# Used when you want to co-evolve two gwt libraries, one of which is in a different
# project. If this was not available then you would be forced to restart superdev mode
# each time the dependency was updated which can be painful.
#
# Add something like this into user-experience to achieve it.
#
# expand_dependency(Buildr.artifacts(BuildrPlus::Libs.replicant_gwt_client).select{|a|a.group == 'org.realityforge.replicant'})
#
Used when you want to co-evolve two gwt libraries, one of which is in a different
project. If this was not available then you would be forced to restart superdev mode
each time the dependency was updated which can be painful.

Add something like this into user-experience to achieve it.


Used when you want to co - evolve two gwt libraries one of which is in a different project . If this was not available then you would be forced to restart superdev mode each time the dependency was updated which can be painful . Add something like this into user - experience to achieve it .
def expand_dependency(artifacts)
      project.compile.dependencies = Buildr.artifacts(project.compile.dependencies)
      Buildr.artifacts([artifacts]).each do |artifact|
        key = artifact.group + '_' + artifact.id
        target_directory = _(:target, :generated, 'deps', key)
        t = task(target_directory => [artifact]) do
          rm_rf target_directory
          unzip(target_directory => artifact).target.invoke
          rm_f Dir["#{target_directory}/**/*.class"]
        end
        project.iml.main_generated_source_directories << target_directory
        project.compile.from(target_directory)
        project.compile.dependencies.delete_if{|a| a.to_s == artifact.to_s}
        project.root_project.pmd.exclude_paths << target_directory
        desc 'Expand all GWT deps so they are accessible to GWT compiler'
        expand_task = task('gwt:expand_deps').enhance([t.name])
        project.compile.enhance([expand_task.name])
        task(':domgen:all').enhance([expand_task.name])
      end
    end
def expand_dependency ( artifacts ) project . compile . dependencies = Buildr . artifacts ( project . compile . dependencies ) Buildr . artifacts ( [ artifacts ] ) . each do | artifact | key = artifact . group + '_' + artifact . id target_directory = _ ( :target , :generated , 'deps' , key ) t = task ( target_directory => [ artifact ] ) do rm_rf target_directory unzip ( target_directory => artifact ) . target . invoke rm_f Dir [ "#{target_directory}/**/*.class" ] end project . iml . main_generated_source_directories << target_directory project . compile . from ( target_directory ) project . compile . dependencies . delete_if { | a | a . to_s == artifact . to_s } project . root_project . pmd . exclude_paths << target_directory desc 'Expand all GWT deps so they are accessible to GWT compiler' expand_task = task ( 'gwt:expand_deps' ) . enhance ( [ t . name ] ) project . compile . enhance ( [ expand_task . name ] ) task ( ':domgen:all' ) . enhance ( [ expand_task . name ] ) end end
Used when you want to co-evolve two gwt libraries, one of which is in a different
project.
Used when you want to co - evolve two gwt libraries one of which is in a different project .
artifacts