Skip to content

Instantly share code, notes, and snippets.

@Krelborn
Last active May 28, 2017 10:22
Show Gist options
  • Save Krelborn/c16ada990fc24a776a14e350f55715e4 to your computer and use it in GitHub Desktop.
Save Krelborn/c16ada990fc24a776a14e350f55715e4 to your computer and use it in GitHub Desktop.
Running Ant based tasks in VS Code on Windows with Bash
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "C:/Windows/sysnative/bash.exe",
"isShellCommand": true,
"showOutput": "always",
"args":[
"--login",
"ant",
"-buildfile",
// Unix based path to build file here e.g. /mnt/c/Users/username/Sources/BuildScripts/build.xml
],
"tasks": [
{
"taskName": "build.all",
"isBuildCommand": true
},
{
"taskName": "clean"
},
{
"taskName": "tests.copy"
},
{
"taskName": "tests.run"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment