All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gins.jruby-rake-plugin.1.7.23.source-code.classpath.erb Maven / Gradle / Ivy

The newest version!
# This file generated by org.jruby.plugins:jruby-rake-plugin.
# To regenerate, execute this command in your maven-based project:
#
# mvn org.jruby.plugins:jruby-rake-plugin:<%= maven["version"] %>:classpath<%= maven["options"] ? maven["options"] : '' %>


module Maven
  extend self
  BASEDIR = File.expand_path(<%= basedir.inspect %>, __FILE__)

  OPTIONS = {
    "scope" => <%= maven["scope"].inspect %>,
    "version" => <%= maven["version"].inspect %>,
    "classpath" => <%= maven["classpath"].inspect.gsub('\\#{', '#{') %>
  }

  CLASSPATH = [<% classpath.each do |path| %>
    "<%= path.gsub(/\\/, "\\" * 4) %>",<% end %>
  ]

  def classpath
    CLASSPATH
  end

  def jar_files
    CLASSPATH.select {|p| p =~ /\.jar$/ }
  end

  def set_classpath
    require 'java'
    classpath.each {|p| $CLASSPATH << p }
  end
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy