Skip to content

Commit b9cafba

Browse files
committed
Add missing reference docs for *.jar directives
1 parent af87206 commit b9cafba

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

modules/directives/src/main/scala/scala/build/preprocessing/directives/CustomJar.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ import scala.util.{Failure, Success, Try}
2626
@DirectiveUsage(
2727
"`//> using jar `_path_ | `//> using jars `_path1_ _path2_ …",
2828
"""`//> using jar` _path_
29-
|
3029
|`//> using jars` _path1_ _path2_ …
30+
|
31+
|`//> using test.jar` _path_
32+
|`//> using test.jars` _path1_ _path2_ …
33+
|
34+
|`//> using source.jar` _path_
35+
|`//> using source.jars` _path1_ _path2_ …
36+
|
37+
|`//> using test.source.jar` _path_
38+
|`//> using test.source.jars` _path1_ _path2_ …
3139
|""".stripMargin
3240
)
3341
@DirectiveDescription("Manually add JAR(s) to the class path")

website/docs/reference/directives.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,17 @@ Method used to compute the version for BuildInfo
6767
Manually add JAR(s) to the class path
6868

6969
`//> using jar` _path_
70-
7170
`//> using jars` _path1_ _path2_
7271

72+
`//> using test.jar` _path_
73+
`//> using test.jars` _path1_ _path2_
74+
75+
`//> using source.jar` _path_
76+
`//> using source.jars` _path1_ _path2_
77+
78+
`//> using test.source.jar` _path_
79+
`//> using test.source.jars` _path1_ _path2_
80+
7381

7482
#### Examples
7583
`//> using jar /Users/alexandre/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar`

website/docs/reference/scala-command/directives.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,17 @@ Set the default Scala version
125125
Manually add JAR(s) to the class path
126126

127127
`//> using jar` _path_
128-
129128
`//> using jars` _path1_ _path2_
130129

130+
`//> using test.jar` _path_
131+
`//> using test.jars` _path1_ _path2_
132+
133+
`//> using source.jar` _path_
134+
`//> using source.jars` _path1_ _path2_
135+
136+
`//> using test.source.jar` _path_
137+
`//> using test.source.jars` _path1_ _path2_
138+
131139

132140
#### Examples
133141
`//> using jar /Users/alexandre/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/chuusai/shapeless_2.13/2.3.7/shapeless_2.13-2.3.7.jar`

0 commit comments

Comments
 (0)