Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-11492 android emulator logcat temporary file breaks maven-rel…
…ease-plugin

Use createTextTempFile to allocate the temporary file. Force the temporary
file to be created in the java.io.tmpdir directory instead of the job
workspace by passing parameter isThisDirectory as false.
  • Loading branch information
oldelvet committed Oct 28, 2011
1 parent 367d5c9 commit f1af66a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
Expand Down

0 comments on commit f1af66a

Please sign in to comment.