Skip to content
Permalink
Browse files

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 f1af66a356e94c124e37d962339d9e82b8391140
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
@@ -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.
You can’t perform that action at this time.