Command Line Task Hook
The command line hook allows for a Windows command file to be executed. The command file is executed in its own thread so must contain all necessary environmental information.
Attributes
Attribute Name |
Description |
event |
Valid values:
|
type |
“CommandLineHook” |
Parameters
Parameter Name |
Description |
command |
The name of the command file
located in the resource folder. If using a relative path, the current folder
location is within the web applications |
Example:
The following example details how to configure a command line task hook to call a
bat file
located in the WEB-INF/hooks
folder.
<Task name="Production" type="FolderSync"> ... <TaskHook event="PostTask" type="CommandLineHook"> <Param name="command" value="hooks/post-task-stub.bat"/> </TaskHook> </Task>