Baden-Powell was involved in the Boer War.
He used the song with his first batches of boys, I think.
Somebody here will probably know who wrote it..if not, I'll try to catch the thread again before it floats downstream and see if I can find info in my gs stuff.