Note: information on this page refers to Ceylon 1.2, 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
Executes a Ceylon program
The <ceylon-run> ant task wraps the ceylon run command.
Attributes
| Attribute | Description | Required | 
|---|---|---|
| module | The name and optional version of the module to run | Yes | 
| autoExportMavenDependencies | Equivalent to the  | No | 
| cacheRep | Equivalent to the  | No | 
| compile | Equivalent to the  | No | 
| config | Equivalent to the  | No | 
| cwd | Equivalent to the  | No | 
| errorProperty | The ant property to set to true in the event of an error | No | 
| executable | The location of the ceylon executable script. | No | 
| failOnError | Whether an error in executing this task should fail the ant build | No | 
| flatClasspath | Equivalent to the  | No | 
| fork | Whether the task should be run in a separate VM (default:  | No | 
| inheritAll | Whether a task should inherit environment and properties. Only applies when  | No | 
| linkWithCurrentDistribution | Equivalent to the  | No | 
| noDefaultRepositories | Equivalent to the  | No | 
| offline | Equivalent to the  | No | 
| overrides | Equivalent to the  | No | 
| resultProperty | The ant property to set to the Ceylon program exit code | No | 
| run | Equivalent to the  | No | 
| stacktraces | Equivalent to the  | No | 
| sysRep | Equivalent to the  | No | 
| verbose | Equivalent to the  | No | 
Nested elements
<arg>
          
          
          
          
          
          An argument to be passed to the module
| Element | Description | Required | 
|---|---|---|
| value | A command line argument to be passed to the module. | No | 
<define>
          
          
          
          
          
          A <define> element is used to set system properties for the ant task being executed.
          Equivalent to the --define command line option.
          Set a system property
The value for the system property can either be passed as a value attribute:
<define key="org.example.helloworld.greeting" value="Hi"/>
or it can be the text between the begin and end tags:
<define key="org.example.helloworld.greeting">Hi</define>
Alternatively, it is posible to dispense with the attributes and use the syntax
<define>org.example.helloworld.greeting=Hi</define>
| Element | Description | Required | 
|---|---|---|
| key | The property to be defined | No | 
| value | The value of the define | No | 
<rep>
          
          
          
          
          
          A module repository containing dependencies. Can be specified multiple times. Defaults to <rep url="./modules"/>.
| Element | Description | Required | 
|---|---|---|
| url | The URL or path of the module repository. | Yes, unless a `refid` is given | 
| refid | A reference to a  | No | 
<reposet>
          
          
          
          
          
          A set of module repositories containing dependencies. Can be specified multiple times. Default to modules.
A <reposet> element contains a number of <repo> and/or <reposet> elements. It can be defined at the top level, and then used by reference using the refid attribute so you don't have to repeat the same list of repositories all the time.
| Element | Description | Required | 
|---|---|---|
| refid | A reference to a  | No |