Command Line Hook Attributes and Parameters
Attributes
Attribute Name |
Description |
Event |
Valid values: PostTask – Hook is triggered after the task has completed execution. |
Type |
“CommandLineHook” |
Parameters
Parameter Name |
Description |
Command |
The name of the command file located in the resource folder. |
Listed below is an example of the parameters and attributes listed above.
Example :
<Task name="Production" type="FolderSync">
<Param name="debugLevel" value="DEBUG"/>
<Param name="repository" value="Windchill"/>
<Param name="collection" value="Released Documents"/>
<Param name="fullSync" value="false"/>
<Param name="exportToFolderPath" value="c:\temp\export"/>
<Param name="mirrorRepositoryFolderPaths" value="true"/>
<Param name="fileReferenceAttributes" value="href"/>
<Param name="exportAllReferencedGraphics" value="true"/>
<TaskHook event="PostTask" type="CommandLineHook">
<Param name="command" value="hooks/post-task-stub.bat"/>
</TaskHook>
</Task>