lib/buildr/xmlbeans.rb in buildr-1.2.7 vs lib/buildr/xmlbeans.rb in buildr-1.2.8
- old
+ new
@@ -4,11 +4,13 @@
module Buildr
# Provides XMLBeans schema compiler. Require explicitly using <code>require "buildr/xmlbeans"</code>.
module XMLBeans
- REQUIRES = [ "xmlbeans:xbean:jar:2.2.0", "stax:stax-api:jar:1.0" ]
+ STAX = "stax:stax-api:jar:1.0"
+ XMLBEANS = "org.apache.xmlbeans:xmlbeans:jar:2.3.0"
+ REQUIRES = [ STAX, XMLBEANS ]
class << self
def compile(*args)
options = Hash === args.last ? args.pop : {}
@@ -42,10 +44,10 @@
# Generate sources and add them to the compile task.
generated = file(path_to(:target, "generated/xmlbeans")=>files) do |task|
XMLBeans.compile args.flatten, :output=>task.name,
:javasource=>compile.options.source, :xsb=>compile.target
end
- compile.from(generated).with(JAVAX.stream, XMLBEANS)
+ compile.from(generated).with(STAX, XMLBEANS)
# Once compiled, we need to copy the generated XSB/XSD and one (magical?) class file
# into the target directory, or the rest is useless.
compile do |task|
verbose(false) do
base = Pathname.new(generated.to_s)