DefaultLogger log = new DefaultLogger();
log.setErrorPrintStream(System.err);
log.setOutputPrintStream(System.out);
log.setMessageOutputLevel(Project.MSG_INFO);
ant.addBuildListener(log);
ProjectHelper helper = new ProjectHelperImpl();
ant.init();
helper.parse(ant, antFile);
LOGGER.debug(" -- Executing Ant task ...");
ant.executeTarget("backup");
LOGGER.debug(" -- Ant task Executed ...");
LOGGER.debug(" -- Deleting ant file ...");
antFile.delete();