Extract creating a build directory and archive and copying files to a separate class.