A Long Island judge gave preliminary approval Tuesday to a settlement between the cofounders of AriZona Iced Tea to help end their seven-year court dispute.

As part of the agreement, Domenick Vultaggio—who, along with his family, own a 50 percent stake in the company—will purchase the 50 percent stake owned by John Ferolito and his family.