Skip to content

Instantly share code, notes, and snippets.

@stuarthalloway
Created December 18, 2011 12:40
Show Gist options
  • Save stuarthalloway/1493277 to your computer and use it in GitHub Desktop.
Save stuarthalloway/1493277 to your computer and use it in GitHub Desktop.
JRuby "ant test" on Ubuntu
Buildfile: build.xml
init:
prepare-bin-jruby:
jar:
init:
create-dirs:
[mkdir] Created dir: /repos/jruby/build
[mkdir] Created dir: /repos/jruby/build/classes
[mkdir] Created dir: /repos/jruby/build/classes/jruby
[mkdir] Created dir: /repos/jruby/build/classes/test
[mkdir] Created dir: /repos/jruby/build/test-results
[mkdir] Created dir: /repos/jruby/build/test-results/html
[mkdir] Created dir: /repos/jruby/docs/api
copy-resources:
[copy] Copying 34 files to /repos/jruby/build/classes/jruby
update-constants:
[echo] Updating Constants.java
[echo] ...using git revision = 684fa5b, tzdata = 2010k
[copy] Warning: Could not find file /repos/jruby/src_gen/org/jruby/runtime/Constants.java to copy.
[copy] Copying 1 file to /repos/jruby/src_gen/org/jruby/runtime
_uc_internal_:
[copy] Copying 1 file to /repos/jruby/src_gen/org/jruby/runtime
[javac] Compiling 1 source file to /repos/jruby/build/classes/jruby
prepare:
compile-annotation-binder:
[javac] Compiling 18 source files to /repos/jruby/build/classes/jruby
compile-jruby:
[apt] Since compiler setting isn't classic or modern,ignoring fork setting.
[apt] Compiling 1193 source files to /repos/jruby/build/classes/jruby
[apt] Since compiler setting isn't classic or modern,ignoring fork setting.
[apt] warning: Annotation types without processors: [java.lang.SuppressWarnings, java.lang.Override, java.lang.Deprecated, org.jruby.anno.JRubyModule, java.lang.annotation.Retention, java.lang.annotation.Target, org.jruby.compiler.ir.Interp, org.jruby.anno.JRubyConstant, jnr.ffi.annotations.In, jnr.ffi.annotations.Transient, jnr.ffi.annotations.Out]
[apt] 1 warning
[apt] /repos/jruby/src/org/jruby/ext/tempfile/Tempfile.java:41: warning: [deprecation] org.jruby.RubyTempfile in org.jruby has been deprecated
[apt] import org.jruby.RubyTempfile;
[apt] ^
[apt] /repos/jruby/src/org/jruby/ext/tempfile/Tempfile.java:62: warning: [deprecation] org.jruby.RubyTempfile in org.jruby has been deprecated
[apt] public class Tempfile extends RubyTempfile {
[apt] ^
[apt] /repos/jruby/src/org/jruby/RubyString.java:889: warning: [deprecation] replace(byte[]) in org.jruby.util.ByteList has been deprecated
[apt] value.replace(bytes);
[apt] ^
[apt] /repos/jruby/src/org/jruby/util/io/SelectBlob.java:164: warning: [deprecation] writeDataBuffered() in org.jruby.RubyIO has been deprecated
[apt] if (ioObj.writeDataBuffered()) {
[apt] ^
[apt] Note: Some input files use unchecked or unsafe operations.
[apt] Note: Recompile with -Xlint:unchecked for details.
[apt] 4 warnings
emma:
instrument:
generate-method-classes:
_gmc_internal_:
[echo] Generating invokers...
[echo] Compiling populators...
[javac] Compiling 193 source files to /repos/jruby/build/classes/jruby
[delete] Deleting: /repos/jruby/src_gen/annotated_classes.txt
generate-unsafe:
_gu_internal_:
[echo] Generating Unsafe impl...
compile:
unzip-native-libs:
[unzip] Expanding: /repos/jruby/build_lib/jffi-Darwin.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-i386-FreeBSD.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-i386-Linux.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-i386-OpenBSD.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-i386-SunOS.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-i386-Windows.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-ppc-AIX.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-ppc-Linux.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-ppc64-Linux.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-s390x-Linux.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-sparc-SunOS.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-sparcv9-SunOS.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-x86_64-FreeBSD.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-x86_64-Linux.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-x86_64-OpenBSD.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-x86_64-SunOS.jar into /repos/jruby/lib/native
[unzip] Expanding: /repos/jruby/build_lib/jffi-x86_64-Windows.jar into /repos/jruby/lib/native
jar-jruby:
[jar] Building jar: /repos/jruby/lib/jruby.jar
add-emma-jars:
compile-test:
[javac] Compiling 169 source files to /repos/jruby/build/classes/test
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
copy-test-files:
[copy] Copying 18 files to /repos/jruby/build/classes/test
install-dev-gems:
[java] Gem.ruby /repos/jruby/bin/jruby
[java] Gem.bindir lib/ruby/gems/1.8/bin
[java] ERROR: While executing gem ... (Gem::InstallError)
[java] gem "rake" is not installed
[java] Java Result: 1
[java] Successfully installed rake-0.9.2.2
[java] Successfully installed rspec-core-2.7.0
[java] Successfully installed diff-lcs-1.1.3
[java] Successfully installed rspec-expectations-2.7.0
[java] Successfully installed rspec-mocks-2.7.0
[java] Successfully installed rspec-2.7.0
[java] Depending on your version of ruby, you may need to install ruby rdoc/ri data:
[java]
[java] <= 1.8.6 : unsupported
[java] = 1.8.7 : gem install rdoc-data; rdoc-data --install
[java] = 1.9.1 : gem install rdoc-data; rdoc-data --install
[java] >= 1.9.2 : nothing to do! Yay!
[java] Successfully installed json-1.6.3-java
[java] Successfully installed rdoc-3.12
[java] 8 gems installed
install-jruby-launcher-gem:
[java] ERROR: While executing gem ... (Gem::InstallError)
[java] gem "jruby-launcher" is not installed
[java] Java Result: 1
[java] Building native extensions. This could take a while...
[java] Successfully installed jruby-launcher-1.0.9-java
[java] 1 gem installed
install-gems:
run-junit-interpreted-short:
[echo] compile=OFF, jit.threshold=20, jit.maxsize=1000000000, jit.max=-1, objectspace=false threadpool=false reflection=false version=ruby1_8
BUILD FAILED
/repos/jruby/build.xml:901: The following error occurred while executing this line:
/repos/jruby/build.xml:1022: The following error occurred while executing this line:
/repos/jruby/build.xml:964: taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found
Total time: 48 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment