Create temporary directory for javanano test if it does not exist.

The gradle task testNanoGolden fails because the temporary folder it tries to use does not exist.
The task tries to write files to temporaryDir which points to ./compiler/build/tmp/testNanoGolden/ on my machine.
The directory does not exist by default and so the run_nano_test.sh fails.
This commit is contained in:
Jakob Buchgraber 2015-02-25 19:47:05 -08:00 committed by Eric Anderson
parent 33717e7236
commit df321fed73
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ task testGolden(type: Exec, dependsOn: 'generateTestProto') {
}
task testNanoGolden(type: Exec, dependsOn: 'java_pluginExecutable') {
doFirst {
temporaryDir.createNewFile();
}
environment 'TEST_TMP_DIR', temporaryDir
commandLine './src/test/run_nano_test.sh'
}