Skip to content

add watch option to automatically rebuild on source file modification#35

Merged
demonnic merged 1 commit intodemonnic:mainfrom
krystophv:watch
Apr 14, 2024
Merged

add watch option to automatically rebuild on source file modification#35
demonnic merged 1 commit intodemonnic:mainfrom
krystophv:watch

Conversation

@krystophv
Copy link
Copy Markdown
Contributor

pretty much what it says on the tin. It's pretty rudimentary since the majority of the nicer file modification mechanisms aren't implemented in the filesystem layer that Microsoft uses for WSL2 and, hence, don't trigger for docker under Windows. When a file changes in the src directory, it just runs the build process when it picks up the changed modification time on a regular 1 second interval. I've run the java jar and docker test image against the test packages without incident on Windows and in WSL.

I'm not a groovy dev and was assisted by an LLM. I've scoured the docs for the code used and everything seems alright, but I'm not up on idiomatic Groovy by any means and am more than open to feedback.

@demonnic
Copy link
Copy Markdown
Owner

At first glance this looks just fine. I'll want to give it a practical test in the morning before merging and doing a release, but by and large should make it in.

@demonnic
Copy link
Copy Markdown
Owner

Sorry this took so long. Looks good, tests out, merging and releasing

@demonnic demonnic merged commit 1fa0699 into demonnic:main Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants