subModule.setNewProperty(EasyAntMagicNames.PROJECT_EXECUTED_TARGETS, targetsToRun);
subModule.executeTargets(new TargetList(targetsToRun));
if (useBuildRepository) {
File artifactsDir = subModule.resolveFile(subModule.getProperty("target.artifacts"));
if (artifactsDir.isDirectory()) {
IvyResolve ivyResolve = new IvyResolve();
ivyResolve.setFile(file);
ivyResolve.setProject(subModule);
ivyResolve.setOwningTarget(getOwningTarget());
ivyResolve.setLocation(getLocation());
ivyResolve.setTaskName("publish-buildscoped-repository");
ivyResolve.setSettingsRef(IvyInstanceHelper.buildProjectIvyReference(subModule));
ivyResolve.execute();
// this property set by LoadModule task when it
// configures the build repo
String resolver = subModule.getProperty(EasyAntMagicNames.EASYANT_BUILD_REPOSITORY);