Support custom JDK annotations path for TeamCity

This commit is contained in:
Andrey Breslav
2013-05-31 20:26:18 +04:00
parent 61f50fc832
commit 6d6e627641
@@ -130,6 +130,16 @@ public class KotlinBuilderModuleScriptGenerator {
}
}
// JDK is stored locally on user's machine, so its configuration, including external annotation paths
// is not available on TeamCity. When running on TeamCity, one has to provide extra path to JDK annotations
String extraAnnotationsPaths = System.getProperty("jps.kotlin.extra.annotation.paths");
if (extraAnnotationsPaths != null) {
String[] paths = extraAnnotationsPaths.split(File.pathSeparator);
for (String path : paths) {
annotationRootFiles.add(new File(path));
}
}
return annotationRootFiles;
}