我正在从 Eclipse 迁移到 VS-Code,我正试图快速完成部署过程。我想创建一个 vs-code 任务来部署 WAR 文件。我正在使用命令adashen.vscode-tomcat:tomcat.war.run但它似乎不起作用。
我正在使用 Tomcat for Visual Studio Code 扩展 v.0.11.1。
我的 tasks.json 看起来像这样:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "gradlew clean build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Deploy",
"type": "shell",
"command": "adashen.vscode-tomcat:tomcat.war.run",
"args": ["${workspaceFolder}\\build\\libs\\SMEWeb-0.0.1-SNAPSHOT.war"]
}
]
}
执行后得到以下错误:
在文件夹 SMEWeb 中执行任务:adashen.vscode-tomcat:tomcat.war.run C:\WorkspaceGit\sme\SMEWeb\build\libs\SMEWeb-0.0.1-SNAPSHOT.war <
文件名、目录名或卷标语法不正确。
终端进程命令 'C:\Windows\system32\cmd.exe /d /c adashen.vscode-tomcat:tomcat.war.run C:\WorkspaceGit\sme\SMEWeb\build\libs\SMEWeb-0.0.1-SNAPSHOT .war' 启动失败(退出代码:1)
终端将被任务重用,按任意键关闭它。
有人有线索吗?谢谢
慕慕森
Helenr
鸿蒙传说
相关分类