Move generated gitweb_config.perl to hidden tmp directory

Since some systems have a /tmp autocleaner, we don't want to trust
our gitweb configuration file to stay there.  Instead keep it with
the extracted WARs inside of our own private temporary location.

Change-Id: I5f4dea46a755bf3296f15ae38361452fe8df6655
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-03-13 19:20:09 -08:00
parent 0ddb5ba3c8
commit 8d9fc99a6a
3 changed files with 9 additions and 3 deletions

View File

@@ -361,7 +361,7 @@ public final class GerritLauncher {
* directory if a directory was preferred.
* @throws IOException the file could not be created.
*/
public static File createTempFile(String prefix, String suffix)
public static synchronized File createTempFile(String prefix, String suffix)
throws IOException {
if (!temporaryDirectoryFound) {
final File d = File.createTempFile("gerrit_", "_app", tmproot());