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

Version Path
redcar-dev-0.12.9dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.8dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.7dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.6dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.4dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.3dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.1dev-java plugins/groovy/features/support/env.rb
redcar-dev-0.12.0dev-java plugins/groovy/features/support/env.rb
redcar-0.11 plugins/groovy/features/support/env.rb
redcar-0.11.0dev plugins/groovy/features/support/env.rb
redcar-0.10 plugins/groovy/features/support/env.rb
redcar-0.9.2 plugins/groovy/features/support/env.rb
redcar-0.9.1 plugins/groovy/features/support/env.rb
redcar-0.9.0 plugins/groovy/features/support/env.rb