NickHeap2 / vscode-ant

Visual Studio Code Ant Task Runner Extension published on the marketplace
MIT License
6 stars 4 forks source link
ant vscode-extension

Ant Target Runner for Visual Studio Code

An ant extension that parses build.xml in the root directory (but you can configure it to look elsewhere) and allows you to easily run the targets or reveal their definitions. Ant build output can be colorized, environment variables can be set and targets can be automatically run on changes in the file system.

Features

It works like this

Change tracking

Reveal definition

Reveal definition

Reveal definition

Requirements

For this release the extension requires:

Extension Settings & Configuration files

This extension contributes the following settings:

The extension will use the built in version of Ant which includes a windows colour library if you don't configure the ant.executable or ant.home settings.

The build.env (or whatever is configured) should be in standard property file format like this:

ENV_VAR1=my setting
ENV_VAR2=C:\some\path

The autoTarget file build.auto (or whatever is configured) should be in the json format below:

{
  "autoTargets": [
    {
      "filePattern": "src/foldertest/**/*.{p,w,i,cls}",
      "buildFile": "build.xml",
      "runTargets": "compile_foldertest",
      "initialDelayMs": 1000
    },
    {
      "filePattern": "**/*.{p,w,i,cls}",
      "buildFile": "build.xml",
      "runTargets": "compile",
      "initialDelayMs": 1000
    },
    {
      "filePattern": "**/*.test",
      "buildFile": "build.xml",
      "runTargets": "compile test",
      "initialDelayMs": 5000
    },
    {
      "filePattern": "**/*.spacetest",
      "buildFile": "build.xml",
      "runTargets": "\"space test\" test",
      "initialDelayMs": 2000
    }
  ]
}

Release Notes

Dependencies weren't been parsed correctly after the first one so you couldn't run them correctly. Send in file that caused the auto build as a parameter to the ant script. Updated dependencies.

[0.5.0] - 2023-11-11

Fixed

[0.4.3] - 2022-10-14

Fixed

[0.4.2] - 2022-10-14

Fixed

[0.4.1] - 2022-10-10

Fixed

[0.4.0] - 2022-10-08

Added

Fixed

[0.3.3] - 2022-05-30

Fixed

[0.3.2] - 2022-03-08

Fixed

[0.3.1] - 2021-03-22

Fixed