Sha256: 0c84f600e5e2c89b598a6bdd823dd3f83f91cb23a0463ef2b6d58b1beb323db2
Contents?: true
Size: 852 Bytes
Versions: 14
Compression:
Stored size: 852 Bytes
Contents
After do # Truncate the test file File.open(File.expand_path("../../fixtures/test.groovy", __FILE__), "w") #recreate the classpath file File.open(File.expand_path("../../fixtures/.redcar/classpath.groovy", __FILE__), "w") 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 return classpath.toArray() CONFIG end end
Version data entries
14 entries across 14 versions & 2 rubygems