parameters: (name, func=None, vars=None, color='GREEN', ext_in=[], ext_out=[], before=[], after=[], shell=False, scan=None)
return_statement: return cls
docstring: Deprecated. Return a new task subclass with the function ``run`` compiled from the line given.
  	Provided for compatibility with waf 1.4-1.5, when we did not have the metaclass to register new classes (will be removed in Waf 1.8)
  
  	:param func: method run
  	:type func: string or function
  	:param vars: list of variables to hash
  	:type vars: list of string
  	:param color: color to use
  	:type color: string
  	:param shell: when *func* is a string, enable/disable the use of the shell
  	:type shell: bool
  	:param scan: method scan
  	:type scan: function
  	:rtype: :py:class:`waflib.Task.Task`
docstring_summary: Deprecated. Return a new task subclass with the function ``run`` compiled from the line given.
  	Provided for compatibility with waf 1.4-1.5, when we did not have the metaclass to register new classes (will be removed in Waf 1.8)
docstring_tokens: Deprecated . Return a new task subclass with the function run compiled from the line given . Provided for compatibility with waf 1 . 4 - 1 . 5 when we did not have the metaclass to register new classes ( will be removed in Waf 1 . 8 )
function: def task_factory(name, func=None, vars=None, color='GREEN', ext_in=[], ext_out=[], before=[], after=[], shell=False, scan=None):
  	"""
  	Deprecated. Return a new task subclass with the function ``run`` compiled from the line given.
  	Provided for compatibility with waf 1.4-1.5, when we did not have the metaclass to register new classes (will be removed in Waf 1.8)
  
  	:param func: method run
  	:type func: string or function
  	:param vars: list of variables to hash
  	:type vars: list of string
  	:param color: color to use
  	:type color: string
  	:param shell: when *func* is a string, enable/disable the use of the shell
  	:type shell: bool
  	:param scan: method scan
  	:type scan: function
  	:rtype: :py:class:`waflib.Task.Task`
  	"""
  
  	params = {
  		'vars': vars or [], # function arguments are static, and this one may be modified by the class
  		'color': color,
  		'name': name,
  		'ext_in': Utils.to_list(ext_in),
  		'ext_out': Utils.to_list(ext_out),
  		'before': Utils.to_list(before),
  		'after': Utils.to_list(after),
  		'shell': shell,
  		'scan': scan,
  	}
  
  	if isinstance(func, str):
  		params['run_str'] = func
  	else:
  		params['run'] = func
  
  	cls = type(Task)(name, (Task,), params)
  	global classes
  	classes[name] = cls
  	return cls
function_tokens: def task_factory ( name , func = None , vars = None , color = 'GREEN' , ext_in = [ ] , ext_out = [ ] , before = [ ] , after = [ ] , shell = False , scan = None ) : params = { 'vars' : vars or [ ] , # function arguments are static, and this one may be modified by the class 'color' : color , 'name' : name , 'ext_in' : Utils . to_list ( ext_in ) , 'ext_out' : Utils . to_list ( ext_out ) , 'before' : Utils . to_list ( before ) , 'after' : Utils . to_list ( after ) , 'shell' : shell , 'scan' : scan , } if isinstance ( func , str ) : params [ 'run_str' ] = func else : params [ 'run' ] = func cls = type ( Task ) ( name , ( Task , ) , params ) global classes classes [ name ] = cls return cls