buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lacton <>
Subject [buildr] Java.tools_jar
Date Thu, 11 Sep 2008 20:50:27 GMT
When running 'rake spec', I get the following error.

package com.sun.mirror.apt does not exist
      import com.sun.mirror.apt.AnnotationProcessor;

RuntimeError in 'javac compiler should include tools.jar dependency'

My analysis is:
1. 'java/compilers.rb' tries to add tools.jar to the class path by
adding "Java.tools_jar" to "dependencies".
2. The Java module doesn't have a 'tools_jar' method since revision
693281, so 'Java.method_missing' is called instead and a
Java::Tools_jar package is dynamically created.
3. The CompileTask tries to compile with "javac -classpath
Java::Tools_jar".  This invalid classpath element is ignored and
compilation is done without tools.jar in the compiler classpath.
4. The test case "it 'should include tools.jar dependency'" in
java_compilers_spec.rb fails because tools.jar is missing from the
compiler classpath.

Is it the spec or the code that's wrong?


View raw message