just a heads up that we now a have new way for ant tasks to find out where CEYLON_HOME is located: by using the `ceylon` command itself.
<exec executable="ceylon" outputproperty="ceylon.home" failifexecutionfails="false">
<arg value="--show-home" />
</exec>
<property environment="env"/>
<property name="env.CEYLON_HOME" value="${ceylon.home}"/>
This will use the new `--show-home` option for the `ceylon` command (which might be useful in shell scripts as well) to retrieve the currently active distribution's home folder.
Or if $CEYLON_HOME is set in the environment its value will be used instead
In the rest of the build file you'll be able to use ${env.CEYLON_HOME} to refer to Ceylon's home directory.
HTH,
-Tako
PS: there are probably better more fool-proof way to do this, but this code is short and concise and works in most cases.