Added tika cli code from other projects