new Ant("-Dtest.property=cor${" + DUMMY_LOCATION_VARNAME
+ "}rect", "varAnt", "", buildFile, ""));
// test the regular slave - variable not expanded
project.setAssignedLabel(slaveRegular.getSelfLabel());
FreeStyleBuild build = project.scheduleBuild2(0).get();
System.out.println(build.getDisplayName() + " completed");
assertBuildStatus(Result.FAILURE, build);
String buildLogRegular = getBuildLog(build);
assertTrue(buildLogRegular.contains(Ant_ExecutableNotFound("varAnt")));
// test the slave with prepared environment
project.setAssignedLabel(slaveEnv.getSelfLabel());
build = project.scheduleBuild2(0).get();
System.out.println(build.getDisplayName() + " completed");
assertBuildStatusSuccess(build);
// Check variable was expanded
String buildLogEnv = getBuildLog(build);