Synopsis

ceylon copy [--all] [--cacherep=<url>] [--cwd=<dir>] [--define=<key>=<value>...] [--docs] [--js] [--jvm] [--maven-overrides=<url>] [--no-default-repositories] [--offline] [--out=<url>] [--pass=<secret>] [--rep=<url>...] [--scripts] [--src] [--sysrep=<url>] [--timeout=<seconds>] [--user=<name>] [--verbose[=<flags>]] [--with-dependencies] [--] <module...>

Description

Copies a module or a set of modules from one repository to another. If set for recursive copying it will also copy all the module's dependencies and their dependencies until the entire module tree has been copied.

Options

--all

Include everything (jvm,js,docs,src) (default: false)

--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

--docs

Include documentation (default: false)

--js

Include modules compiled for the JSVM (.js) (default: true)

--jvm

Include modules compiled for the JVM (.car) (default: true)

--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, -L

Enables offline mode that will prevent connections to remote repositories.

--out=url, -o url

Specifies the output module repository (which must be publishable). (default: ./modules)

--pass=secret

Sets the password for use with an authenticated output repository(no default).

--rep=url

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

--scripts

Include scripts (default: false)

--src

Include sources (default: false)

--sysrep=url

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

--timeout=seconds, -T seconds

Sets the timeout for connections to remote repositories, use 0 for no timeout (default: 20).

--user=name

Sets the user name for use with an authenticated output repository(no default).

--verbose[=flags], -d

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, files.

--with-dependencies, -r

Recursively copy all dependencies

Repositories

Repositories like those specified with the --rep or --out options can be file paths, HTTP urls to remote servers or can be names of repositories when prepended with a + symbol. These names refer to repositories defined in the configuration file or can be any of the following predefined names +SYSTEM, +CACHE, +LOCAL, +USER or +REMOTE. For more information see http://ceylon-lang.org/documentation/1.0/reference/tool/config