【问题标题】:Automatic ActiveJDBC instrumentation in VSCodeVSCode 中的自动 ActiveJDBC 检测
【发布时间】:2018-07-07 10:37:27
【问题描述】:

我使用 VSCode 作为编辑器,我需要对我的模型类进行自动运行检测。 要手动运行它,我在 shell mvn org.javalite:activejdbc-instrumentation:2.0:instrument

中运行

【问题讨论】:

    标签: java maven activejdbc


    【解决方案1】:

    我使用以下 VSCode 扩展在 Java 上进行开发:https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

    解决了: 1.创建.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. .vscode/launch.json 中添加"preLaunchTask": "Run instrumentation"

    【讨论】:

    • 这可以通过mvn compile自动运行吗
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多