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: md/doc/maven-plugin/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# jooby:run
2
2
3
-
Increase development productivity: run, debug and auto-reload Jooby applications.
3
+
Increase development productivity: run, debug, compile and auto-reload Jooby applications.
4
4
5
5
A {{maven}} plugin for running, debugging and reloading your application.
6
6
@@ -34,9 +34,7 @@ The plugin bounces the application every time a change is detected on:
34
34
35
35
Changes on templates and/or static files (*.html, *.js, *.css) wont restart the application, because they are not compiled/cached it while running on ```application.env = dev```.
36
36
37
-
**NOTE: For the time being, you need to use a tool that compiles your source code, usually an IDE. Otherwise, no changes will be found.**
38
-
39
-
Is it worth to mention that dynamic reload of classes at runtime is done via {{jboss-modules}}.
37
+
Is it worth to mention that dynamic reload of classes is done via {{jboss-modules}}.
40
38
41
39
## options
42
40
@@ -49,6 +47,7 @@ Is it worth to mention that dynamic reload of classes at runtime is done via {{j
49
47
<mainClass>${application.class}</mainClass>
50
48
<commands>
51
49
</commands>
50
+
<compiler>on</compiler>
52
51
<vmArgs></vmArgs>
53
52
<debug>true</debug>
54
53
<includes>
@@ -66,6 +65,20 @@ Is it worth to mention that dynamic reload of classes at runtime is done via {{j
66
65
67
66
A {{maven}} property that contains the fully qualified name of the ```main class```. **Required**.
68
67
68
+
### compiler
69
+
70
+
The compiler is ```on``` by default, unless:
71
+
72
+
* A ```.classpath``` file is present in the project directory. If present, means you're a Eclipse user and we turn off the compiler and let Eclipse recompiles the code on save.
73
+
74
+
* The compiler is set to ```off```.
75
+
76
+
On compilation success, the application is effectively reloaded.
77
+
78
+
On compilation error, the application won't reload.
79
+
80
+
Compilation success or error messages are displayed in the console (not at the browser).
81
+
69
82
### debug
70
83
71
84
The JVM is started in **debug mode by default**. You can attach a remote debugger at the ```8000``` port.
0 commit comments