Skip to content

Commit 535dbc6

Browse files
committed
feat: change served files on file change
Signed-off-by: WoodenMaiden <yann.pomie@laposte.net>
1 parent d19e12c commit 535dbc6

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

agrold-javaweb/.vscode.template/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"maven.terminal.favorites": [
33
{
4-
"command": "package docker:start",
4+
"command": "package docker:start fizzed-watcher:run",
55
"debug": false,
66
"alias": "Run in container"
77
}

agrold-javaweb/nbactions.template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<packaging>ejb</packaging>
99
</packagings>
1010
<goals>
11-
<goal>package</goal>
1211
<goal>docker:start</goal>
12+
<goal>fizzed-watcher:run</goal>
1313
</goals>
1414
</action>
1515
</actions>

agrold-javaweb/pom.xml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@
124124
</dependency>
125125
</dependencies>
126126

127-
128-
129127
<build>
130128
<plugins>
131129
<plugin>
@@ -201,12 +199,12 @@
201199
</env>
202200
<volumes>
203201
<bind>
204-
<volume>${project.basedir}/target/${agrold.name}:/opt/bitnami/tomcat/webapps_default/${agrold.name}</volume>
202+
<volume>${project.basedir}/target/${agrold.name}:/app/${agrold.name}</volume>
205203
</bind>
206204
</volumes>
207205
<log>
208206
<enabled>true</enabled>
209-
<prefix>Agrold @ %a &gt;&#160;</prefix>
207+
<prefix>Agrold @ %c &gt;&#160;</prefix>
210208
<date>NONE</date>
211209
<color>CYAN</color>
212210
</log>
@@ -215,6 +213,21 @@
215213
</images>
216214
</configuration>
217215
</plugin>
216+
<plugin>
217+
<groupId>com.fizzed</groupId>
218+
<artifactId>fizzed-watcher-maven-plugin</artifactId>
219+
<version>1.0.6</version>
220+
<configuration>
221+
<watches>
222+
<watch>
223+
<directory>${project.basedir}/src/main</directory>
224+
</watch>
225+
</watches>
226+
<goals>
227+
<goal>package</goal>
228+
</goals>
229+
</configuration>
230+
</plugin>
218231
</plugins>
219232
<finalName>${agrold.name}</finalName>
220233
</build>

0 commit comments

Comments
 (0)