{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Compile current file",
            "command": "ssh -t ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake -B ${relativeFile} '",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "echo": true,
                "reveal": "silent",
                "focus": false,
                "panel": "shared"
            },
            "problemMatcher": {
                "owner": "c",
                /*
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Compile current file (on windows only)",
            "command": "ssh -t ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;echo \"-B ${relativeFile} \" | sed -e s/\\\\\/\\//g | gmake '",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "echo": true,
                "reveal": "silent",
                "focus": false,
                "panel": "shared"
            },
            "problemMatcher": {
                "owner": "c",
                /*
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Compile everything - Library, Database, Server and programs",
            "command": "ssh ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake -B all'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": {
                "owner": "c",
                /*
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Compile All - Build service program",
            "command": "ssh ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake -B allprograms'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": {
                "owner": "c",
                /*
                "fileLocation": [
                    "relative",
                    "${workspaceRoot}"
                ],
                */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Compile Emulation service program",
            "command": "ssh ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake -B emulationprogram'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": {
                "owner": "c",
                /*
                    "fileLocation": [
                        "relative",
                        "${workspaceRoot}"
                    ],
                    */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Compile IceCap Core program",
            "command": "ssh ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake -B icecapcore'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": {
                "owner": "c",
                /*
                    "fileLocation": [
                        "relative",
                        "${workspaceRoot}"
                    ],
                    */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Compile IceCap Login program",
            "command": "ssh ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake -B icecaplogin'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": {
                "owner": "c",
                /*
                    "fileLocation": [
                        "relative",
                        "${workspaceRoot}"
                    ],
                    */
                "pattern": {
                    "regexp": "^(.*):(\\d+):(\\d+):(error|warning|info):(.{7}):(.*)$",
                    "file": 1,
                    "line": 2,
                    "column": 3,
                    "severity": 4,
                    "code": 5,
                    "message": 6
                }
            }
        },
        {
            "label": "Build headers",
            "command": "ssh -t ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake hdr'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        },
        {
            "label": "Build all plugins",
            "command": "ssh -t ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake allplugins'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        },
        {
            "label": "Build Release",
            "command": "ssh -t ${config:host} 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/icecap/;gmake release'",
            "type": "shell",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        }
    ]
}