tasks/ext/jsmin/JsMinTask.php
\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

boolean
$failonerror= 'false'
Whether the build should fail, if errors occured
Default value
falseDetails- Type
- boolean

boolean
$suffix= ''-min''
Define if the target should use or not a suffix -min
Default value
'-min'Details- Type
- boolean
Methods

setFailonerror(
boolean $value
)
:
voidWhether the build should fail, if an error occured.
Parameters
| Name | Type | Description |
|---|---|---|
| $value | boolean |

setSuffix(
string $value
)
:
voidDefine if the task should or not use a suffix (-min is the default)
Parameters
| Name | Type | Description |
|---|---|---|
| $value | string |

setTargetDir(
string $targetDir
)
:
voidsets the directory where minified javascript files should be put inot
Parameters
| Name | Type | Description |
|---|---|---|
| $targetDir | string |