Skip to content

Instantly share code, notes, and snippets.

public class KillFinally {
public static void main(String[] args) {
Runtime.getRuntime().addShutdownHook(new Thread(){
public void run(){
System.out.println("shutdown");
}
});
try {
Thread.sleep(40000);
}
$ ruby version.rb
1 = 1 : true
1-SNAPSHOT = 1-SNAPSHOT : true
1 < 2 : true
1-SNAPSHOT < 2-SNAPSHOT : true
1.5 < 2 : true
1.5-SNAPSHOT < 2-SNAPSHOT : true
1 < 2.5 : true
1-SNAPSHOT < 2.5-SNAPSHOT : true
1 = 1.0 : true
module Maven
module Org
module Apache
module Avalon
module Framework
module AvalonFrameworkApi
VERSION = '4.3.1'
MAVEN_VERSION = '4.3.1'
MAVEN_ARTIFACT_ID = 'avalon-framework-api'
MAVEN_GROUP_ID = 'org.apache.avalon.framework'
.
|-- cache
| |-- org.slf4j.slf4j-api-1.5.8-java.gem
| `-- org.slf4j.slf4j-simple-1.5.8-java.gem
|-- doc
|-- gems
| |-- org.slf4j.slf4j-api-1.5.8-java
| | `-- lib
| | `-- maven
| | `-- org.slf4j
--- activerecord-jdbc-adapter-0.9.3-java/lib/active_record/connection_adapters/jdbc_adapter.rb~ 2010-04-03 14:20:10.909805506 +0530
+++ activerecord-jdbc-adapter-0.9.3-java/lib/active_record/connection_adapters/jdbc_adapter.rb 2010-04-03 20:50:20.308164645 +0530
@@ -63,11 +63,13 @@
extend JdbcSpec::ActiveRecordExtensions
- alias :attributes_with_quotes_pre_oracle :attributes_with_quotes
- def attributes_with_quotes(include_primary_key = true, *args) #:nodoc:
- aq = attributes_with_quotes_pre_oracle(include_primary_key, *args)
- if connection.class == ConnectionAdapters::JdbcAdapter && (connection.is_a?(JdbcSpec::Oracle) || connection.is_a?(JdbcSpec::Mimer))
- aq[self.class.primary_key] = "?" if include_primary_key && aq[self.class.primary_key].nil?
package org.codingkata.unit.api;
public interface IKataSolution {
String reply();
}
public class Adapter {
public String name(){
return "god";
}
}
[INFO] (org.hibernate.cfg.annotations.Version) - Hibernate Annotations 3.4.0.GA
[INFO] (org.hibernate.cfg.Environment) - Hibernate 3.3.2.GA
[INFO] (org.hibernate.cfg.Environment) - hibernate.properties not found
[INFO] (org.hibernate.cfg.Environment) - Bytecode provider name : javassist
[INFO] (org.hibernate.cfg.Environment) - using JDK 1.4 java.sql.Timestamp handling
[INFO] (org.hibernate.annotations.common.Version) - Hibernate Commons Annotations 3.1.0.GA
[INFO] (Hibernate) - model/class class ruby.Heffalump registered successfully
[INFO] (org.hibernate.dialect.Dialect) - Using dialect: org.hibernate.dialect.H2Dialect
[INFO] (org.hibernate.cfg.AnnotationBinder) - Binding entity from annotated class: ruby.Heffalump
[INFO] (org.hibernate.cfg.annotations.EntityBinder) - Bind entity ruby.Heffalump on table heffalumps
[INFO] (org.hibernate.cfg.annotations.Version) - Hibernate Annotations 3.4.0.GA
[INFO] (org.hibernate.cfg.Environment) - Hibernate 3.3.2.GA
[INFO] (org.hibernate.cfg.Environment) - hibernate.properties not found
[INFO] (org.hibernate.cfg.Environment) - Bytecode provider name : javassist
[INFO] (org.hibernate.cfg.Environment) - using JDK 1.4 java.sql.Timestamp handling
[INFO] (org.hibernate.annotations.common.Version) - Hibernate Commons Annotations 3.1.0.GA
[INFO] (Hibernate) - model/class class ruby.Heffalump registered successfully
[INFO] (org.hibernate.dialect.Dialect) - Using dialect: org.hibernate.dialect.H2Dialect
[INFO] (org.hibernate.cfg.AnnotationBinder) - Binding entity from annotated class: ruby.Heffalump
[INFO] (org.hibernate.cfg.annotations.EntityBinder) - Bind entity ruby.Heffalump on table heffalumps
$ java -jar ~/.m2/repository/org/jruby/jruby-complete/1.5.0/j
ruby-complete-1.5.0.jar -S jrubyc -t $PWD/target/jrubyc-generated-sources/ -d $PWD/src/main/ruby --java /home/kristian/projects/jruby-maven-plugins/jruby-maven-plugin/src/it/generate-java-and-compile/src/main/ruby
Compiling all in '/home/kristian/projects/jruby-maven-plugins/jruby-maven-plugin/src/it/generate-java-and-compile/src/main/ruby'...
Generating Java class MyReply to /home/kristian/projects/jruby-maven-plugins/jruby-maven-plugin/src/it/generate-java-and-compile/target/jrubyc-generated-sources/com/otherexample/MyReply.java
or
$ java -jar ~/.m2/repository/org/jruby/jruby-complete/1.5.0/j
ruby-complete-1.5.0.jar -S jrubyc -t target/jrubyc-generated-sources/ -d src/main/ruby --java src/main/ruby