Name |
Ceylon Build File Tasks Platform Module |
---|---|
Backends | JVM |
Maven coordinates | |
Compatible Ceylon release |
JVM: 1.0.0 (outdated) |
Published | Nov 11, 2013 |
Stats |
Downloads (JVM): 468 Source downloads: 477 |
License | [ASL 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
Description |
Functions and DeleteThis module provides two functions to delete files and directories.
Here is an example of a task which will delete Task cleanTarget = delete { path = parsePath("modules"); }; A filter can be added to that task to only delete files with extensions Task cleanTarget = delete { path = parsePath("modules"); filter = extensions("car", "car.sha1"); }; CopyThis module provides two functions to copy files and directories.
Here is an example of a task which will copy file Task deploy = copy { source = parsePath("modules/mymodule/1.0.0/module-1.0.0.car"); destination = parsePath("container/modules"); }; Note that copy acts the same way as the
A directory can also be copied recursively as below Task deploy = copy { source = parsePath("modules"); destination = parsePath("container/modules"); filter = extensions("car"); }; |
Dependencies |
ceylon.build.task/1.0.0
shared
ceylon.file/1.0.0
shared
|
Usage |
import ceylon.build.tasks.file "1.0.0"; |
Module links |
Members Imported By Home Code repository Issue tracker Browse Download .car No .js archive Download source archive Download module documentation View API documentation |