When using the bundled Ant distribution for activities outside of Application Server, a java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher may be thrown in the main thread.
Using the bundled ANT for activities outside the Application Server environment is not recommended.