Note: information on this page refers to Ceylon 1.1, not to the current release.

<ceylon-run> Ant task

Usage

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

To execute the com.example.foo.lifecycle.start top level method in version 1.1 of module com.example.foo residing in the build directory (repository):

<target name="execute" depends="ceylon-ant-taskdefs">
  <ceylon-run run="com.example.foo.lifecycle.start" 
    module="com.example.foo/1.1">
    <rep url="build"/>
  </ceylon-run>
</target>

Description

The <ceylon-run> ant task supports execution of Ceylon modules, top-level classes and top-level functions from a Ceylon repository using the Ant build tool. It provides similar features to the ceylon run command line tool.

Parameters

Note: In addition to the parameters in the table below table, a nested <module>(s) is required.

Attribute Description Required
module The module (and, optionally, the version) to execute. Ex: `com.foo`, `com.foo/1.2`. Yes
run The top level class of function to run. If unspecified the run attribute of the module descriptor is used. No
src A source directory. No, default is source
executable The filesystem location of the ceylon command line tool. If not specified it is searched in the directory indicated by the ceylon.home system property, or if that is not set the CEYLON_HOME environment variable. No

Nested elements

<reposet>

A reference to a <reposet> defined elsewhere in the ant build file.

<rep>

A module repository containing the module and/or dependencies. Can be specified multiple times. Defaults to modules.

Attribute Description Required
url The URL of the module repository Yes

See also