QUITO, Ecuador - An indigenous Amazon tribe in Ecuador has won an early court victory in its fight to stop oil extraction in its ancestral territory.

A judge in a provincial court determined Friday that the Waorani people have a right to be consulted before any oil drilling takes place.

Lawyers for Ecuador's government are vowing to appeal the decision. The ruling sets up what could be a protracted court battle that will in the meantime protect the tribe's territory.

Sixteen Waorani communities claim they were deceived by workers who lavished them with gifts without making them aware they were in exchange for access to their lands.

The tribe's leaders say they will "never sell our lands to the oil companies."