# 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 %>",<% 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
