Synopsis

ceylon src [--cacherep=<url>] [--cwd=<dir>] [--define=<key>=<value>...] [--maven-overrides=<url>] [--no-default-repositories] [--offline] [--rep=<url>...] [--source=<dirs>] [--src=<dir>] [--sysrep=<url>] [--verbose[=<flags>]] [--] <module...>

Description

Fetches the source archive of the given module from the first configured repository to contain the module and extracts the source code into the output source directory. Multiple modules can be given.

This tool is especially useful for working with example projects.

Options

--cacherep=url

Specifies the folder to use for caching downloaded modules. (default: ~/.ceylon/cache)

--cwd=dir

Specifies the current working directory for this tool. (default: the directory where the tool is run from)

--define=key>=<value, -D key>=<value

Set a system property

--maven-overrides=url

Specifies the xml file to use to load Maven artifact overrides.

--no-default-repositories

Indicates that the default repositories should not be used.

--offline

Enables offline mode that will prevent connections to remote repositories.

--rep=url

Specifies a module repository containing dependencies. Can be specified multiple times. (default: modules, ~/.ceylon/repo, http://modules.ceylon-lang.org/repo/1)

--source=dirs

An alias for --src (default: ./source)

--src=dir

The output source directory (default: ./source)

--sysrep=url

Specifies the system repository containing essential modules. (default: $CEYLON_HOME/repo)

--verbose[=flags]

Produce verbose output. If no flags are given then be verbose about everything, otherwise just be verbose about the flags which are present. Allowed flags include: all, loader.

Examples

A typical workflow might be:

mkdir my-project
cd my-project
ceylon src org.example.foo
ceylon compile org.example.foo
ceylon run org.example.foo