PT #154980332 Fix the build on Win

This commit is contained in:
BoykoAlex
2018-02-06 20:47:21 -05:00
parent f8891a4e8d
commit 6aa3e365c9
14 changed files with 291 additions and 296 deletions

View File

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017 Pivotal, Inc.
* Copyright (c) 2017, 2018 Pivotal, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -52,7 +52,7 @@ public abstract class AbstractFileToProjectCache<P extends IJavaProject> extends
@Override
protected void attachListeners(File file, P project) {
super.attachListeners(file, project);
List<String> globPattern = Arrays.asList(file.toString());
List<String> globPattern = Arrays.asList(file.toString().replaceAll("\\\\", "/"));
changeSubscription = getFileObserver().onFileChanged(globPattern, (uri) -> performUpdate(project, asyncUpdate, true));
deleteSubscription = getFileObserver().onFileDeleted(globPattern, (uri) -> {
cache.invalidate(file);