0

can I associate a custom build tool automatically for all files of a certain type (i.e. I want to run my custom build tool for all files with *.mjs extension).

In the Delphi Doc I only found a way to manually associate a single file: Adding a Custom Build Tool

I am using Delphi XE3

TmTron
  • 17,012
  • 10
  • 94
  • 142

1 Answers1

0

the answer is: you cannot do this with a custom build tool

a workaround is to use a pre-build event which searches the whole source tree for related files (e.g. ending in *.mjs) and then do the processing.

another disadvantage of custom build tools is that you cannot properly report errors back to the IDE

so the conclusion is to avoid custom build tools and use pre-build events instead

Community
  • 1
  • 1
TmTron
  • 17,012
  • 10
  • 94
  • 142