Pindah build issue re: taskdef class org.mirah.ant.Compile cannot be found

67 views
Skip to first unread message

Andy Glover

unread,
Nov 5, 2012, 11:06:06 AM11/5/12
to The Mirah Programming Language
I am trying to get build a Pindah app, however, I'm having a hard time
getting rake to work. I had an earlier issue w/r to obsolete
build.xml, which I found the answer to install the Pindah gem
directly. Now that I've done that, I get a 'taskdef class
org.mirah.ant.Compile cannot be found' error. My gems are:

*** LOCAL GEMS ***

bitescript (0.1.0)
bouncy-castle-java (1.5.0146.1)
bundler (1.2.1 ruby)
jruby-launcher (1.0.15 java)
jruby-openssl (0.7.7)
mirah (0.1.0.pre java)
pindah (0.1.3.dev)
rake (0.9.2.2, 0.8.7)
rubygems-bundler (1.1.0)
rvm (1.11.3.5)
sources (0.0.1)

And when I try to execute rake, here is what I get:

$> rake -T
rake aborted!
org.apache.tools.ant.BuildException: taskdef class
org.mirah.ant.Compile cannot be found
using the classloader AntClassLoader[]

Running w/--trace clearly shows that Ant can't find a corresponding
class containing the Compile task. I was using bundler and thought
maybe that was causing classpath issues, but w/o bundler I have the
same issue. Thoughts?

Here is my JRuby info too:

$>jruby -v
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_37) [darwin-x86_64-java]

Thanks!
-Andy

Nick Howard

unread,
Nov 8, 2012, 5:24:06 PM11/8/12
to mi...@googlegroups.com
Thanks for reporting the issue. Someone else had run into that as well and filed a bug. 

https://github.com/mirah/mirah/issues/194

This afternoon ribrdb commited a fix for it. 

In the mean time, you can revert back to 0.0.12 of the mirah gem. That should get the project building again.

Andy Glover

unread,
Nov 9, 2012, 11:14:21 AM11/9/12
to The Mirah Programming Language
That worked!

$ jruby -S bundle update mirah
Fetching gem metadata from http://rubygems.org/..........
Using rake (0.9.2.2)
Using bitescript (0.1.0)
Using mirah (0.0.12)
Using pindah (0.1.3.dev) from git://github.com/mirah/pindah.git (at
master)
Using bundler (1.2.1)
Your bundle is updated! Use `bundle show [gemname]` to see where a
bundled gem is installed.

$ jruby -S bundle exec rake -T
rake clean # Removes output files created by other
targets.
rake debug # Builds the application and signs it with a
debug key.
rake install # Installs the newly build package.
rake javac # Compiles R.java and other gen/ files.
rake logcat # Tail logs from a device or a device or
emulator
rake release # Builds the application in release mode.
rake release_unsigned # Builds the application in release mode.
rake spec # Print the project spec
rake uninstall # Uninstalls the application from a running
emulator or device.
Reply all
Reply to author
Forward
0 new messages