java.lang.StackoverflowError
Hi,
I created a Java class which runs perfectly fine when I run it in eclipse. However when I specify it as an ant task in my build.xml, it throws up java.lang.StackOverflow Error :confused:
My class structure is :
Code:
public class X extends Task{
public void sendMail(String server,string from,string to, string subject){
/*
Procedure to implement sending a mail.
PS: This perfectly works when I build this java class separately and run
*/
}
public void execute throws BuildException(){
sendMail(server,from,to,subject);
}
}
My build.xml ant target file goes like this:
Code:
<taskdef name="coverageMail"
classname="X" >
<classpath path = "${build.classpath}" />
</taskdef>
<target name="sendMail" >
<antcall target = "coverageMail />
</target>
Could anyone pl. help me out with this ?