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 5j=${PWD} 6rm -rf /tmp/sl 7mkdir /tmp/sl 8cd /tmp/sl 9jar xvf ${j}/serviceloader.jar 10echo "test.serviceloader.TmpSuiteListener" >META-INF/services/org.testng.ITestNGListener 11cp ${j}/../../../target/test-classes/test/serviceloader/TmpSuiteListener.class test/tmp 12jar cvf ${j}/serviceloader.jar . 13