* @return an Ant project
*/
public static GrantProject build( final Project project, final MavenJellyContext context )
{
// Create the build listener.
JellyBuildListener buildListener = new JellyBuildListener( context.getXMLOutput() );
buildListener.setDebug( context.getDebugOn().booleanValue() );
buildListener.setEmacsMode( context.getEmacsModeOn().booleanValue() );
// Create our ant project.
GrantProject antProject = new GrantProject();
antProject.setPropsHandler( new JellyPropsHandler( context ) );
antProject.init();