File tree Expand file tree Collapse file tree
main/java/org/sonarsource/scanner/api/internal
test/java/org/sonarsource/scanner/api/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ void clean() {
5656
5757 try (Stream <Path > files = Files .list (tempDir )) {
5858 files
59- .filter (p -> p .getFileName ().toString ().startsWith ("sonar-runner -batch" ))
59+ .filter (p -> p .getFileName ().toString ().startsWith ("sonar-scanner-api -batch" ))
6060 .filter (p -> lastModifiedTime (p ) < cutoff )
6161 .forEach (Utils ::deleteQuietly );
6262 logger .debug ("Temp cleaning done" );
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ public void should_clean_jvm_tmp_dir() {
4646 @ Test
4747 public void should_clean () throws Exception {
4848 Path dir = temp .newFolder ().toPath ();
49- Path oldBatch = dir .resolve ("sonar-runner -batch656.jar" );
49+ Path oldBatch = dir .resolve ("sonar-scanner-api -batch656.jar" );
5050 Files .write (oldBatch , "foo" .getBytes (StandardCharsets .UTF_8 ));
5151 FileTime fTime = FileTime .fromMillis (System .currentTimeMillis () - 3 * TempCleaning .ONE_DAY_IN_MILLISECONDS );
5252 Files .setLastModifiedTime (oldBatch , fTime );
5353
54- Path youngBatch = dir .resolve ("sonar-runner -batch123.jar" );
54+ Path youngBatch = dir .resolve ("sonar-scanner-api -batch123.jar" );
5555 Files .write (youngBatch , "foo" .getBytes (StandardCharsets .UTF_8 ));
5656
5757 Path doNotDelete = dir .resolve ("jacoco.txt" );
You can’t perform that action at this time.
0 commit comments