build scripts redesign: corrected computation of relative artifact paths

This commit is contained in:
nik
2016-07-12 10:53:01 +03:00
parent 2670a7536b
commit 4dff6e1a25
@@ -199,7 +199,7 @@ class BuildContextImpl extends BuildContext {
void notifyArtifactBuilt(String artifactPath) {
if (!underTeamCity) return
if (!FileUtil.startsWith(artifactPath, paths.projectHome)) {
if (!FileUtil.startsWith(FileUtil.toSystemIndependentName(artifactPath), paths.projectHome)) {
messages.warning("Artifact '$artifactPath' is not under '$paths.projectHome', it won't be reported")
return
}