 Subsequently, Zhang was court-martialed and sentenced to house arrest, and most of the officers who participated in the Xi'an Incident were executed.Although the KMT formally rejected collaboration with the CCP, Chiang ended active military activity against Communist bases in Yan'nan, implying that he had implicitly given his word to change the direction of his policies.Following the end of KMT attacks, the CCP was able to consolidate its territories and to prepare to resist the Japanese.