Skip to content

Commit 6c80fd0

Browse files
committed
Add missing reference docs for *.javacOptions directives
1 parent b9cafba commit 6c80fd0

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ import scala.cli.commands.SpecificationLevel
1212
@DirectiveExamples("//> using test.javacOpt -source 1.8 -target 1.8")
1313
@DirectiveUsage(
1414
"//> using javacOpt _options_",
15-
"`//> using javacOpt` _options_"
15+
"""`//> using javacOpt` _options_
16+
|`//> using javacOptions` _options_
17+
|
18+
|`//> using test.javacOpt` _options_
19+
|`//> using test.javacOptions` _options_
20+
|""".stripMargin
1621
)
1722
@DirectiveDescription("Add Javac options which will be passed when compiling sources.")
1823
@DirectiveLevel(SpecificationLevel.SHOULD)

website/docs/reference/directives.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ Add Java properties
204204
Add Javac options which will be passed when compiling sources.
205205

206206
`//> using javacOpt` _options_
207+
`//> using javacOptions` _options_
208+
209+
`//> using test.javacOpt` _options_
210+
`//> using test.javacOptions` _options_
211+
207212

208213
#### Examples
209214
`//> using javacOpt -source 1.8 -target 1.8`

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ Sets Java home used to run your application or tests
203203
Add Javac options which will be passed when compiling sources.
204204

205205
`//> using javacOpt` _options_
206+
`//> using javacOptions` _options_
207+
208+
`//> using test.javacOpt` _options_
209+
`//> using test.javacOptions` _options_
210+
206211

207212
#### Examples
208213
`//> using javacOpt -source 1.8 -target 1.8`

0 commit comments

Comments
 (0)