title: creating an executable jar file with ant which includes the build.xml file
body: <p>I am trying to use ant to build an application, run the application's main() method, run junit tests, and package everything in a jar file (source+build+libraries+build.xml). The classes include a runner class with a main() method entry point.</p>
  
  <p>The objective however is to inlcude all libraries used, like junit.jar, and the ant build.xml itself.</p>
  
  <p>I was wondering if there is a way for the executable jar file, to run selected targets of the ant build file itslef, instead of just the main() method. Obviously I wouldn't need to run the compile targets again, but only the main() method (the java element in my run target) and the junit target. Is that possible?</p>
  
  <p>Many thanks in advance for the insight!</p>