tasks/ext/jsmin/JsMinTask.php

Show: inherited
Table of Contents

\JsMinTask

Package: phing\tasks\ext

Task to minify javascript files.

Requires JSMin which can be found at http://code.google.com/p/jsmin-php/ but is bundled with Phing so no additional install of JsMin is required.

Parent(s)
\Task < \ProjectComponent
Author
Frank Kleine  
Since
2.3.0  
Version
$Id: JsMinTask.php 1231 2011-07-25 20:11:53Z mrook $  

Properties

Propertyprotectedboolean  $failonerror= 'false'

Whether the build should fail, if errors occured

Default valuefalseDetails
Type
boolean
Propertyprotected\FileSet  $filesets= 'array()'

the source files

Default valuearray()Details
Type
\FileSet
Propertyprotectedboolean  $suffix= ''-min''

Define if the target should use or not a suffix -min

Default value'-min'Details
Type
boolean
Propertyprotectedstring  $targetDir= ''

directory to put minified javascript files into

Details
Type
string

Methods

methodpubliccreateFileSet( ) : void

Nested creator, adds a set of files (nested fileset attribute).

methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

The init method: Do init steps.

methodpubliclog( ) : void

methodpublicmain( ) : void

The main entry point method.

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetFailonerror( boolean $value ) : void

Whether the build should fail, if an error occured.

Parameters
Name Type Description
$value boolean
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetSuffix( string $value ) : void

Define if the task should or not use a suffix (-min is the default)

Parameters
Name Type Description
$value string
methodpublicsetTargetDir( string $targetDir ) : void

sets the directory where minified javascript files should be put inot

Parameters
Name Type Description
$targetDir string
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.