Sha256: 9a3e2271e3ca7e62b8dec0a8eb0e11f33d430c395cf9238daa9768f8cbc6bbc7
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
module Buildr module JaxbXjc class << self def jaxb_version "2.2.1" end # The specs for requirements def requires [ "javax.xml.bind:jaxb-api:jar:#{jaxb_version}", "com.sun.xml.bind:jaxb-impl:jar:#{jaxb_version}", "com.sun.xml.bind:jaxb-xjc:jar:#{jaxb_version}" ] end # Repositories containing the requirements def remote_repository "http://download.java.net/maven/2" end def xjc(*args) cp = Buildr.artifacts(self.requires).each(&:invoke).map(&:to_s) Java::Commands.java 'com.sun.tools.xjc.XJCFacade', *(args + [{ :classpath => cp }]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buildr-jaxb-xjc-0.0.1 | lib/buildr/jaxb_xjc/core.rb |