Sha256: ed5b71d13a2623324664d3c80b0a7c4114c3cf91498d6e6a9e0df4c36e44920c

Contents?: true

Size: 853 Bytes

Versions: 11

Compression:

Stored size: 853 Bytes

Contents

When /^I add "([^"]*)" to the "([^"]*)" classpath$/ do |dir,plugin|
  File.open(File.expand_path("plugins/#{plugin}/features/fixtures/.redcar/classpath.groovy"), "a") do |f|
    f.puts <<-CONFIG
    def redcar_config = new File(getClass().protectionDomain.codeSource.location.path).parentFile
    def project       = redcar_config.parentFile
    def classpath     = []

    //installed libraries
    def lib = new File(project.path + File.separator + "lib")
    lib.list().each {name -> classpath << lib.path+File.separator+name}

    //compiled classes
    def target_classes = new File(
    	project.path + File.separator +
    	"target"     + File.separator +
    	"classes"
    )

    classpath << target_classes.path

    //other classes
    classpath << project.path + File.separator + "#{dir}"

    return classpath.toArray()
    CONFIG
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
redcar-dev-0.12.9dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.8dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.7dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.6dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.4dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.3dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.1dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-dev-0.12.0dev-java plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-0.11 plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-0.11.0dev plugins/groovy/features/step_definitions/groovy_steps.rb
redcar-0.10 plugins/groovy/features/step_definitions/groovy_steps.rb