lib/buildr/xmlbeans.rb in buildr-1.0.0 vs lib/buildr/xmlbeans.rb in buildr-1.1.0
- old
+ new
@@ -33,10 +33,10 @@
end
def compile_xml_beans(*args)
# Generate sources and add them to the compile task.
- generated = file(path_to("target/generated/xmlbeans")=>FileList[args.flatten]) do |task|
+ generated = file(path_to(:target, "generated/xmlbeans")=>FileList[args.flatten]) do |task|
XMLBeans.compile task.prerequisites, :output=>task.name,
:javasource=>compile.options.source, :xsb=>compile.target
end
compile.from(generated).with(JAVAX.stream, XMLBEANS)
# Once compiled, we need to copy the generated XSB/XSD and one (magical?) class file