<ceylon-module-descriptor> Ant task

Usage

Note: You must declare the tasks with a <typedef>.

Task which sets ant properties according to information extracted from a Ceylon module descriptor (module.ceylon). To retrieve the name, version and license information from the sources for module com.example.foo and exposing them as ant properties:

<target name="descriptor" depends="ceylon-ant-taskdefs">
  <ceylon-module-descriptor
        src="src"
        module="com.example.foo"
        name="modulename"
        version="moduleversion"
        license="modulelicense"
  />
  <echo message="Name ${modulename}" />
  <echo message="Version ${moduleversion}" />
  <echo message="License ${modulelicense}" />
</target>

Description

Attributes

Attribute Description Required
module

The name of the module whose descriptor should be read

Yes
licenseProperty

The name of the ant property to set with the module license read from the descriptor

No
nameProperty

The name of the ant property to set with the module name read from the descriptor

No
src

The source directory containing ceylon modules. Defaults to source.

No
versionProperty

The name of the ant property to set with the module version read from the descriptor

No

See also