Changeset 6050
- Timestamp:
- 11/10/06 20:05:26
- Files:
-
- trunk/README (modified) (2 diffs)
- trunk/Rakefile (modified) (2 diffs)
- trunk/lib/jerbil/hibernate_task.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/README
r6049 r6050 12 12 13 13 This package contains several TaskLibs for Rake which can be 14 used to build Java projects. Jerbil uses RJB[http://raa.ruby-lang.org/project/rjb/] 15 (Ruby-Java-Bridge) to load a Java virtual machine in the ruby process running rake. 14 used to build Java projects. 15 16 Jerbil uses RJB[http://raa.ruby-lang.org/project/rjb/] 17 (Ruby-Java-Bridge) to load a Java virtual machine into Rake. 16 18 17 19 The jvm is then used to compile Java source files, create javadocs etc. 18 It is not a complete replacement for ant (yet), but has some significant advantages as it 19 is easily scriptable. The main focus at the moment are small to medium-sized projects using 20 It is not a complete replacement for ant (yet), but has several advantages such as 21 extremly compact build files and easy scriptability. 22 23 The main focus at the moment are small to medium-sized projects using 20 24 testng[http://testng.org] and hibernate[http://hibernate.org]. 21 25 22 26 == Requirements 23 27 24 Jerbil requires rubygems , rake, rjband JDK 1.5.28 Jerbil requires rubygems[http://rubygems.org], Rake, RJB and JDK 1.5. 25 29 26 30 == Installation … … 51 55 % svn co http://svn.trampolinesystems.com/jerbil/trunk/example 52 56 53 == Advantages over ant57 == Advantages over Ant 54 58 55 Well, it's based on Ruby :) Additionally, RJB allows ruby classesto implement arbitary56 Java interfaces which allows you to extend existing Java code in Ruby, on runtime.59 Well, it's based on Ruby :) Additionally, RJB allows Ruby code to implement arbitary 60 Java interfaces which you can then pass into compiled Java code. 57 61 See Jerbil::TestNG::TestListener for an example. 58 62 trunk/Rakefile
r6047 r6050 7 7 CLEAN.include('pkg') 8 8 WWWROOT = "/var/www/code.trampolinesystems.com/" 9 FILES = FileList['lib/**/*', 'test/*.rb', 'classloader/*', ' COPYING', 'CHANGES', 'README']9 FILES = FileList['lib/**/*', 'test/*.rb', 'classloader/*', 'LICENSE', 'TODO', 'CHANGES', 'README'] 10 10 FULLFILES = FILES.clone.include('buildsupport/**/*', 'example/**/*' ) 11 11 TESTFILES = FileList['test/test_java_helper.rb'] … … 58 58 59 59 Rake::RDocTask.new do |rdoc| 60 rdoc.main = "README"61 60 rdoc.title = "Jerbil" 62 61 rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README' trunk/lib/jerbil/hibernate_task.rb
r6031 r6050 7 7 module Jerbil 8 8 module Hibernate 9 # Generate a sql schema from EJB3-annotated classes. 9 # Generate a sql schema from EJB3/Hibernate-annotated classes using Hibernate's 10 # SchemaExport tool. 10 11 # 11 12 # == Example … … 22 23 attr_accessor :persistencefile 23 24 attr_accessor :dialect 24 25 attr_accessor :preamble 25 26 attr_accessor :package 26 27 … … 32 33 @persistencefile = "persistence.yml" 33 34 @dialect = "org.hibernate.dialect.MySQL5Dialect" 34 35 35 36 yield self if block_given? 36 37 define … … 52 53 53 54 schema = "# -- do not edit ---\n" 54 schema << "# generated by hibernate:export_schemaat #{Time.new}\n\n"55 schema << "# generated by Jerbil::Hibernate::ExportSchemaTask at #{Time.new}\n\n" 55 56 56 schema << "drop database trampomail_development;\n" 57 schema << "create database trampomail_development;\n" 58 schema << "use trampomail_development\n\n" 57 schema << preamble unless preamble.nil? 59 58 60 59 schema << IO.read(schemafile)
