apex-run Task

Description

Executes one or more lines of anonymous Apex code.

It executes the apex run command.

Parameters

In addition to the attributes used by every ant-sf task, this task uses the following attributes:

Attribute Command line equivalent Description Required
file --file Local file that contains Apex code. No
logproperty

The name of a property under which custom properties can be set by interpreting the informational level log output by the script.

If the script outputs an especially formatted informational log, this can be recognized a a new subproperty to be set. For example, the following Apex code System.debug(LoggingLevel.INFO, '[property]String = Test'); will instruct the task to create a new subproperty with the name string and the value Test.

  • The log level must be informational.
  • The log output must start with '[property]'.
  • The name and the value must be separated by an = sign.
  • They can be separated by spaces.
  • The name of the property will be lowercased.
No
targetorg -u A username or alias for the target org. No

Version: 0.0.0-master