The prosecution said that while the victim escaped the attack uninjured, he felt “permanently on edge" and has since installed CCTV at his home.
Kieron Kimber was convicted of assault by beating and possession of an imitation firearm following a trial. He was handed down a sentence of five years.
Christopher Habgood (24) pleaded guilty to criminal damage and was jailed for three years.
The pair, who run a fencing business, were also convicted of other offences including a burglary two incidents where they drove to a prison in Dorset in order to smuggle in drugs, phones and sim cards.
Both men have already served 19 months of their term on remand while waiting to be sentenced.