Finalized builder code. Still have to manually manipulate classpath - entries are duplicated.