You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/reference/root-dir.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,49 +12,49 @@ Scala CLI needs a root directory:
12
12
13
13
## Setting root directory
14
14
15
-
First of all, Scala CLI checks every passed input (in the same order in which inputs were passed) for the `project.settings.scala` file:
16
-
- If the `project.settings.scala` file is passed explicitly as a **source**, Scala CLI sets its parent directory as the root directory.
17
-
- If the input is a **directory**, Scala CLI looks for the `project.settings.scala` inside this directory. If the file is found, Scala CLI sets the passed directory as the root directory.
15
+
First of all, Scala CLI checks every passed input (in the same order in which inputs were passed) for the `project.scala` file:
16
+
- If the `project.scala` file is passed explicitly as a **source**, Scala CLI sets its parent directory as the root directory.
17
+
- If the input is a **directory**, Scala CLI looks for the `project.scala` inside this directory. If the file is found, Scala CLI sets the passed directory as the root directory.
18
18
19
-
If more than one `project.settings.scala` file is found, Scala CLI uses only **the first one** to set the root directory and raises **warning** saying which one was used.
19
+
If more than one `project.scala` file is found, Scala CLI uses only **the first one** to set the root directory and raises **warning** saying which one was used.
20
20
21
-
If no `project.settings.scala` files are found, Scala CLI sets the root directory based on the first file/directory input:
21
+
If no `project.scala` files are found, Scala CLI sets the root directory based on the first file/directory input:
22
22
- If the input is a **directory**, it is set as the root directory.
23
23
- If the input is a **file**, Scala CLI sets its parent directory as the root directory.
24
24
25
25
If more then one file/directory input has ben passed Scala CLI raises the warning saying which directory has been set as the project root directory.
26
26
27
-
If no `project.settings.scala` files are found and no file/directory inputs have ben passed, Scala CLI sets the current working directory (where Scala CLI was invoked from) as the project root directory.
27
+
If no `project.scala` files are found and no file/directory inputs have ben passed, Scala CLI sets the current working directory (where Scala CLI was invoked from) as the project root directory.
Scala CLI will find 2 `project.settings.scala` files:
55
-
- inside `dir2`, since this directory was passed as an input and it has `project.settings.scala` inside.
56
-
- inside `dir3`, since `dir3/project.settings.scala` was passed explicitly as a source
54
+
Scala CLI will find 2 `project.scala` files:
55
+
- inside `dir2`, since this directory was passed as an input and it has `project.scala` inside.
56
+
- inside `dir3`, since `dir3/project.scala` was passed explicitly as a source
57
57
58
-
`dir1/dir2` was passed before `dir3/project.settings.scala`, so `dir2` will be set as the **root** directory for this build.
58
+
`dir1/dir2` was passed before `dir3/project.scala`, so `dir2` will be set as the **root** directory for this build.
59
59
60
-
Since more than one `project.settings.scala` has been found, Scala CLI will raise the warning saying that more than one `project.settings.scala` file has been found and `dir1/dir2` has been set as the project root directory.
60
+
Since more than one `project.scala` has been found, Scala CLI will raise the warning saying that more than one `project.scala` file has been found and `dir1/dir2` has been set as the project root directory.
0 commit comments