I use VSCode as editor and I need to make automatic running instrumentation of my model classes.
To run it manually I run in shell mvn org.javalite:activejdbc-instrumentation:2.0:instrument
Asked
Active
Viewed 95 times
1

Alexey
- 601
- 7
- 17
1 Answers
2
I use following VSCode extension to develop on Java: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
solved:
1. create .vscode/tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run instrumentation",
"type": "shell",
"command": "mvn org.javalite:activejdbc-instrumentation:2.0:instrument"
}
]
}
- add
"preLaunchTask": "Run instrumentation"
in.vscode/launch.json

Alexey
- 601
- 7
- 17
-
1can this be automatically run somehow with `mvn compile` – AhmedRana Nov 15 '20 at 08:13