Class Buildr::Packaging::Java::AarTask
In: lib/buildr/java/packaging.rb  (CVS)
Parent: JarTask

Extends the JarTask to create an AAR file (Axis2 service archive).

Supports all the same options as JarTask, with the addition of :wsdls, :services_xml and :libs.

  • :wsdls — WSDL files to include (under META-INF). By default packaging will include all WSDL files found under src/main/axis2.
  • :services_xml — Location of services.xml file (included under META-INF). By default packaging takes this from src/main/axis2/services.xml. Use a different path if you genereate the services.xml file as part of the build.
  • :libs — Array of files, tasks, artifact specifications, etc that will be added to the /lib directory.

For example:

  package(:aar).with(:libs=>'log4j:log4j:jar:1.1')

  filter.from('src/main/axis2').into('target').include('services.xml', '*.wsdl').using('http_port'=>'8080')
  package(:aar).wsdls.clear
  package(:aar).with(:services_xml=>_('target/services.xml'), :wsdls=>_('target/*.wsdl'))

Included Modules

Buildr

Attributes

libs  [RW]  Artifacts to include under /lib.
services_xml  [RW]  Location of services.xml file (defaults to src/main/axis2/services.xml).
wsdls  [RW]  WSDLs to include under META-INF (defaults to all WSDLs under src/main/axis2).

[Validate]