From 3a14d66499c57552a7c03731e43182d43857b3c6 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 25 Apr 2017 16:07:17 -0700 Subject: [PATCH] Document multiple installs. --- plug-ins/index.html | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/plug-ins/index.html b/plug-ins/index.html index a773c9b..e023db1 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -490,11 +490,10 @@ assemble {

install

- The install section lets you specify how the artifacts get installed. There are two mutually exclusive - ways to use install. + The install section lets you specify how the artifacts get installed. There are two ways to use install.

-

Bulk install

+

Bulk install

The simplest way to install is either not specify anything in the install directive or an optional @@ -511,7 +510,7 @@ The simplest way to install is either not specify anything in the install< target directory.

-

Fine grained install

+

Fine grained install

You can also be more selective in what you install with either the copy directive to copy individual files or with include, which lets you specify more sophisticated ways of moving @@ -523,6 +522,24 @@ The simplest way to install is either not specify anything in the install< include(from("kobaltBuild/libs"), to("deploy"), glob("**/*")) } +

Multiple install targets

+ +

+ You can specify multiple install directives by specifying different task names for + each of them: +

+
+    install {
+        taskName = "installSingle"
+        target = "libs"
+    }
+
+    install {
+        taskName = "installMulti"
+        copy(from("README"), to("deploy"))
+        include(from("kobaltBuild/libs"), to("deploy"), glob("**/*"))
+    }
+

Note