ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender, Christopher" <Christopher.Ben...@tdsecurities.com>
Subject RE: Nested Tasks
Date Tue, 14 Oct 2003 14:42:53 GMT
i was under the assumption that the loaderRef is just a 'string', kind of like id, and oyu
dont actually create it anywhere

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Tuesday, October 14, 2003 10:42 AM
To: user@ant.apache.org
Subject: RE: Nested Tasks


In your buildfile you had 
    <taskdef ... loaderRef="taskLoader"/>
but where is that "taskLoader" set?
(mmm manual is very sh... short)

(should refer to typedef´s manual - the implementation class extends that
and doesn´t add anything)


loaderRef
"the name of the loader that is used to load the class, constructed from the
specified classpath. Use this to allow multiple tasks/types to be loaded
with the same loader, so they can call each other. ( introduced in ant1.5 )"


Question to our classpath gurus: is Christophers buildfile correct here:

<path id="taskPath">
   ...
<taskdef name="task1_container" 
         classname="com.blah.task1"
         classpathref="taskPath"
         loaderRef="taskLoader">
</taskdef>



Jan



> -----Original Message-----
> From: Bender, Christopher [mailto:Christopher.Bender@tdsecurities.com]
> Sent: Tuesday, October 14, 2003 4:32 PM
> To: Ant Users List
> Subject: RE: Nested Tasks
> 
> 
> ok but that doesnt help ant find the task.
> but thanks for that, i remember reading to call perform somewhere.
> 
> -----Original Message-----
> From: peter reilly [mailto:peter.reilly@corvil.com]
> Sent: Tuesday, October 14, 2003 10:28 AM
> To: Ant Users List
> Subject: Re: Nested Tasks
> 
> 
> 
> On Tuesday 14 October 2003 15:15, Bender, Christopher wrote:
> > 	private void executeChildren() {
> > 		Iterator taskItr = tasks.iterator();
> > 		while (taskItr.hasNext()) {
> > 			((Task)taskItr.next()).execute();
> > 		}
> 
> You need to do ((Task)taskItr.next()).perform() and not
> execute.
> 
> Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message