Mimic the behavior in build.xml creating a runnable jar