diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-02-19 11:13:25 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-02-19 11:13:25 +0100 |
commit | 4e068d056632d55aa93b39d1e02102458d708b33 (patch) | |
tree | bae1eb5655468e0d134a83948c02c1c3e15fef38 /sonar-scanner-engine | |
parent | f4f62cc533a6774a23adf560608abad47f38f852 (diff) | |
download | sonarqube-4e068d056632d55aa93b39d1e02102458d708b33.tar.gz sonarqube-4e068d056632d55aa93b39d1e02102458d708b33.zip |
Move temp dir of build outsite project
Overriding java.io.tmpdir does not allow to detect issues
with canonical path in tests. Moreover this complex (and useless)
configuration does not allow to support Gradle.
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/ExclusionFiltersTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/ExclusionFiltersTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/ExclusionFiltersTest.java index fd5e5b477f2..20a528ac7a8 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/ExclusionFiltersTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/ExclusionFiltersTest.java @@ -19,12 +19,9 @@ */ package org.sonar.scanner.scan.filesystem; -import static org.assertj.core.api.Assertions.assertThat; - import java.io.File; import java.io.IOException; import java.nio.file.Path; - import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -37,6 +34,8 @@ import org.sonar.api.config.MapSettings; import org.sonar.api.config.Settings; import org.sonar.api.scan.filesystem.FileExclusions; +import static org.assertj.core.api.Assertions.assertThat; + public class ExclusionFiltersTest { @Rule @@ -114,7 +113,7 @@ public class ExclusionFiltersTest { Settings settings = new MapSettings(); settings.setProperty(CoreProperties.PROJECT_INCLUSIONS_PROPERTY, "src/main/java/**/*"); - settings.setProperty(CoreProperties.PROJECT_EXCLUSIONS_PROPERTY, "file:" + excludedFile.getCanonicalPath()); + settings.setProperty(CoreProperties.PROJECT_EXCLUSIONS_PROPERTY, "file:" + excludedFile.getAbsolutePath()); ExclusionFilters filter = new ExclusionFilters(new FileExclusions(settings)); filter.prepare(); |