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