Executes one or more lines of anonymous Apex code.
It executes the force:apex:execute command.
In addition to the attributes used by every ant-sfdx task, this task uses the following attributes:
| Attribute | Command line equivalent | Description | Required |
|---|---|---|---|
| apexcodefile | -f | Local file that contains Apex code. | No |
| targetusername | -u | A username or alias for the target org. | No |
Version: 0.0.0-master