buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Peterson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BUILDR-31) JiBX compiler
Date Thu, 31 Jan 2008 20:19:08 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Peterson updated BUILDR-31:
---------------------------------

    Attachment: jibx.rb

> JiBX compiler
> -------------
>
>                 Key: BUILDR-31
>                 URL: https://issues.apache.org/jira/browse/BUILDR-31
>             Project: Buildr
>          Issue Type: New Feature
>          Components: Compilers
>    Affects Versions: 1.3
>            Reporter: David Peterson
>         Attachments: jibx.rb
>
>
> (from the mailing list ...)
> We're using JiBX (http://jibx.sourceforge.net) here to do Java <-> XML bindings.
JiBX requires compile-time class generation and binding compilation. Details of the ant binding
model are at: 
> http://jibx.sourceforge.net/bindcomp.html
> Based on the openjpa bytecode enhancer (openjpa.rb) in the buildr tree, I've written
a JiBX bind task. Please find it attached to this post. Review or comments most appreciated.

> Here's a snippet of buildr rakefile that invokes the JiBX compiler: 
> ... 
> require 'buildr/jibx' 
> JIBX_RUNTIME        = group("jibx-run", "jibx-extras", :under => "org.jibx", :version
=> "1.1.5") 
>   desc "jibx-core" 
>   define "jibx-core" do 
>     JIBX_CORE_DEPS = COMMONS.logging, LOG4J, JIBX_RUNTIME 
>     compile.with JIBX_CORE_DEPS 
>     package :jar 
>     compile { jibx_bind :verbose => true, :load => true } 
>   end 
> ... 
> (A simple "compile { jibx_bind }" is sufficient, of course.) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message