ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tek1 <t...@pobox.com>
Subject getting null when trying to call custom ant task
Date Thu, 18 Apr 2002 16:43:00 GMT
hello.

i've written 2 custom ant tasks and am trying to have one (say "ATask") 
call the other ("BTask")

i tried the following in ATask (to reference BTask):


someMethod() {

	this.project.addDataTypeDefinition("atask",Class.forName("com.test.ATask"));
	// also tried without the above line, but the result is the same

	ATask task = (ATask)this.project.createTask("atask");

}



however, "task" is turning out to be null.

i'd appreciate any advice.  thank you. 


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


Mime
View raw message