Skip to content

Commit

Permalink
Tests fails when basedir has space
Browse files Browse the repository at this point in the history
Fixes #749

Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr committed Jul 2, 2020
1 parent e82e480 commit 52aa853
Show file tree
Hide file tree
Showing 11 changed files with 404 additions and 384 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,21 @@ public FilesChangedTracker() {
*/
public void addFileURI(String fileURI) {
try {
files.add(new FileChangedTracker(Paths.get(new URI(fileURI))));
addFileURI(new URI(fileURI));
} catch (URISyntaxException e) {
LOGGER.log(Level.SEVERE, "Add file URI to track failed", e);
}
}

/**
* Add file URI to track
*
* @param fileURI
*/
public void addFileURI(URI fileURI) {
files.add(new FileChangedTracker(Paths.get(fileURI)));
}

/**
* Returns true if one file has changed and false otherwise.
*
Expand All @@ -101,4 +110,5 @@ public boolean isDirty() {
}
return false;
}

}
Loading

0 comments on commit 52aa853

Please sign in to comment.