phing-tasks-ext

# Class: JsMinTask Source Location: /tasks/ext/jsmin/JsMinTask.php
### Class Overview
    ProjectComponent
       |
       --Task
          |
          --JsMinTask
Task to minify javascript files. #### Author(s): Frank Kleine <mikey@stubbles.net> #### Version: $Id: JsMinTask.php 526 2009-08-11 12:11:17Z mrook $ #### Copyright: � 2001,2002 THYRELL. All rights reserved | ### Variables $failonerror $filesets $targetDir | ### Methods createFileSet init main setFailonerror setTargetDir
### Inherited Variables #### Class: Task Task::$description Task::$location Task::$target Task::$taskName Task::$taskType Task::$wrapper #### Class: ProjectComponent ProjectComponent::$project | ### Inherited Methods #### Class: Task Task::getDescription() Returns the textual description of the task Task::getLocation() Returns the location within the buildfile this task occurs. Used by BuildException to give detailed error messages. Task::getOwningTarget() Returns the owning target of this task. Task::getRegisterSlot() Returns a name Task::getRuntimeConfigurableWrapper() Returns the wrapper object for runtime configuration Task::getTaskName() Returns the name of task, used only for log messages Task::getTaskType() Returns the name of the task under which it was invoked, usually the XML tagname Task::init() Called by the parser to let the task initialize properly. Task::log() Provides a project level log event to the task. Task::main() Called by the project to let the task do it's work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running <em>phing target1 target2</em> will run all tasks in target3 twice. Task::maybeConfigure() Configure this task if it hasn't been done already. Task::perform() Perfrom this task Task::setDescription() Sets a textual description of the task Task::setLocation() Sets the location within the buildfile this task occurs. Called by the parser to set location information. Task::setOwningTarget() Sets the owning target this task belongs to. Task::setRuntimeConfigurableWrapper() Sets the wrapper object this task should use for runtime configurable elements. Task::setTaskName() Sets the name of this task for log messages Task::setTaskType() Sets the type of the task. Usually this is the name of the XML tag #### Class: ProjectComponent ProjectComponent::getProject() Returns a reference to current project ProjectComponent::log() Logs a message with the given priority. ProjectComponent::setProject() References the project to the current component.
### Class Details [line 36] 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. #### Tags:
author: | Frank Kleine <mikey@stubbles.net>
version: | $Id: JsMinTask.php 526 2009-08-11 12:11:17Z mrook $
copyright: | � 2001,2002 THYRELL. All rights reserved
since: | 2.3.0
[ Top ] ### Class Variables #### $failonerror = false [line 50] Whether the build should fail, if errors occured #### Tags:
access: | protected
Type: | boolean
[ Top ] #### $filesets = array() [line 43] the source files #### Tags:
access: | protected
Type: | FileSet
[ Top ] #### $targetDir = [line 56] directory to put minified javascript files into #### Tags:
access: | protected
Type: | string
[ Top ] ### Class Methods ### method createFileSet [line 61]
`void createFileSet( )`
Nested creator, adds a set of files (nested fileset attribute). #### Tags:
access: | public
[ Top ] ### method init [line 90]
`void init( )`
The init method: Do init steps. #### Tags:
access: | public
Overrides Task::init() (Called by the parser to let the task initialize properly.) [ Top ] ### method main [line 98]
`void main( )`
The main entry point method. #### Tags:
access: | public
Overrides Task::main() (Called by the project to let the task do it's work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running <em>phing target1 target2</em> will run all tasks in target3 twice.) [ Top ] ### method setFailonerror [line 72]
`void setFailonerror( boolean $value)`
Whether the build should fail, if an error occured. #### Tags:
access: | public
#### Parameters:
boolean | $value |
[ Top ] ### method setTargetDir [line 82]
`void setTargetDir( string $targetDir)`
sets the directory where minified javascript files should be put inot #### Tags:
access: | public
#### Parameters:
string | $targetDir |
[ Top ] Documentation generated on Mon, 19 Oct 2009 10:51:11 +0200 by phpDocumentor 1.4.3