This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git

commit d0e3c96ac9acd298646f7d0174026a1a4eb4fae4
Author: Josh Tynjala <[email protected]>
AuthorDate: Wed Sep 28 13:30:05 2022 -0700

    compiler-options: -watch
---
 compiler/compiler-options.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/compiler/compiler-options.md b/compiler/compiler-options.md
index de3873c..be6693e 100644
--- a/compiler/compiler-options.md
+++ b/compiler/compiler-options.md
@@ -259,6 +259,7 @@ The [**mxmlc** and **compc** compilers](compiler) have a 
number of useful config
 - [`-warn-public-vars`](compiler/compiler-options#warn-public-vars) -- 
Controls a compile-time warning for public variables that are not accessors.
 - `-warning-problems` `[class]` `[...]`  
 - `-warnings` -- Determines if compile-time warnings are enabled.
+- [`-watch`](compiler/compiler-options#watch) -- Watch for source file changes 
and rebuild incrementally
 
 ### allow-abstract-classes {#allow-abstract-classes}
 
@@ -1036,3 +1037,17 @@ Enables or disables warnings about using public 
variables when it may be conside
 ```xml
 <additionalCompilerOptions>-warn-public-vars=true;</additionalCompilerOptions>
 ```
+
+### watch {#watch}
+
+After initial compilation completes, the compiler keeps running to watch for 
source file changes. When _.as_ or _.mxml_ files are changed, the compiler runs 
a fast incremental build. Use Ctrl+C to exit the compiler.
+
+```sh
+-watch
+```
+
+#### Maven configuration:
+
+```xml
+<additionalCompilerOptions>-watch=true;</additionalCompilerOptions>
+```

Reply via email to