I am new to ant. I am using ant to do daily build.
I have some problem now when I use ant to run the program.
1) some packages work in jbuilder and command line when I run them.( use java -classname=".." filename.) but when I use ant to do the task using java task, it throw exception. we are using joram, netBeans, enhydra in our project. it looks like ant can't see the joram.jar and jms.jar in classpath I set in the build.xml.
the exception is :
 java.lang.ClassCastException: javax.naming.Reference
 
and another package also works in jbuilder and command line.
but in ant it will throw exception:javax.naming.NameNotFoundException
 
2) when the above situation happens. it shows me Errors:2
 
but at end it also give build successful message.
our build require to automate send email to the developer when build fail. but in 1) situation ant doesn't think it's fail. my mail part doesn't work.
 
any suggestion?
 
thanks
 
weili

 

Reply via email to