Sunday, February 28, 2010

Hudson and Ant

Ever tried to run unit tests from Ant inside Hudson, and gotten the infamous:

Could not create task or type of type: junit
 
?
There is a (pathetic, just like everything concerning Ant technology) workaround:
add 
-lib /weblogic/bea10.3/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.junit4_4.3.1/junit.jar 
 
before the list of targets you want to be run.
YAPPOS ! (yet another pathetic piece of shit)
 
ALSO, don't forget to set your Java Otions to:
 
-DLOCALCLASSPATH=/weblogic/bea10.3/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.junit4_4.3.1/junit.jar
No wonder why people are migrating to .NET.... 
simple lack of any standardization in Java, everything turns into a complete hack.
 
 



No comments: