XML Interface - Macros
Macros can be used in a number of locations within the XML file
and allow reference to external or internal data.
Usage: $(MACRO_NAME)
The following macros are supported:
- SourceFile Macros
These macros reference to the source file path and name. They can
be used in the Params attribute only (Tool or
Task elements).
- SourceFileName - Source file name with extension.
- SourceName - Source file name without extension.
- SourcePath - Source file full path and file name.
- SourceDir - Source file directory.
- SourceExt - Source file extension.
- OutputFiles Macros
These macros reference to the output file path and name. They can
be used in the Params attribute only (Tool or
Task elements). Please note that when multiple output files
are defined, this macro will refer to the first-defined file in the
list.
- OutputFileName - Output file name with extension.
- OutputName - Output file name without extension.
- OutputPath - Output file full path and file name.
- OutputDir - Output file directory.
- OutputExt - Output file extension.
- Params Macros
There is one macro related to the Params attribute:
inherited:params.
This macro can be used in the Params attribute of the
Task element only. It will be reference to the default
parameters defined in the Tool element.
- Environment Variable Macros
Macros can be used to access environment variables. Any defined
variable can be accessed by using its name: e.g.: $(path) will be translated into the 'path'
environment variable.
Copyright (C) 2001-2008 Xoreax Software Ltd. All rights
reserved.