Skip to content

Commit a050fbb

Browse files
committed
[annotation] - improve nitpick step, use concrete directories
1 parent 32a1d4a commit a050fbb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gradle/nitpick.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ private def verifyAnnotationCodeGeneration() {
1313
workingDir = "${rootDir}"
1414
commandLine "make", "generate-annotation-code"
1515
}
16+
checkDirectoryForChanges("app/src/androidTest/java/com/mapbox/mapboxsdk/plugins/annotation")
17+
checkDirectoryForChanges("plugin-annotation/src/test/java/com/mapbox/mapboxsdk/plugins/annotation")
18+
checkDirectoryForChanges("plugin-annotation/src/main/java/com/mapbox/mapboxsdk/plugins/annotation")
19+
}
20+
21+
private checkDirectoryForChanges(dir) {
1622
new ByteArrayOutputStream().withStream { os ->
1723
exec {
1824
workingDir = "${rootDir}"
19-
commandLine "git", "status"
25+
commandLine "git", "status", dir
2026
standardOutput = os
2127
}
2228
def result = os.toString()

0 commit comments

Comments
 (0)