Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ant integration DSL issue #601

Closed
isaiah opened this issue Mar 24, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@isaiah
Copy link
Contributor

commented Mar 24, 2013

Rake task definition like this:

task :compile => "pkg/classes" do |t|
  ant.javac :srcdir => "java", :destdir => t.prerequisites.first,
    :source => "1.7", :target => "1.7", :debug => true
end

aborts with the following exception:

no method 'setAttribute' for arguments (org.jruby.RubySymbol,org.jruby.RubyString) on Java::OrgApacheToolsAnt::RuntimeConfigurable
  available overloads:
    (java.lang.String,java.lang.Object)
    (java.lang.String,java.lang.String)

This is because when the parameters are passed to ant, the key is passed as it is, which should be converted to String instead.

@enebo enebo closed this in 80a67f0 Apr 4, 2013

enebo added a commit that referenced this issue Apr 4, 2013

Merge pull request #604 from isaiah/gh-601
ant DSL should support parameter hash with symbol keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.