Name Syntax

Description

Pake::Syntax module exports functions which are use to define task and dependencies between them. Module directly exports to the callers namespace all functions in the module

Methods

Overview of all methods avalailable in the Syntax.pm

task

task method registers new task in the PakeApplication First parameter is block of code, executed when the task is invocked. Second parameter is name of the task (you specify it during pake usage, pake task1) pointing to the table with dependendant tasks (task {} "name" => ["dep1","dep2"];

file

file requires same parameters as task method. The difference is that the name of the file task should be a name of physical file. Pake will find out which files changed and what file task should be executed

directory

directory task executes only when the directory with the name of the task does not exist

rule

rule registers a pattern of a file extension. When you invoke pake with the name of the task that was not specified in the Pakefile or invoke task that depends on a non existing task, pake tries to match the rule to the name of the task. If the match is found it executes the rule.

multi_task

Executes prerequistes in parallel

desc

Specifies task description Use it before you specify task

pake_dependency

If there is a need, you can load another Pakefile or perl script

default

default registers task which will be executed if no tasks will be given in args to pake