1#!/usr/bin/env bash 2# Copyright (C) 2023 and later: Unicode, Inc. and others. 3# License & terms of use: http://www.unicode.org/copyright.html 4 5 6if [ ! -f "releases_tools/shared.sh" ]; then 7 echo "ERROR: This script should be executed while being in the icu4j folder" 8 exit 9fi 10. releases_tools/shared.sh 11 12export serial_test_data_dir=${out_dir}/serialTestData 13 14# ==================================================================================== 15# The start of the script proper 16 17# Build everything 18mvn clean install -DskipITs -DskipTests 19 20# Prepare classpath folder to run the tools 21copyDependencyArtifacts 22 23reportTitle serialTestData :: generate the serialization compatibility test data files 24 25rm -fr ${serial_test_data_dir} 26mkdir -p ${serial_test_data_dir} 27java -cp "$toolcp" com.ibm.icu.dev.test.serializable.SerializableWriter ${serial_test_data_dir} 28 29echo "Note: The serialization compatibility test data files were" 30echo "created in ${serial_test_data_dir}. Once you confirm" 31echo "the test runs clean, you should copy the data file directory to" 32echo "main/core/src/test/resources/com/ibm/icu/dev/test/serializable/data" 33