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
pepijnve-ivy4r-0.12.11 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.1.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.2.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.3.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.4.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.5.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.5.1 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.5.2 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.5.3 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.6.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.7.0 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.7.1 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.7.2 lib/ivy/buildlist.rb
klaas1979-ivy4r-0.7.3 lib/ivy/buildlist.rb
ivy4r-0.12.10 lib/ivy/buildlist.rb
ivy4r-0.12.9 lib/ivy/buildlist.rb
ivy4r-0.12.8 lib/ivy/buildlist.rb
ivy4r-0.12.7 lib/ivy/buildlist.rb
ivy4r-0.12.6 lib/ivy/buildlist.rb
ivy4r-0.12.5 lib/ivy/buildlist.rb