Skip to content
Browse files
JENKINS-11492 android emulator logcat temporary file breaks maven-rel…

Use createTextTempFile to allocate the temporary file. Force the temporary
file to be created in the directory instead of the job
workspace by passing parameter isThisDirectory as false.
  • Loading branch information
oldelvet committed Oct 28, 2011
1 parent 367d5c9 commit f1af66a356e94c124e37d962339d9e82b8391140
Showing 1 changed file with 1 addition and 1 deletion.
@@ -367,7 +367,7 @@ private Environment doSetUp(final AbstractBuild<?, ?> build, final Launcher laun

// Start dumping logs to disk
final File artifactsDir = build.getArtifactsDir();
final FilePath logcatFile = build.getWorkspace().createTempFile("logcat_", ".log");
final FilePath logcatFile = build.getWorkspace().createTextTempFile("logcat_", ".log", "", false);
final OutputStream logcatStream = logcatFile.write();
final String logcatArgs = String.format("-s %s logcat -v time", serial);
ArgumentListBuilder logcatCmd = Utils.getToolCommand(androidSdk, isUnix, Tool.ADB, logcatArgs);

0 comments on commit f1af66a

Please sign in to comment.