From 126f41c0ac1cd70532399ca0c263e87bb7eecf92 Mon Sep 17 00:00:00 2001 From: Michael Schmitz Date: Tue, 15 Oct 2013 12:18:09 -0700 Subject: [PATCH] Complete code example in Custom-Settings.rst The original wording confused me. I thought it meant that there was no point to my new keys unless I used them in a task. But rather it meant that I needed to create keys for my task and then a task definition with the same key name. I added the creation of the keys to the task implementation code example to clear this up in the future. --- src/sphinx/Getting-Started/Custom-Settings.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sphinx/Getting-Started/Custom-Settings.rst b/src/sphinx/Getting-Started/Custom-Settings.rst index 73f1ace41..834769ed7 100644 --- a/src/sphinx/Getting-Started/Custom-Settings.rst +++ b/src/sphinx/Getting-Started/Custom-Settings.rst @@ -46,12 +46,15 @@ Any `val` found in a `Build` object in your `.scala` build definition files or a Implementing a task ------------------- -Once you've defined a key, you'll need to use it in some task. You could -be defining your own task, or you could be planning to redefine an -existing task. Either way looks the same; use `:=` to associate some -code with the task key: +Once you've defined a key for your task, you'll need to complete it +with a task definition. You could be defining your own task, or you +could be planning to redefine an existing task. Either way looks the +same; use `:=` to associate some code with the task key: :: + val sampleStringTask = settingKey[String]("A sample string task.") + + val sampleIntTask = settingKey[String]("A sample int task.") sampleStringTask := System.getProperty("user.home")