A Gippsland man who bashed two building site inspectors over the head with a piece of scaffolding in a long-running dispute about a shed has been found guilty of attempted murder.

The Supreme Court heard how Jonas Black, 46, invited the men to his Turtons Creek property last year to inspect the shed before attacking them.

In 2014 the South Gippsland Shire ordered Black to knock down sheds on his property that did not comply with planning regulations.

The court was told when Matthew Patterson and Justin Eades visited his property on May 25 last year to inspect his progress, a scuffle broke out and Black hit the two men over the head with a section of scaffolding pipe.

Prosecutors said Black had lined the back of his four-wheel drive with a tarpaulin and dug a two-metre hole in nearby bushland in preparation for their death.

Mr Patterson earlier testified that Black told him: "There's no way that you're getting out of here alive".

The court hear how Mr Patterson and Mr Eades ran away from the property but were followed by Black in his car.

He also asked his girlfriend to throw a pair of work boots away as he knew they would be used as evidence against him, the prosecution said.

Defence lawyer Sarah Leighfield told the court while she did not deny Black struck the two inspectors, he had no intention of killing or seriously injuring the pair.

She said he had no knowledge of the hole.

But the jury found Black guilty of two counts of attempted murder and of perverting the course of justice.

He will be sentenced at a later date.