Gravity waves excited by jets: Propagation versus generation