ProcessHandler (AntRunConfiguration antRunConfiguration, final DataContext dataContext, List<BuildFileProperty> additionalProperties, @NotNull final AntBuildListener antBuildListener) { AntBuildTarget target = antRunConfiguration.getTarget(); if (target == null) { return null; } Future<ProcessHandler> result = runBuildImpl( (AntBuildFileBase)target.getModel().getBuildFile(), target.getTargetNames(), null, dataContext, additionalProperties, antBuildListener, false ); if (result != null) { try { return result.get(); } catch (InterruptedException | java.util.concurrent.ExecutionException e) { LOG.warn(e); } } return null; }