Home | History | Annotate | Download | only in resources
      1 # This script will update serviceloader.jar with the latest version of TmpSuiteListener.class,
      2 # which is used by test.serviceloader.ServiceLoaderTest.
      3 # Run this script after building TestNG and its tests with ant
      4 
      5 j=${PWD}
      6 rm -rf /tmp/sl
      7 mkdir /tmp/sl
      8 cd /tmp/sl
      9 jar xvf ${j}/serviceloader.jar
     10 echo "test.serviceloader.TmpSuiteListener" >META-INF/services/org.testng.ITestNGListener
     11 cp ${j}/../../../target/test-classes/test/serviceloader/TmpSuiteListener.class test/tmp
     12 jar cvf ${j}/serviceloader.jar .
     13