scala tar generator