testFile("settings.gradle").write("include 'another'");
testFile("gradle.properties").writelns("prop=value2", "otherProp=value");
TestFile subDirectory = getTestDir().file("subdirectory");
TestFile buildFile = subDirectory.file("build.gradle");
buildFile.writelns("task('do-stuff') << {",
"assert prop == 'value'",
"assert !project.hasProperty('otherProp')",
"}");
testFile("subdirectory/gradle.properties").write("prop=value");