aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-runner-api/src
diff options
context:
space:
mode:
authorSimonBrandhof <simon.brandhof@gmail.com>2013-04-08 10:46:01 +0200
committerSimonBrandhof <simon.brandhof@gmail.com>2013-04-08 10:46:01 +0200
commit3df1496b29c383b09ff4a2882620f6b922a7196c (patch)
tree169017b445759961e46569d2d5845917f57a9600 /sonar-runner-api/src
parent6c7937c683da38f7d87ce4e7064707ceea95e7ff (diff)
downloadsonar-scanner-cli-3df1496b29c383b09ff4a2882620f6b922a7196c.tar.gz
sonar-scanner-cli-3df1496b29c383b09ff4a2882620f6b922a7196c.zip
Delete the generated sonar-runner-batch.jar in temp dir
Diffstat (limited to 'sonar-runner-api/src')
-rw-r--r--sonar-runner-api/src/main/java/org/sonar/runner/api/Dirs.java2
-rw-r--r--sonar-runner-api/src/test/java/org/sonar/runner/api/OsTest.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/Dirs.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/Dirs.java
index b1ab426..db479ca 100644
--- a/sonar-runner-api/src/main/java/org/sonar/runner/api/Dirs.java
+++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/Dirs.java
@@ -20,6 +20,7 @@
package org.sonar.runner.api;
import org.apache.commons.io.FileUtils;
+import org.sonar.runner.impl.Logs;
import java.io.File;
@@ -55,6 +56,7 @@ class Dirs {
}
FileUtils.deleteQuietly(workDir);
runner.setProperty(RunnerProperties.WORK_DIR, workDir.getAbsolutePath());
+ Logs.info("Work directory: " + workDir.getAbsolutePath());
}
/**
diff --git a/sonar-runner-api/src/test/java/org/sonar/runner/api/OsTest.java b/sonar-runner-api/src/test/java/org/sonar/runner/api/OsTest.java
index 7792d53..d43ab29 100644
--- a/sonar-runner-api/src/test/java/org/sonar/runner/api/OsTest.java
+++ b/sonar-runner-api/src/test/java/org/sonar/runner/api/OsTest.java
@@ -40,6 +40,7 @@ public class OsTest {
@Test
public void testUsedJavaExe() throws Exception {
+ System.out.println(System.getProperty("java.io.tmpdir"));
File javaExe = new Os().thisJavaExe();
assertThat(javaExe).isNotNull().isFile().exists();
assertThat(javaExe.getName()).contains("java");