#843
authortnagy1024 <tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85>
Wed, 12 Jan 2011 07:01:37 +0000 (07:01 +0000)
committertnagy1024 <tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85>
Wed, 12 Jan 2011 07:01:37 +0000 (07:01 +0000)
git-svn-id: https://waf.googlecode.com/svn/trunk@10837 f0382ac9-c320-0410-b3f0-b508d59f5a85

docs/book/task_generators.txt

index d27c4f9585f3a6e2b16c420c1d16c780756f1655..eaa1da9e9ef6451c9f80cd3cfdd0130806eadb02 100644 (file)
@@ -34,7 +34,7 @@ def build(bld):
 
 from waflib import TaskGen
 
-@TaskGen.taskgen <3>
+@TaskGen.taskgen_method <3>
 def myMethod(tgen): <4>
        print(getattr(self, 'myattr', None)) <5>
 ---------------
@@ -77,13 +77,13 @@ def build(bld):
 
 from waflib import TaskGen
 
-@TaskGen.taskgen <1>
+@TaskGen.taskgen_method <1>
 @TaskGen.feature('*') <2>
 def methodName(self):
        print(getattr(self, 'myattr', None))
 ---------------
 
-<1> Bind a method to the task generator class (optional when other methods such as 'TaskGen.feature' are used)
+<1> Bind a method to the task generator class (redundant when other methods such as 'TaskGen.feature' are used)
 <2> Bind the method to the symbol 'myfeature'
 
 The execution results will be the following: