Skip to content

Instantly share code, notes, and snippets.

bash-3.2$ ant clean test
Buildfile: build.xml
init:
clean:
[delete] Deleting directory /Users/pldms/Development/CVS-Other/jruby/build
[delete] Deleting directory /Users/pldms/Development/CVS-Other/jruby/docs/api
[delete] Deleting directory /Users/pldms/Development/CVS-Other/jruby/src_gen
Given
a subclass of b
b subclass of c
* If <x,y> is in IEXT(I(rdfs:subClassOf)) then x and y are in IC and ICEXT(x) is a subset of ICEXT(y)
hence extension(a) subset of extension(b)
similarly extension(b) subset of extension(c)
Compiled from "SampleTask.rb"
public class SampleTask extends org.jruby.ast.executable.AbstractScript{
public SampleTask();
public static org.jruby.runtime.builtin.IRubyObject __file__(SampleTask, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
public org.jruby.runtime.builtin.IRubyObject __file__(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
public static org.jruby.runtime.builtin.IRubyObject class_0$RUBY$SampleTask(SampleTask, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
public static org.jruby.runtime.builtin.IRubyObject method__1$RUBY$execute(SampleTask, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
public static org.jruby.runtime.builtin.IRubyObject method__1$RUBY$execute(SampleTask, org.jruby.run
pldms@snowball:/tmp/ant-jruby$ jruby -S gem install bitescript
pldms@snowball:/tmp/ant-jruby$ cat file.rb
require "java"
require "lib/ant.jar"
include_class "org.apache.tools.ant.Task"
class SampleTask < Task
def execute
puts "Hello from SampleTask!"
require 'java'
begin
java.lang.System.out.println(nil)
rescue java.lang.NullPointerException => e
puts "Got you! #{e}"
end
$ curl -H 'Accept: text/plain' 'http://rdf-in-html.appspot.com/translate?uri=http://www.cmlenz.net/archives/2009/12/namespaces&parser=HTML'
# Produced by java-rdfa 0.2.1
# Origin: <http://www.cmlenz.net/archives/2009/12/namespaces>
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#icon> <http://www.cmlenz.net/favicon.ico> .
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#icon> <http://www.cmlenz.net/favicon.ico> .
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#stylesheet> <http://www.cmlenz.net/media/style/layout.css> .
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#stylesheet> <http://www.cmlenz.net/media/style/print.css> .
$ ./GET-rdfa 'http://localhost:8080/resources/bookmark'
Content-type: text/html
<h1>Software error:</h1>
<pre>HTTP response code was not 200 OK. (Set $opts{ignore_http_response_code} to ignore this error.) at ./GET-rdfa line 24
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
$ make
make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
make[1]: Entering directory `/tmp/jruby-launcher'
make -f inc/Makefile-rules.mk jruby
make[2]: Entering directory `/tmp/jruby-launcher'
mkdir -p build/unix/Linux
rm -f build/unix/Linux/argparser.o.d
g++ -O2 -Wall -c argparser.cpp -MMD -MP -MF build/unix/Linux/argparser.o.d -o build/unix/Linux/argparser.o
argparser.cpp: In member function ‘bool ArgParser::initPlatformDir()’:
argparser.cpp:155: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result
$ make
make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
make[1]: Entering directory `/tmp/jruby-launcher'
make -f inc/Makefile-rules.mk jruby
make[2]: Entering directory `/tmp/jruby-launcher'
mkdir -p build/unix/Linux
rm -f build/unix/Linux/argparser.o.d
g++ -O2 -Wall -c argparser.cpp -MMD -MP -MF build/unix/Linux/argparser.o.d -o build/unix/Linux/argparser.o
argparser.cpp: In member function ‘bool ArgParser::initPlatformDir()’:
argparser.cpp:156: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result
$ make
make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
make[1]: Entering directory `/tmp/jruby-launcher'
make -f inc/Makefile-rules.mk jruby
make[2]: Entering directory `/tmp/jruby-launcher'
mkdir -p build/unix/Linux
rm -f build/unix/Linux/argparser.o.d
g++ -O2 -Wall -c argparser.cpp -MMD -MP -MF build/unix/Linux/argparser.o.d -o build/unix/Linux/argparser.o
argparser.cpp: In member function ‘bool ArgParser::initPlatformDir()’:
argparser.cpp:156: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result