Sha256: 30a470edff3357aa7e5fecb4f5daf8d3d886ca597be7273b5f47171673f20157

Contents?: true

Size: 1.15 KB

Versions: 60

Compression:

Stored size: 1.15 KB

Contents

require 'ivy/target'

module Ivy
  class Buildlist < Ivy::Target
    def parameter
      [
        Parameter.new(:reference, false),
        Parameter.new(:nested, true),
        Parameter.new(:ivyfilepath, false),
        Parameter.new(:root, false),
        Parameter.new(:excluderoot, false),
        Parameter.new(:leaf, false),
        Parameter.new(:onlydirectdep, false),
        Parameter.new(:delimiter, false),
        Parameter.new(:excludeleaf, false),
        Parameter.new(:haltonerror, false),
        Parameter.new(:skipbuildwithoutivy, false),
        Parameter.new(:onMissingDescriptor, false),
        Parameter.new(:reverse, false),
        Parameter.new(:restartFrom, false),
        Parameter.new(:settingsRef, false)
      ]
    end

    protected
    def execute_ivy
      params[:reference] = "path-#{rand.to_s}" unless params[:reference]
      call_nested :ivy_buildlist => params
    end

    def create_return_values
      path = ant_references.find { |current| params[:reference] == current[0] }[1]
      raise "Could not get path for params #{params.inspect}" unless path && path.respond_to?(:list)
      path.list.map {|a| a.to_s }
    end
  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
ivy4r-0.12.4 lib/ivy/buildlist.rb
ivy4r-0.12.3 lib/ivy/buildlist.rb
ivy4r-0.12.2 lib/ivy/buildlist.rb
ivy4r-0.12.1 lib/ivy/buildlist.rb
ivy4r-0.12.0 lib/ivy/buildlist.rb
ivy4r-0.11.1 lib/ivy/buildlist.rb
ivy4r-0.11.0 lib/ivy/buildlist.rb
ivy4r-0.10.5 lib/ivy/buildlist.rb
ivy4r-0.10.4 lib/ivy/buildlist.rb
ivy4r-0.10.3 lib/ivy/buildlist.rb
ivy4r-0.10.2 lib/ivy/buildlist.rb
ivy4r-0.10.1 lib/ivy/buildlist.rb
ivy4r-0.10.0 lib/ivy/buildlist.rb
ivy4r-0.9.15 lib/ivy/buildlist.rb
ivy4r-0.9.14 lib/ivy/buildlist.rb
ivy4r-0.9.13 lib/ivy/buildlist.rb
ivy4r-0.9.12 lib/ivy/buildlist.rb
ivy4r-0.9.11 lib/ivy/buildlist.rb
ivy4r-0.9.10 lib/ivy/buildlist.rb
ivy4r-0.9.9 lib/ivy/buildlist.rb