Sha256: 3abf62ee2270686b3ae4358370a6ae7076b6c7ef1d4e27146d98f42f90b74fbd

Contents?: true

Size: 836 Bytes

Versions: 38

Compression:

Stored size: 836 Bytes

Contents

After do
  # Truncate the test file
  File.open(File.expand_path("../../fixtures/test.java", __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

38 entries across 38 versions & 2 rubygems

Version Path
redcar-0.13 plugins/java/features/support/env.rb
redcar-dev-0.13.5dev plugins/java/features/support/env.rb
redcar-dev-0.13.4dev plugins/java/features/support/env.rb
redcar-dev-0.13.3dev plugins/java/features/support/env.rb
redcar-dev-0.13.2dev plugins/java/features/support/env.rb
redcar-dev-0.13.1dev plugins/java/features/support/env.rb
redcar-0.12.1 plugins/java/features/support/env.rb
redcar-dev-0.13.0dev plugins/java/features/support/env.rb
redcar-0.12 plugins/java/features/support/env.rb
redcar-dev-0.12.27dev plugins/java/features/support/env.rb
redcar-dev-0.12.26dev plugins/java/features/support/env.rb
redcar-dev-0.12.25dev plugins/java/features/support/env.rb
redcar-dev-0.12.24dev plugins/java/features/support/env.rb
redcar-dev-0.12.23dev plugins/java/features/support/env.rb
redcar-dev-0.12.22dev plugins/java/features/support/env.rb
redcar-dev-0.12.21dev plugins/java/features/support/env.rb
redcar-dev-0.12.20dev plugins/java/features/support/env.rb
redcar-dev-0.12.19dev plugins/java/features/support/env.rb
redcar-dev-0.12.18dev plugins/java/features/support/env.rb
redcar-dev-0.12.17dev plugins/java/features/support/env.rb