Changeset 6050

Show
Ignore:
Timestamp:
11/10/06 20:05:26
Author:
jan
Message:

barf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r6049 r6050  
    1212  
    1313This 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. 
     14used to build Java projects.  
     15 
     16Jerbil uses RJB[http://raa.ruby-lang.org/project/rjb/] 
     17(Ruby-Java-Bridge) to load a Java virtual machine into Rake. 
    1618 
    1719The 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  
     20It is not a complete replacement for ant (yet), but has several advantages such as 
     21extremly compact build files and easy scriptability.  
     22 
     23The main focus at the moment are small to medium-sized projects using  
    2024testng[http://testng.org] and hibernate[http://hibernate.org]. 
    2125 
    2226== Requirements 
    2327 
    24 Jerbil requires rubygems, rake, rjb and JDK 1.5.  
     28Jerbil requires rubygems[http://rubygems.org], Rake, RJB and JDK 1.5.  
    2529 
    2630== Installation 
     
    5155  % svn co http://svn.trampolinesystems.com/jerbil/trunk/example 
    5256 
    53 == Advantages over ant 
     57== Advantages over Ant 
    5458 
    55 Well, it's based on Ruby :) Additionally, RJB allows ruby classes to implement arbitary 
    56 Java interfaces which allows you to extend existing Java code in Ruby, on runtime. 
     59Well, it's based on Ruby :) Additionally, RJB allows Ruby code to implement arbitary 
     60Java interfaces which you can then pass into compiled Java code.   
    5761See Jerbil::TestNG::TestListener for an example. 
    5862 
  • trunk/Rakefile

    r6047 r6050  
    77CLEAN.include('pkg') 
    88WWWROOT   = "/var/www/code.trampolinesystems.com/" 
    9 FILES     = FileList['lib/**/*', 'test/*.rb', 'classloader/*', 'COPYING', 'CHANGES', 'README'] 
     9FILES     = FileList['lib/**/*', 'test/*.rb', 'classloader/*', 'LICENSE', 'TODO', 'CHANGES', 'README'] 
    1010FULLFILES = FILES.clone.include('buildsupport/**/*', 'example/**/*' ) 
    1111TESTFILES = FileList['test/test_java_helper.rb'] 
     
    5858 
    5959Rake::RDocTask.new do |rdoc| 
    60   rdoc.main = "README" 
    6160  rdoc.title    = "Jerbil" 
    6261  rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README' 
  • trunk/lib/jerbil/hibernate_task.rb

    r6031 r6050  
    77module Jerbil  
    88  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. 
    1011    # 
    1112    # == Example 
     
    2223      attr_accessor :persistencefile 
    2324      attr_accessor :dialect 
    24        
     25      attr_accessor :preamble 
    2526      attr_accessor :package 
    2627       
     
    3233        @persistencefile = "persistence.yml" 
    3334        @dialect = "org.hibernate.dialect.MySQL5Dialect" 
    34          
     35                 
    3536        yield self if block_given? 
    3637        define 
     
    5253         
    5354          schema =  "# -- do not edit ---\n" 
    54           schema << "# generated by hibernate:export_schema at #{Time.new}\n\n" 
     55          schema << "# generated by Jerbil::Hibernate::ExportSchemaTask at #{Time.new}\n\n" 
    5556           
    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? 
    5958           
    6059          schema << IO.read(schemafile)