Once a task has been defined in a project you can also call it from the command line if you want to make it part of your build process. For full details on the command line build interface see Command Line Publishing.
Generate a batch file from the Task Manager
You can generate the commands listed below in a batch file automatically. Note that this does not create a fully-itemized batch file using the command line publishing API. It simply creates a command line to call the publishing task and actions, using the syntax listed below, and saves it in a .cmd file.
Make sure that no actions are selected. Select (not the right-click menu) and then store the .cmd file with the dialog displayed.
Select the actions, then right-click and select and save the file.
Execute the entire task
To execute the entire task you use the switch /tsk= with the name of the task, enclosed in quotes if the name includes a space.
<path>\HELPMAN.EXE <path>\myproject.hmxp /tsk="Daily Export"
Execute a single action
To execute just a single action from the task you add the name of the action after a colon (:) character
<path>\HELPMAN.EXE <path>\myproject.hmxp /tsk="Daily Export:ClientA_PDF"
IMPORTANT: No other command line parameters are supported
When you call a task from the command line only the operations and settings used in the task are used. All other parameters are ignored. If you need the more granular control provided by the command line build interface you need to use only the command line interface.
|