make build with Ant and Junit and generate a html Report.

[for specific: go through the Ant Tutorial on official websites]

 

using Ant building project via build.xml_第1张图片

build.xml    [project name is “sele”]

 

   

   

   

   

   

   

   

               

   

 

   

      

      

      

      

   

  

   

      

           classpathref="compiletool" includeantruntime="on"/>

   

   

   

      

          

          

          

             

                 

             

          

      

      

       

         

           

         

         

       

   

 

注意:还需要把junit.jar,手工拷贝到ANT_HOME\lib下面才可以让ant正确执行junit测试.(或者把junit.jar包也放进工程的lib里面作为classpath)
             否则会导致BUILD FAILED: The classpath for junit must include junit.jar if not in Ant's own classpath.