fixed build.xml to build a self-dependent jar. now any main class can be can be defined build.xml to be ran in the jar.