Alexey
Alexey

Reputation: 601

Automatic ActiveJDBC instrumentation in VSCode

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

Upvotes: 1

Views: 108

Answers (1)

Alexey
Alexey

Reputation: 601

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"
      }
  ]
}
  1. add "preLaunchTask": "Run instrumentation" in .vscode/launch.json

Upvotes: 2

Related Questions