Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The name of the task is scr
  • The task requires that the source files have already been compiled

The task only generates the descriptor file(s). If you want to use the Declarative Services descriptor – by default generated in the OSGI-INF/serviceComponents.xml – you must make sure to add a Service-Components header to your bundle manifest. Unlike Maven plugin the Ant task cannot automatically generate this header.

Task Attributes

Like the standard javac Ant Task, the SCR Ant Task defines an implicit fileset which defines the source files to be scanned for Java 5 Annotations or JavaDoc Tags. In addition to the child elements available to Ant Fileset as defined for directory-based tasks the following task attributes:

...